Plesk subdomain creation "limitations are exceeded" - subdomain

When trying to create a subdomain in Plesk 11.5, i have the following message :
An error occurred during domain creation: Unable to accept the template: the following limitations are exceeded.
Description Requested Allowed
Retain web and traffic statistics 3 12
Ok, I already created something like 50 subdomains… but eh, i do what i want !
Here is my command (yeah, i replaced [SUBDOMAIN] and [DOMAIN] by what i want… mysubdomain.domain.tld) :
/usr/local/psa/bin/subdomain --create [SUBDOMAIN] -domain [DOMAIN] -www-root /subdomains/[SUBDOMAIN]/httpdocs
I need to create something like 600 subdomains by parsing a csv file with a shell script i wrote… (it doesn't work either with user-friendly web interface).
Everything's fine except this limitation… I tried many different things in Plesk web admin, and tried to get manual of subdomain.

Looks like you need to increase "Retain web and traffic statistics" limit in subscription's properties or in Service plan properties?

Related

Why does appcmd list fail for åäö in Azure agent job?

We've got an Azure DevOps release pipeline that executes the "Manage IIS Website" task to create or update a site + app pool on a Windows 2016 server, English version.
The names of the app pool and the site contain "ö". This has worked fine before, but after migrating the (virtual) server to a new hosting provider, including conversion from VMware to Hyper-V, it fails.
The problem is that the output of the appcmd list command, that correctly and successfully lists the existing app pool/site, is not correctly interpreted by the agent, so it doesn't "see" that the app pool/site already exists, and tries to add/create it instead of updating the existing one. The subsequent appcmd add command fails because the app pool/site already exists.
I tried renaming the app pool to "o" instead of "ö", and then it works (for the app pool), so it's pretty clear that this is the problem.
From the log at this state (anonymized):
2020-01-14T10:12:37.2971066Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" list apppool /name:"AppPoolWitho"
2020-01-14T10:12:37.4439073Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" set apppool /apppool.name:"AppPoolWitho" -managedRuntimeVersion:v4.0 -managedPipelineMode:Integrated -processModel.identityType:SpecificUser -processModel.userName:"SERVER\TheUser" -processModel.password:"***"
2020-01-14T10:12:37.5380063Z APPPOOL object "AppPoolWitho" changed
2020-01-14T10:12:37.5493192Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" list site /name:"Site Name With ö"
2020-01-14T10:12:37.6520709Z ##[command]"C:\Windows\system32\inetsrv\appcmd.exe" add site /name:"Site Name With ö" /physicalPath:"D:\MyProj\TheProj\Dev\wwwroot"
2020-01-14T10:12:37.7181428Z ERROR ( message:Failed to add duplicate collection element "Site Name With �". )
2020-01-14T10:12:37.8944458Z ##[error]Process 'appcmd.exe' exited with code '183'.
2020-01-14T10:12:37.9257153Z ##[section]Finishing: Manage IIS Website
What can I do to fix it?
We do want to use the Swedish names as we have before. I do understand that using aao instead of åäö will get me up and running, but that's a workaround and not a fix.
Is there a setting somewhere that I can change in Windows, the Azure agent, the pipeline, for PowerShell...?

UI Testing (casperjs) with good known status of data (mysql database)

I'm using CasperJS for automated UI tests. I've done the basic UI testing and validation with some random data, kind of POC. I've set up this automation using bash script which kicks to start the web server, load MySQL data from SQL file, start CasperJS test cases, stop the web server, check the log files.
Now, I want to start the testing with some good known status of data which are stored in MySQL. So that I can test the list data and form data with detailed field information with some known database status. How should I know the status of data in the database at a moment?
1) Should I use pre-populated JSON dumped file which has status and details about all data?
2) Should I use web service API? (web service APIs are being used to show/save/delete data from the web page)
Let's take an example. I've 5 users in Users table. Now when I open the home page it shows 5 users with some rough details. When I click on any record from the list of users, it shows a form with detailed information about that user. The webpage is requesting to the web application to get the detail about a user with the help of user_id to show the detailed user data in a form. Now I want to check that all the data in that form is populated correctly. So at the next step, what would be the preferred way, should I read content from JSON dumped file or should I use web service API (like webpage does).
Searching this problem online, I also found MYSQL HTTP plugin. Should I consider this as well? and How safe it is to use? (I know from the docs that this plugin is not for the production, it is just for testing purpose only. :) )
For the main question in cases like this I would change the database connection string to your testing database (this is a clone).
In your case use your bash script to change the connection string (file copy?) automatically before you run the tests. And when completed change back.
Your testing database is a direct clone of your dev/live databsae but with ONLY the test data you want. Downside is you need to keep the schema in sync with DEV/LIVE.
Also another point to take into considertion is if your testing changes state (post). If so your testing data might be out of sync. One way is get around this is to drop foreign keys, truncate the data and load in a dump file.
HTH

