Symptoms
-
Unable to create git repository in Domains > example.com > Git > Add repository;
-
Cannot open Git menu under Domains > example.com > Git:
PLESK_ERROR: Server Error
500
Type PleskUtilException
Message filemng failed: filemng: Error occurred during /usr/bin/base64 command.
File Agent.php
Line 228 -
Unable to create a subdomain under Domains > Add Subdomain:
PLESK_ERROR: PleskUtilException: filemng failed: filemng: Error occurred during /usr/bin/base64 command. (Agent.php:228)
Cause
Incorrect permissions for the .ssh
directory and/or files inside it. Files should be owned by subscription user and group psacln
.
Resolution
-
Connect to the server via SSH.
-
Determine the system user for subscription using the path to the vhost (see error from
/var/log/plesk/panel.log
for reference):# grep example.com /etc/passwd
johndoe:x:10000:1003::/var/www/vhosts/example.com/:/bin/false -
Set the system user as owner for all files of the
.ssh
directory inside virtual host:# chown -R johndoe:psacln /var/www/vhosts/example.com/.ssh/