• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Still "File not found", even after several "repairs"

Hi,
Note that you have customized the default values for fastcgi_buffers (by default: 16 16k) and fastcgi_buffer_size (by default: 32k) and more is not necessary. Please revert the values.
I didn't change these values myself !
OK, but I revert them to your values.

location @route {
include /etc/sw-cp-server/fastcgi_params;
fastcgi_pass unix:/var/run/sw-engine.sock;
fastcgi_param PATH_INFO /admin/$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /opt/psa/admin/htdocs/application.php;
fastcgi_param HTTP_PRAGMA $http_pragma;
}

Did it. But I have to change "/opt/psa/admin" to "/usr/local/psa/admin".
And now "sw-cp-server restart".

==> No blank screen !!!! I could login ! Heureka!!

But now all "submenues" like "customer", "domains", "tools and settings",.... didn't show something on the right side, i.e. I just saw the header like "Domain", but no contents, i.e. the installed domains.

By the way, verify that you indeed have the /opt/psa/admin/htdocs/application.php file (I am pretty sure that you have that).
As mentioned above "application.php" ist located under "/usr/local/psa/admin/htdocs/application.php"

First of all, thanks again, and I hope we'll get back the rest too ;-)
by
Holger
 
@Holger,

One problem "partially" solved and some others should be easily solved by looking at AND changing /etc/sw-cp-server/conf.d/plesk.inc.

First, note that your "root" is /usr/local/psa/admin/htdocs and not /opt/psa/admin/htdocs.

In plesk.inc, change every occurrence (if any) of /opt/psa to /usr/local.

Note that you have to check the "root directive" (i.e. at the top of plesk.inc) specifically.

Second, make sure that all (old) @admin references are changed to @route (i.e. the new reference) in plesk.inc.

Primarily have a look at "location /admin" and "location /smb" in which these references should be present.

Third, do a restart of the sw-cp-server.

Let me know what the result of the above is.

Regards.....
 
Hi,

I've changed all values as you wrote in your last post.

Primarily have a look at "location /admin" and "location /smb" in which these references should be present.

[root@vxxx conf.d]# cat plesk.inc
underscores_in_headers on;
access_log /usr/local/psa/admin/logs/httpsd_access_log main buffer=8k;

index index.php;
root /usr/local/psa/admin/htdocs;

# Some rewrites
rewrite ^/sitepreview/(.*)$ /sitepreview.php/$1 last;
rewrite ^/sso/ui$ /sso/ui.php last;
rewrite ^/sso/users$ /sso/users.php last;
rewrite ^/sso/signout$ /sso/signout.php last;

# Admin panel
location /admin {
alias /usr/local/psa/admin/panel/application/public;
try_files $uri @route;
}

location @route {
include /etc/sw-cp-server/fastcgi_params;
fastcgi_pass unix:/var/run/sw-engine.sock;
fastcgi_param PATH_INFO /admin/$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /usr/local/psa/admin/htdocs/application.php;
fastcgi_param HTTP_PRAGMA $http_pragma;
}


# SMB panel
location /smb {
alias /usr/local/psa/admin/smb/application/public;
try_files $uri @smb;
}

location @smb {
include /etc/sw-cp-server/fastcgi_params;
fastcgi_pass unix:/var/run/sw-engine.sock;
fastcgi_param PATH_INFO /smb/$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /usr/local/psa/admin/smb/application/public/index.php;
}
# Plesk service
location ~* ^/services/([^/]+) {
set $service_name $1;
alias /usr/local/psa/admin/services/$service_name/public;
try_files $uri @service;
}

location @service {
include /etc/sw-cp-server/fastcgi_params;
fastcgi_pass unix:/var/run/sw-engine.sock;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /usr/local/psa/admin/services/$service_name/public/index.php;
}
# Plesk (old screens)
location /plesk {
try_files $uri /plesk.php?$args;
}
# Custom skins
location /theme-skins {
try_files $uri @default-skin;
}

location @default-skin {
rewrite ^/theme-skins/[^/]+/(.*)$ /theme/$1 last;
}

# For backup download via X-Accel-Redirect
location /tmp/ {
internal;
alias /tmp/;
}

