Unable to upload VPS license on a CloudLinux server: Cannot open source file System error 13 Permission denied

Created:

2016-12-12 03:42:51 UTC

Modified:

2017-08-08 13:28:22 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to upload VPS license on a CloudLinux server: Cannot open source file System error 13 Permission denied

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to activate Plesk:

The license key is invalid. In order to use Plesk, please obtain and install a new valid license key. The license key is intended only for use with Plesk operating inside the following virtual environments: Virtuozzo containers, VMWare, Microsoft Hyper-V, Xen, KVM, Virtuozzo Server, LXC, Docker.

The platform is shows as kvm :

# virt-what
kvm

The following error is shown in /var/log/plesk/panel.log :

DEBUG [util_exec] [934deb977e3cc5411b352bf640acdd21][1] Starting: filemng root cp2perm filemng2vz3bL /usr/local/psa/admin/conf/customizations.conf 644 --allow-root
ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/filemng' 'root' 'cp2perm' 'filemng2vz3bL' '/usr/local/psa/admin/conf/customizations.conf' '644' '--allow-root'] with exit code [1]
stdout:
filemng: Cannot open source file 'filemng2vz3bL'
System error 13: Permission denied
file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 65
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(integer '1', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(integer '1', object of type Service_Agent_Command_Exec, object of type Service_Agent_Transport_LocalTransaction)
#2 /usr/local/psa/admin/plib/Service/Agent.php(150): Service_Agent_Transport_Local->process(string '934deb977e3cc5411b352bf640acdd21', array)
#3 /usr/local/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(214): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Service/Driver/Filesystem/Plesk/Unix.php(182): Service_Driver_Filesystem_Plesk_Unix->upload(string 'root', string '/usr/local/psa/tmp/filemng2vz3bL', string '/usr/local/psa/admin/conf/customizations.conf', string '644')
#5 /usr/local/psa/admin/plib/FileManager.php(233): Service_Driver_Filesystem_Plesk_Unix->putFileContent(string 'root', string '/usr/local/psa/admin/conf/customizations.conf', string '{"serverSettingsVersion":"plesk-1"}', string '644')
#6 /usr/local/psa/admin/plib/PartnerCentral/Customizations.php(57): FileManager->fputs_wrapper(string '/usr/local/psa/admin/conf/customizations.conf', string '{"serverSettingsVersion":"plesk-1"}')
#7 /usr/local/psa/admin/htdocs/server/key_upload.php(86): PartnerCentral_Customizations::load(boolean true)
ERR [panel] Failed to copy files storage to destination path. stderr: filemng: Cannot open source file 'filemng2vz3bL'

Unable to call filwrpr utility under psaadm user:

# su -l psaadm -s /bin/bash -c '/usr/local/psa/admin/bin/filwrpr 43'
-bash: /usr/local/psa/admin/bin/filwrpr: Permission denied

filewrpr symlink in /usr/local/psa/admin/bin/ directory belongs to psaadm :

# stat /usr/local/psa/admin/bin/filwrpr
file: «/usr/local/psa/admin/bin/filwrpr» -> «../sbin/wrapper»
size: 15 blocks: 0 IO Block: 4096 symbolic link
Device: 801h/2049d Inode: 1026990 Ссылки: 1
Access: (0777/lrwxrwxrwx) Uid: ( 994/ psaadm) Gid: ( 1001/ psaadm)

# ll /usr/local/psa/admin/bin/filwrpr
lrwxrwxrwx 1 psaadm psaadm 15 Nov 16 05:30 /usr/local/psa/admin/bin/filwrpr -> ../sbin/wrapper

Cause

Incorrect symlink owner of filwrpr utility on a CloudLinux server. Permissions should be:

# stat /usr/local/psa/admin/bin/filwrpr
File: ‘/usr/local/psa/admin/bin/filwrpr’ -> ‘../sbin/wrapper’
Size: 15 Blocks: 0 IO Block: 4096 symbolic link
Device: 801h/2049d Inode: 1026831 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)

Resolution

Re-create a symlink so that it is created with the correct permissions:

# cd /usr/local/psa/admin/bin
# unlink filwrpr
# ln -s ../sbin/wrapper filwrpr
Have more questions? Submit a request
Please sign in to leave a comment.