I can't communicate with the daemon pufferd when using HTTPS



  • Hello,

    I'm receiving an error when I try to start, install, stop a server on the server panel. According to the console of my web browser it's a 502 (so an internal server error). Everything is working fine on http.
    I correctly set up the SSL for pufferd using the Let's Encrypt certificates:

    root@vps:/etc/pufferd# ls -l
    total 16
    -rw-r--r-- 1 pufferd pufferd  435 May 25 14:28 config.json
    -rw------- 1 pufferd pufferd 3243 May 25 14:35 https.key
    -rw------- 1 pufferd pufferd 3859 May 25 14:35 https.pem
    -rwx------ 1 pufferd pufferd 1679 May 25 14:28 server.key
    

    Here is the logs from pufferpanel:

    [2017-05-25 12-36-15] Klein\Exceptions\UnhandledException: Daemon not available in /srv/pufferpanel/vendor/klein/klein/src/Klein/Klein.php:954 caused by Exception: Daemon not available in /srv/pufferpanel/src/core/daemon.php:239 caused by Unirest\Exception: Failed to connect to 127.0.0.1 port 5656: Connection refused in /srv/pufferpanel/vendor/mashape/unirest-php/src/Unirest/Request.php:476  @  https://panel.alteiria.fr/daemon/server/01814cf6-36d3-4c3b-b67b-7deea389effa/logs?time=0  @@  exception--2017-05-25--12-36--049173a509.html
    [2017-05-25 12-36-39] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:62  @  https://panel.alteiria.fr/admin/server
    

    And from pufferd:

    [14:36:16] [INFO] pufferd v1.1.3 (2017-05-22_10:43:14PM 5fa65e354af1d8a9700289a4f00953655c1a86a4)
    [14:36:16] [INFO] Logging set to INFO
    [14:36:16] [DEBUG] Loading server as standard
    [14:36:16] [DEBUG] Loading server as standard
    [14:36:16] [INFO] Loaded server 01814cf6-36d3-4c3b-b67b-7deea389effa
    [14:36:16] [DEBUG] Loading server as standard
    [14:36:16] [DEBUG] Loading server as standard
    [14:36:16] [INFO] Loaded server 131dbe81-6574-4298-91ca-ccddd32f345e
    [14:36:16] [INFO] Starting server 01814cf6-36d3-4c3b-b67b-7deea389effa
    [14:36:16] [DEBUG] Starting server 01814cf6-36d3-4c3b-b67b-7deea389effa
    [14:36:16] [DEBUG] Saving server 01814cf6-36d3-4c3b-b67b-7deea389effa
    [14:36:16] [INFO] Starting server 131dbe81-6574-4298-91ca-ccddd32f345e
    [14:36:16] [DEBUG] Starting server 131dbe81-6574-4298-91ca-ccddd32f345e
    [14:36:16] [DEBUG] Saving server 131dbe81-6574-4298-91ca-ccddd32f345e
    [14:36:16] [DEBUG] Loading existing key
    [14:36:16] [INFO] Started SFTP Server on 0.0.0.0:5657
    [14:36:16] [DEBUG] Checking for updates using https://dl.pufferpanel.com/pufferd/v1.1/version.txt
    [14:36:16] [INFO] Starting web access on 0.0.0.0:5656
    [14:36:21] [DEBUG] map[active:true scope:server.start server.stop server.install server.file.get server.file.put server.console server.console.send server.stats server.network sftp client_id:.internal_1_2 username:1 server_id:01814cf6-36d3-4c3b-b67b-7deea389effa]
    [14:36:34] [DEBUG] map[scope:server.start server.stop server.install server.file.get server.file.put server.console server.console.send server.stats server.network sftp client_id:.internal_1_2 username:1 server_id:01814cf6-36d3-4c3b-b67b-7deea389effa active:true]
    [14:36:42] [DEBUG] map[active:true scope:server.start server.stop server.install server.file.get server.file.put server.console server.console.send server.stats server.network sftp client_id:.internal_1_1 username:1 server_id:131dbe81-6574-4298-91ca-ccddd32f345e]
    

    Did I made a mistake or is this a bug?



  • I also had issues with my ssl configuration initially, but i can assure you there are no major bugs as mine works with ssl.

    I suspect your problem is that you need to update the nodes public ip to the domain name you used for your ssl certs. seeing as it is trying to connect to the node using 127.0.0.1 still



  • @GoadingGoat Thank you so much, this resolves my issue. We should add your comment to the wiki for the next visitors.


Log in to reply
 

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