location ~* \.(php|php3)(/|$) {
include /etc/sw-cp-server/fastcgi_params;
fastcgi_pass unix:/var/run/sw-engine.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

############################################

I've checked all mentioned files and directories:
=> /usr/local/psa/admin/logs/httpsd_access_log exists
=> /usr/local/psa/admin/htdocs exists
=> /usr/local/psa/admin/panel/application/public DOESN'T EXIST !!!
(even /usr/local/psa/admin/panel doesn't exist !!)
=> /etc/sw-cp-server/fastcgi_params exists
=> /var/run/sw-engine.sock exists
=> /usr/local/psa/admin/smb/application/public/index.php DOESN'T EXIST !!!
(just one director "images" in /usr/local/psa/admin/smb/application/public )

Some other dirs are missing in /usr/local/psa/admin (see listing above).

When logging in, I could see all possible features on the left side (like "Domains", "Customers", ...), but if I click on one of these on the right side of the window (in the Webbrowser) nothing ist shown. The left side is still there (see image).

bye und best regards
Holger
 

Attachments

  • Plesk1.jpg
    Plesk1.jpg
    103 KB · Views: 2
@Holger,

This

# SMB panel
location /smb {
alias /usr/local/psa/admin/smb/application/public;
try_files $uri @smb;
}

should be or become

# SMB panel
location /smb {
alias /usr/local/psa/admin/smb/application/public;
try_files $uri @route;
}

and note that you can safely leave the location @smb part (it will not "hit", when redirecting to @route).

Try this and let me know.

By the way, it would be an option to grant me SSH access (that would work a lot faster): just start a conversation (click on my profile), if you would like to do so.

Regards....
 
@trialotto
I've change the @smb part, restart "sw-cp-server" and "sw-engine" to, but no luck.
The right side stay blank.

In /var/log/plesk/panel.log:
[2016-01-31 21:17:51] ERR [panel] Requested URL: /admin/scripts/admin-panel.js?1440595007
[2016-01-31 21:17:51] ERR [panel] Ungültiger URL angefordert.

(last line means: unknown URL)
The number (1440595007) is always the same, apart to which entry on the left I clicked.

But no 404 errors in httpsd_access_log.

For the ssh-connection I've to ask my boss :(
Perhaps we could try one or two things before ;-)

best regards
Holger
 
@Holger,

Please flush the cache of your browser (or use another browser).

Also have a look at whether you can find the panel.js (just run the command "find / -name panel.js" from the command line).

Another note: you have a German language, please set the (system and panel) language to English. This is not likely to be the root cause of the problem, but it can matter.

The command for setting the default panel language: plesk bin locales --set-default en-US (and recheck the locale settings for the system).

Regards...

PS One thing you can do now is to run the autoinstaller from the command line: just install a package. The autoinstaller will "enforce" an update of all packages and, as such, it can be the case that some of the errors are resolved. At least worth the try.
 
@trialotto,

Within the login fields (https://<MY_HOST>:8443) I could just change between "Default language" and "German". No other choices.

Also have a look at whether you can find the panel.js (just run the command "find / -name panel.js" from the command line).
To only occurence is (apart fromout Joomla-Installations):
/usr/local/psa/admin/htdocs/javascript/externals/codemirror/addon/display/panel.js

As I wrote before, I think there are several directories and files missing under /usr/local/psa/htdocs.

Is it possible to get them back from a backup from 20.December 2015?

The command for setting the default panel language: plesk bin locales --set-default en-US (and recheck the locale settings for the system).

[root@vxxx ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

The "Umlaute" may come from the use of "putty" as ssh-client.

PS One thing you can do now is to run the autoinstaller from the command line: just install a package.

I started "plesk installer" and installed "Plesk Web Server Configuration Troubleshooter" which wasn't installed before.
"plesk installer" said it needs nearly 3000MB of free space, but just install the troubleshooter component in a few seconds.
No "reinstall" of other components. And so no change in the webinterface.

When I select "Plesk" (on the topmost selection: "Main components") I got the message in the attached file.
Naturally I discard this selection.

best regards
Holger
 

Attachments

  • Plesk_install.txt
    2.6 KB · Views: 1
Back
Top