Problem Installing PufferPanel OVH Ubuntu 16.04



  • Hi there,
    I started trying to install PufferPanel on my VPS last night, but I keep getting an error. I thought I had everything set up, but when I go to my site, I get a bad gateway (502) error. I am running nginx and when I type systemctl status nginx, I get this output to the console:

       nginx.service - A high performance web server and a reverse proxy server
       Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
       Active: active (running) since Thu 2017-06-15 23:57:17 EDT; 9h ago
      Process: 2251 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)
      Process: 2260 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
      Process: 2256 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
     Main PID: 2263 (nginx)
        Tasks: 2
       Memory: 1.8M
          CPU: 33ms
       CGroup: /system.slice/nginx.service
               ├─2263 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
               └─2264 nginx: worker process
    
    Jun 15 23:57:17 vps132438 systemd[1]: Starting A high performance web server and a reverse proxy server...
    Jun 15 23:57:17 vps132438 systemd[1]: nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument
    Jun 15 23:57:17 vps132438 systemd[1]: Started A high performance web server and a reverse proxy server.
    

    When I run systemctl status pufferd, I get this output:

       pufferd.service - pufferd daemon service
       Loaded: loaded (/etc/systemd/system/pufferd.service; enabled; vendor preset: enabled)
       Active: active (running) since Thu 2017-06-15 23:57:10 EDT; 9h ago
      Process: 2221 ExecStop=/srv/pufferd/pufferd -shutdown $MAINPID (code=exited, status=0/SUCCESS)
     Main PID: 2232 (pufferd)
        Tasks: 9
       Memory: 4.4M
          CPU: 1.484s
       CGroup: /system.slice/pufferd.service
               └─2232 /srv/pufferd/pufferd
    
    Jun 15 23:57:10 vps132438 systemd[1]: Started pufferd daemon service.
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [INFO] No config passed, defaulting to /etc/pufferd/config.json
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [INFO] pufferd v1.1.4 (2017-05-30_09:44:12PM 1ce749ff7c64a8778aa3cc3e4b60820503066c83)
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [INFO] Logging set to INFO
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [WARN] No HTTPS.PEM found in data folder, will use http instead
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [INFO] Started SFTP Server on 0.0.0.0:5657
    Jun 15 23:57:10 vps132438 pufferd[2232]: [23:57:10] [INFO] Starting web access on 0.0.0.0:5656
    

    My srv/pufferpanel/logs folder is completely empty, but during the install, I get this error:

    mysql: [Warning] Using a password on the command line interface can be insecure.
    ERROR 1045 (28000): Access denied for user 'pufferpanel'@'localhost' (using password: YES)
    

    I'm not sure why I'm getting this error. Originally, I installed this set up with root and the root MySQL password. I then uninstalled by deleting srv, deleting var/lib/pufferd, and deleting etc/pufferd. I reinstalled after creating a MySQL user with the name pufferpanel and using that password in the installer. Still got the same errors. I have setup my pufferpanel.conf file in pool.d and changed the listen port to 127.0.0.1:9000 or whatever it's supposed to be.

    Any ideas? Thanks!



  • Why did you change the listen port to 9000?



  • Change the listen port to 9000 in what? In the /etc/php/7.0/fpm/pool.d/www.conf file? Because if so, then yes, I did.

    EDIT: If I add :5656 to the end of the web address in my bar, this displays in the browser:
    {"success":true,"msg":"pufferd is running"}
    :5657 Sends an invalid http response.



  • @AdamW78 You shouldn't have needed to change that. What happens if you tried to revert the www.conf before the changes?



  • Same problem if I revert it.



  • Does nginx work normally if you remove the pufferpanel.conf from /etc/nginx/sites-enabled?



  • @Nystrata Yes. If I remove the pufferpanel.conf, I get this page:
    alt text



Looks like your connection to PufferPanel Community was lost, please wait while we try to reconnect.