wso2 1.10 store DefaultApplication Missing

I have installed a standalone instance of wso2 API Manager 1.10.0 with the CARBON-PATCH-4.4.0-0084 installed. I am walking through the PhoneVerification tutorial and have published the API as instructed. I created a new user for the store and am trying to subscribe to the PhoneVerification-2.0.0 API but cannot because there is no DefaultApplication in the Applications dropdown list. It is missing from the list. I tried to add and application and get an error dialog saying Missing Parameters. I am stuck and cannot go any further. One additional piece of information, I am using mysql instead of the h2 default. I followed all the instructions to setup mysql and had no problems. Also I changed the admin password as well.
I have tried API Manager 1.10 with security patch CARBON-PATCH-4.4.0-0084 with no issues. I can create APIs and subscribe using the DefaultApplication. I tried with default database and a new user who is assigned to 'Internal/subscriber' role.
Please check if you have any other changes for Store Web app at 'wso2am-1.10.0/repository/deployment/server/jaggeryapps/store'. You have to replace 'store' and 'publisher' apps as instructed in the Readme of patch.
(iii) Merge and Replace resource/store to /repository/deployment/server/jaggeryapps/store
(iv) Merge and Replace resource/publisher to /repository/deployment/server/jaggeryapps/publisher
To check if the Mysql configuration worked properly, please check if there are any errors in Carbon log, at 'repository/logs/wso2carbon.log' file related to that. And double check if userstore and api-manager database tables are created properly and configured in 'repository/conf/datasources/master-datasources.xml' properly.

New LightSwitch Project

I have started a new Lightswitch project using a SQL database that was created with Lightswitch. When I publish and install the new Desktop project everything goes fine with no errors in publishing, installing or loading the new application. The first and only screen appears. I can click on different records and the data shows up and I can edit the data. However, if I use the list search function all of the fields get Red x'd.
The original application works the way it supposed to work.
I have tried with and without IIS: Published with (local) and (IIS) and get the same results with both methods.
The connecection string options for the new app are not the same as the original in that System Admin and Sytem user connecection strings are not offered so it is difficult to know if I replicating a working setup or not.
In Mananagement Studio I am awash in security, permissions, roles, and login selecitons. It seems clear that this is permission level problem but I have no idea on where to start trouble shooting.
see:
Diagnosing Problems in a Deployed 3-Tier LightSwitch Application
http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx
How many string properties are in the table that you're displaying? Is there a large number of properties that don't need to be included in the search?
This forum post discusses the same issue as you're encountering: Search returns error "Unable to load data" with a Red X
Have you checked your connection string setup? I do have those issues back when I was using SQL Express on development and using SQL Server Enterprise as my target database server.

Can't access MySQL views when moving the PHP application on another server

My current project is about doing some changes in an already build web application (PHP/MySQL). For displaying data, the previous developer used views. I got the app on my computer in order to get familiar with it and I can't seem to make those views work (I don't get any output in the app).
I searched the web for this an there seems to be a problem when you create a view with one database user and the that user no longer exists.
Anyone who got into this issue before? How can this be solved?
If you're importing the views from SQL dump file, they are probably defined like this
CREATE DEFINER = 'userWhoDoesNotExist#thisServer' VIEW viewName AS ....
Try removing the DEFINER = part, and the view will be created using currenct user account.
since you are running the server on your own computer, I am assuming you have root access. Try using something like
ALTER VIEW brokenView DEFINER='newuser'
this passes the validation check here. As long as you are root when you do this, you should be able to recover your views.