1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Issue Clicking "Updates and Upgrades" gets me a 404 error

Discussion in 'Plesk Onyx for Windows' started by Chanan, Nov 27, 2017.

  1. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    After the last automatic update (Nov. 22), I can't access the "Updates and Upgrades" page anymore.
    It gets me a 404 Page Not Found error.

    Any clue how to resolve this?

    My version is Plesk Onyx 17.5.3 Update #29 , last updated at Nov 22, 2017 12:10 AM.
    Server is Windows Server 2012 r2.

    The requested link I see is https://[myServerIP]:8443/smb/redirect/pleskin?dst=/admin/update/product/

    Thanks.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,570
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to fix it with following command:

    plesk repair installation
     
  3. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    Thanks for this.
    Tried "plesk repair all" (the "installation" aspect is not available in my case).
    A minor problem was detected and fixed in the "sessions" db table.
    Restarted the server.
    The 404 issue remains.
    The URL is https://[myServerIp]:8443/smb/redirect/pleskin?dst=/admin/update/product/

    Is there any other way we can follow in order to resolve this?
    Thanks.
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,570
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to reinstall all updates with following command

    plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
     
  5. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    Resolved it now:
    Issue was related to ModSecurity, which blocked access to the "Updates and Upgrades" page.
    Deactivating ModSecurity solved the problems.

    Issue began when we noticed ModSecurity errors in the Event Log: the module couldn't access its configuration files.
    We thought we might update the module but couldn't access the "Updates and Upgrades" page.
    We suspect it might be connected to us trying to access the page when the automatic Plesk update was still running...

    The page is accessible now. We'll see whether the ModSecurity problem would be resolved as well.
     
  6. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    Well, just to sum it all up: the ModSecurity is still raising errors:
    -------------
    The description for Event ID 1 from source ModSecurity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:
    Cannot open config file: C:\Program Files (x86)\Parallels\Plesk\ModSecurity\vhosts\0554482C-1C28-4293-ADCB-4ACAF0430CF4\modsecurity.conf
    -------------
    The file in question exists.
    Permissions for "psaadm": read & execute
    Permissions for "psacln": deny everything
    Permissions for "psasrv": deny everything

    Is there a way to set permissions manually and preventing updates from modifying them?
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,570
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Most probably that the root cause of this issue is a wrong installation of ModSecurity in IIS Manager for the website.
    I would suggest you reinstall this component.
     
  8. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    Thanks.
    I've reinstalled ModSecurity using the command prompt:
    plesk installer --select-release-current --remove-component modsecurity
    plesk installer --select-release-current --install-component modsecurity

    Hopefully, this would resolve the ModSecurity related problems.
    Thanks again.
     
  9. Chanan

    Chanan New Pleskian

    1
    70%
    Joined:
    Nov 27, 2017
    Messages:
    6
    Likes Received:
    0
    Location:
    Venice, Italy
    Sad to report that the problem with ModSecurity persists after reinstalling it yesterday.
    Obviously an issue with permissions.
    Which user must have read permissions to view the configuration file?
    Right now, only "psaadm" has read & execute permissions.
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,570
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Have you tried to restore and repair permissions with Plesk reconfigurator?
     
  11. ChananZ

    ChananZ New Pleskian

    17
    60%
    Joined:
    May 31, 2011
    Messages:
    14
    Likes Received:
    0
    I've tried to repair permissions, using Plesk reconfigurator. To no avail. ModSecurity does not work properly due to permission issues (can't read the conf files).
    When I deactivate ModSecurity I don't encounter any 404 errors accessing the "Updates and Upgrades" page.
    What's with the ModSecurity permissions? It appears others have encountered similar isssues.
     
Loading...