Plesk 12.x / Linux :: API Create Subscription Failed - Permission Denied 1006
Sep 8, 2014
We have a little issue with the API, when we want to add an subscription, then we became "Error: Permission denied. (1006)" - but the subscription was added. The status Icon of the Subscription is a "!" and they say (tooltip), that the Plan wasn't correctly synchronized, but we don't use a Plan for this. The Reseller has all rights, there are now limits.
I don't know when we had this problem the first time, but i know that if had worked in Plesk 12 correctly - i think the problem came up with the last 4 - 6 MU.
We actually have Plesk 12.0.18 Update #16 and running it on Debian 6.0.9.
Recently we had to rollback the Plesk database and Plesk version files to their pre-upgrade state, and rerun the upgrade procedure as it is described in the knowledge base [URL] ..... The update process then worked smoothly and we are now using the newest version 12.0.18 on CentOS 6 with the newest microupdates 1200150615.10.
But right after this update procedure we are not able to access some domains with the filemanager anymore. The browser shows the following error message:
Internal error: filemng: opendir failed: Permission denied System error 13: Permission denied Message filemng: opendir failed: Permission denied System error 13: Permission denied File Agent.php Line 243 Type PleskUtilExceptio
The logfile: /usr/local/psa/admin/logs/panel.log is a bit more detailed
[URL] ....
What I did so far was the following:
1.) I checked out the knowledge base, specifically this entry was worth looking at. But /usr/local/psa/bin/repair --restore-vhosts-permissions didn't solve the problem. 2.) I found a similar problem in the discussion board but the approaches they took weren't successful in my case.
Due to the fact that the file manager worked before the rollback of the database and the major upgrade, I think there might be a connection.
From my point of view the permission settings should be right. Other domains using exactly the same permissions and they are working fine.
# ll /var/www/vhosts/system/domain.com/ total 20K drwxr-x--- 2 root psaserv 4,0K 24. Jun 02:13 conf drwxr-xr-x 2 root root 4,0K 8. Jan 2014 etc drwx------ 2 psaadm root 4,0K 24. Jun 03:43 logs
FTP session opened. unable to open TransferLog '/usr/local/psa/var/log/xferlog': Too many levels of symbolic links chroot to '/var/www/vhosts/domain.com' failed for user 'user': Permission denied error: unable to set DefaultRoot directory FTP session closed.
Mail isn't leaving the queue, it's returning this error
Feb 12 23:12:01 XXXX postfix-local[64360]: System error .qmail: Permission denied Feb 12 23:12:01 XXXX postfix-local[64360]: Wrong permissions for .qmail
All the files within /var/qmail/ are set to the user and group "popuser", and have the nessacery rwx permissions for the user/group.
This is a fresh plesk12 installation on a kvm vps on centos 6.6
We used the migration and transfer tool to copy data from another server. After the full migration without changing any setting from the configuration files, any mail account hosted on this server cannot receive emails.
Since the plesk installation by my hoster did not include a mail server, I installed postfix and dovecot from the upgrades menu, followed the steps at [URL] .... and ran mchk to add the mail settings option to my domain. However, when I click on it, I receive the error "Warning: Permission denied." and stay on the domain overview. There is no error logged in var/log/sw-cp-server/error_log, /var/log/sw-cp-server/sw-engine.log or /usr/local/psa/admin/logs/panel.log.
I also tried "plesk bin mail --create foo@my.tld -mbox_quota 1M", but then I receive the error
Code: ERR [util_exec] proc_close() failed mailmng-outgoing failed: ERROR:outgoing:mails.domain_id may not be NULL
PHP-FPM support for nginx will not start when attempted in Tools & Settings > Services Management
Check error log:
#tail /var/log/php-fpm/error.log
ERROR: unable to bind listening socket for address '/var/www/vhosts/system/domain.tld/php-fpm.sock': Permission denied (13)
Possible problem:
SELinux may be preventing it. To test this do:
#setenforce 0
Now try and start PHP-FPM support again in Tools & Settings > Services Management
If that now starts you know what the problem is. Go to "Fix" below If it didnt work, you have a different issue. Turn SELinux back on while you figure it out:
#setenforce 1
Fix:
The following worked for me but i know very little about SELinux - corrections welcome:
## Turn SELinux to permissive # setenforce 0 ## In Plesk panel start PHP-FPM support in Tools & Settings > Services Management
Not sure what is going on with Plesk.. I've modified and saved a specific service plan with the session.save_path to have a location by default to be /tmp/ and for some reason it isn't changing all customers accounts with the modified settings of the location to be /tmp/. In order to resolve the issue, I'd have to manually change the "default" option on each websites php settings session.save_path to /tmp/ instead of Plesk syncing the correct settings based on the modification. Because of so, I am receiving the following error below on a customers website below:
Warning: Unknown: open(/var/lib/php/session/sess_f9bffgv0ddrjo9geb6frhut5d7, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0
After making changes, I've tried the following in command line:
service php-fpm restart service httpd restart service psa restart
When creating a new subscription via the API (Plesk 12) is there a way to specify the Mail settings? More importantly is there a way to turn off Mail when setting up a new subscription? Each time I create a subscription via the API Plesk spits out the following error:
Code: New configuration files for the Apache web server were not created due to the errors in configuration templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainWebmail.php, error = Template_Exception: Empty content was provided for config file /etc/httpd/conf/plesk.conf.d/webmails/horde/demon3zxc.e-worksmedia.com_webmail.conf file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0.
I have a problem in PLESK.I want to create in an existing subscription a second domain to host another site (this subscription already contains a domain).Clicking CREATE DOMAIN (in the subscription), here's the error message I get: IP addresses of domain for email services are not set (thus the domain can not be created).
I have set up my Virtual Private Server and uploaded all my site's files to /var/www folder. Before that, there was an old simple 'index.html' file
Code: <html> <head> <title>INDEX</title> </head> <body> <h1>IT WORKS!!!!</h1> </body> </html> and when I typed the address www.mydomain.com it displayed correctly. Then I deleted this html and uploaded my files through FTP and now the browser says :
Code: Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
im getting an error when im trying to create a subscription on a windows node via PPA management node, the task error is:
Method name: registerIpPlesk on SCREFleskWebIIS:0 Last execution output: This IP address XXX.XXX.XXX.XXX is already registered in Panel on the network interface Local Area Connection
the IP XXX.XXX.XXX.XXX is the correct service node IIS ip address..
I have parallel plesk 11.5 on my VPS hosting. Recently I upgraded the PHP version to 5.4 via Updates and Upgrades feature. Now, I am not able to change anything for any domain/website, it always shows me following error:
"Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.4" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again."
I tried creating a handler with same name in IIS but it didn't work. When I checked in "Server Components" the max PHP version is "PHP 5.3.28" but I see PHP 5.4 installed in C:ParallelsPleskAdditionalPleskPHP54 folder on the server.
When logged into the admin panel, I can manage all other domain except for one. When I try to manage this particular domain (which is our own domain rather than a client domain), it takes a while before returning page not found. In the logs, it's getting a high volume of the following error message:
Error: Unable to create or update the subscription: The PHP handler "fastcgi-5.3" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again.
I've tried attacking the issue through IIS. PHP appears to be configured correctly in IIS. I've looked at permissions. The website itself runs fine, I just can't manage the domain.
Another issue, which may be related, is when trying to access the PHP Manager in IIS for the PleskControlManager site, it gets an error stating that it can't find the php.ini file. I don't know if this is normal, or related.
Operation failed The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support.
Error show : Access is denied. ---------------------- Debug Info ------------------------------- Windows 2012 and Mssql 2012 .
I have a VPS with Ubuntu 9.04. I've setup ISPConfig etc as per the Perfect Server Howto Forge pages.
However I'm getting a problem with the configuration of maildrop, I get
Code:
temporary failure. Command output: ERR: authdaemon: s_connect() failed: Permission denied /usr/bin/maildrop: Unable to change to home directory. ls -lah /var/vmail
I just got a barebone server. Installed apache2, php5, mysql,phpmyadmin.
I only have SSH access to the server. I wish to use CoreFTP to transfer some webpage files to /var/www folder. I can login the server using CoreFTP's SSH/SFTP and it displays all the files and directories, but I do not have the permission to write.
My question is, how do I give myself permission to write? Here is the id of my user:
I made a copy of my forum's root folder using SSH command: cp -r forum forum123
Then I tried to update the new (forum123) folder with the latest files from vBulletin.
And it gave me a permission denied error. For test purpose, I went to the original folder and uploaded one of the new files there and it worked flawlessly.
Why am I not able to upload files to the copied folder? I've been doing this since like for ever, this is the first time I've encountered such an error.
I installed Avenger on FreeBSD 6.2 as Anti-Spam and I'm not understand some configuration.
1- Avenger as me to create a user 'avenger' in group 'wheel' for its program, but when starts asmtpd , it runs under user: root and group: wheel . What is the utility to create this user 'avenger' then?
2- When I run a Debug Mod, I obtain a permission denied error
It could be a potential security problem if I left "Other" to read virtusertable.db . So my question is: Is there another way to fix this error without changing permission for Other to read virtusertable.db?
I'm migrating from shared hosting to a VPS. I have transferred my files right over, and permissions are all the same as they were on the old server.
The fopen scripts are giving me an error when trying to write to files.
Code: failed to open stream: Permission denied
The permissions on the file are 644 and it can read from the file just fine. Giving the file world write permissions fixes the problem, but I don't want to do this for obvious reasons.
I think the reason this worked on the shared server had something to do with the apache user being defined differently but I'm honestly not sure. The php file executing the command is owned by the user that owns the document I'm trying to write to (in fact one user owns everything).
how I can fix this without giving world write permissions?
I have this big problem, when I try to create a new signature, it returns me this error (ProtDir_IIS :: update () failed: Add Protected Directory failed: columns SiteId, path are not unique (Error code 1)).