• Support
  • update to 6.8.23 result: nginx mkdir nginx-cache/wp" failed

Spido
Hi, can you give us a screenshot of the error?
Execute the command when starting nginx does not work: ls -al /dev/shm/

    Spido
    Hello, is there no prompt to press Ctrl+F5? Try restarting the panel, and then try to repair it, it will take some time to repair.
    Restart panel command: bt restart

      aaPanel_Kern
      I have already restarted the panel earlier, but it did not help.
      After restarting, the Nginx server stopped running.
      Then manually had to create folders for Nginx.

        11 days later

        thanks, I commented out the line and then restarted the vps and it worked!

        a month later

        ALMB0827
        This is because nginx will start up and earlier than the panel, so using service nginx status /systemctl status nginx will prompt an error.
        When the panel starts to create a directory, nginx will be started, and /etc/init.d/nginx start is used
        It is not started by service /systemctl, so it still prompts an error to view it with service /systemctl. In fact, nginx has been started. You can ignore the error and use the following two commands to view:
        /etc/init.d/nginx status
        ps uax|grep nginx

        Or modify the startup file
        vim /etc/init.d/nginx
        Added content:
        mkdir -p /dev/shm/nginx-cache/wp
        As shown in the figure:

        a year later

        This issue is back. I experienced it after today's 6.8.28 update. Had to comment out the same line mentioned above in order for nginx service to start at boot (it could still be manually started).

        Side Note: After the update, I also had to comment out the last 3 lines in /www/server/panel/vhost/nginx/free_waf.conf as detailed in the below link.
        https://www-baimeidashu-com.translate.goog/9329.html?x_tr_sch=http&x_tr_sl=auto&x_tr_tl=en&x_tr_hl=en&_x_tr_pto=wapp

        Both issues persisted after removing and reinstalling nginx, as well as running panel "fix".

        2 months later

        Hi. Any solution ? @aaPanel_Kern
        Today my nginx suddenly down, but after reboot server, nginx not automatically restart. I have to start it manually
        Aapanel version before 6.8.28

          aaPanel_Kern
          Currently works only with restart manual nginx. But what is the main cause? Can it be prevented?
          Cause when i reboot server, nginx not automatically start.

          Nginx version: 1.21.4

            corazon
            Hello, enter the app store and refresh it once, and then check whether nginx can start?

            use: /etc/init.d/nginx status

              aaPanel_Kern Yes it already start. But i have faced this problem several times. And yeah manual restart nginx again.

              Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com