Cannot select plugin to create a server



  • When creating a new server, nothing is shown under Server Plugin to create a server from.

    There is nothing in /srv/pufferpanel/logs
    When looking at List Nodes, the node shows green
    The panel is running on Apache2
    I have tried sudo a2enmod rewrite and sudo service apache2 restart

    When attempting to create one anyways, the following error occurs on the page:
    An error occurred while trying to connect to the remote node. Please check that the daemon is running and try again.
    An error occurred trying to add a server. ({"error":"Receieved response i(int=500)"} ) [HTTP 500]

    Nothing is shown under Server Plugin to create a server from.

    Looking at the latest file from /srv/pufferd/logs
    [01:03:05] [INFO] pufferd v1.0.5 (2017-02-09_06:49:32PM 17ef2d96cd8a73910a1a6bb94d7227927f02fe48)
    [01:03:05] [INFO] Logging set to INFO
    [01:03:05] [WARN] No HTTPS.PEM found in data folder, will use no http
    [01:03:05] [DEBUG] Loading existing key
    [01:03:05] [INFO] Started SFTP Server on 0.0.0.0:5657
    [01:03:05] [DEBUG] Checking for updates using https://dl.pufferpanel.com/pufferd/v1.0/version.txt
    [01:03:05] [INFO] Starting web access on 0.0.0.0:5656



  • I'm curious if the 1.0.5 build has something wrong.

    Can you please download the 1.0.4 build to your server and see if it resolves this issue?
    https://dl.pufferpanel.com/pufferd/v1.0.4/pufferd

    Just replace the binary file and restart the daemon



  • I switched out the binaries and confirmed with the systemctl status pufferpanel that the current running daemon is 1.0.4.

    There are still no plugins to select and the same error still occurs on the page:
    An error occurred while trying to connect to the remote node. Please check that the daemon is running and try again.
    An error occurred trying to add a server. ({"error":"Receieved response i(int=500)"} ) [HTTP 500]

    The latest from /srv/pufferd/logs/ reads:
    [13:03:07] [INFO] pufferd v1.0.4 (2017-02-05_04:26:49PM f90bb5f8d0f329be17a380c73384debf365c33a2)
    [13:03:07] [INFO] Logging set to INFO
    [13:03:07] [WARN] No HTTPS.PEM found in data folder, will use no http
    [13:03:07] [DEBUG] Loading existing key
    [13:03:07] [INFO] Started SFTP Server on 0.0.0.0:5657
    [13:03:07] [DEBUG] Checking for updates using https://dl.pufferpanel.com/pufferd/v1.0/version.txt
    [13:03:07] [INFO] Starting web access on 0.0.0.0:5656
    [13:03:08] [INFO] DL server reports a different hash than this version, an update may be available
    [13:03:08] [INFO] Installed: f90bb5f8d0f329be17a380c73384debf365c33a2
    [13:03:08] [INFO] Online: 17ef2d96cd8a73910a1a6bb94d7227927f02fe48
    [13:03:34] [ERROR] Unexpected response code from auth server
    500
    [13:03:34] [ERROR] Error handling route
    interface conversion: interface is nil, not string

    EDIT: I looked back at the /srv/pufferd/logs and it seems like the 1.0.5 binary also has the "Unexpected response code from auth server 500" and the "Error handling route interface conversion: interface is nil, not string" errors.



  • Okay, those errors indicate that PufferPanel had an error trying to validate that the daemon was in fact the daemon or that the panel was actually the panel (yay authorization).

    There should still be logs /srv/pufferpanel/logs, but you might need to chown those to the apache/www-data user (whichever php is actually running as) so it can write those logs.



  • After chowning and trying to create a server, /srv/pufferd/logs/exception.log appeared with (some sensitive/identifying info was changed below):

    [2017-02-17 19-15-29] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ http://panel.myserver.net/admin/server/new/plugins?node=1 @@ exception--2017-02-17--19-15--a55e36a3ec.html
    [2017-02-17 19-15-35] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ http://panel.myserver.net/oauth2/token/info @@ exception--2017-02-17--19-15--a55e36a3ec.html
    [2017-02-17 19-15-35] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ http://panel.myserver.net/admin/server/new/plugins?node=1 @@ exception--2017-02-17--19-15--a55e36a3ec.html
    [2017-02-17 19-15-35] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ http://panel.myserver.net/admin/server/new/plugins?node=1 @@ exception--2017-02-17--19-15--a55e36a3ec.html



  • had the same issue, make sure the daemon is running



  • @PacksGamingHD said in Cannot select plugin to create a server:

    had the same issue, make sure the daemon is running

    I ran systemctl status pufferd, so I'm assuming this means that the daemon is running:
    ● pufferd.service - pufferd daemon service
    Loaded: loaded (/etc/systemd/system/pufferd.service; enabled)
    Active: active (running) since Fri 2017-02-17 13:24:17 EST; 24h ago
    Main PID: 31829
    CGroup: /system.slice/pufferd.service
    └─31829 n/a

    On PufferPanel, it shows the node as online
    alt text



  • I have the same problem on mine and im on v1.0.2



  • My pufferd instance says this from

    service pufferd status
    
    ● pufferd.service - pufferd daemon service
       Loaded: loaded (/etc/systemd/system/pufferd.service; enabled; vendor preset: enabled)
       Active: active (running) since Tue 2017-02-28 12:51:43 CET; 5min ago
     Main PID: 16510 (pufferd)
       CGroup: /system.slice/pufferd.service
               └─16510 /srv/pufferd/pufferd --config /etc/pufferd/config.json
    
    Feb 28 12:51:43 *removed* pufferd[16510]: [12:51:43] [INFO] Started SFTP Server on 0.0.0.0:5657
    Feb 28 12:51:43 *removed* pufferd[16510]: [12:51:43] [INFO] Starting web access on 0.0.0.0:5656
    Feb 28 12:52:35 *removed* pufferd[16510]: [12:52:35] [ERROR] Unexpected response code from auth server
    Feb 28 12:52:35 *removed* pufferd[16510]: 500
    Feb 28 12:52:35 *removed* pufferd[16510]: [12:52:35] [ERROR] Error handling route
    Feb 28 12:52:35 *removed* pufferd[16510]: interface conversion: interface is nil, not string
    Feb 28 12:54:02 *removed* pufferd[16510]: [12:54:02] [ERROR] Unexpected response code from auth server
    Feb 28 12:54:02 *removed* pufferd[16510]: 500
    Feb 28 12:54:02 *removed* pufferd[16510]: [12:54:02] [ERROR] Error handling route
    Feb 28 12:54:02 *removed* pufferd[16510]: interface conversion: interface is nil, not string
    


  • This error means that pufferd failed to talk to Pufferpanel right, and that the panel sent back a 500.

    I am working on a release to fix assorted issues with the communication, but you can check /srv/pufferpanel/logs for the exact logs.

    If there is nothing there, then run the following depending on your OS
    Ubuntu: chown -R www-data:www-data /srv/pufferpanel/logs
    Centos: chown -R apache:apache /srv/pufferpanel/logs



  • The log file contains

    [2017-02-28 11-35-49] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-35-57] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/oauth2/token/info  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-35-59] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-35-59] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-52-16] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-52-35] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/oauth2/token/info  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-52-37] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-52-37] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-53-23] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-53-36] 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:235  @  https://panel.skynetc.net/admin/server/new/plugins?node=15  @@  exception--2017-02-28--11-53--8147480aa3.html
    [2017-02-28 11-53-36] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-53-49] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-53-49] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-54-02] 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:235  @  https://panel.skynetc.net/admin/server/new/plugins?node=15  @@  exception--2017-02-28--11-53--8147480aa3.html
    [2017-02-28 11-54-02] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-54-02] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/oauth2/token/info  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-54-09] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    [2017-02-28 11-54-10] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276  @  https://panel.skynetc.net/admin/server/new/plugins?node=13  @@  exception--2017-02-28--11-35--54c1166069.html
    

    and this is the html file



  • Is there a version that I can use until this is fixed?



  • As a current work-around, I switched from apache2 to nginx and confirmed that it works, but I realize that's not a viable option for everyone.

    Edit I spoke too soon, I get the same errors using nginx
    Mar 05 20:57:02 myserver.Net pufferd[3651]: [20:57:02] [ERROR] Error handling route
    Mar 05 20:57:02 myserver.net pufferd[3651]: interface conversion: interface is nil, not string

    [2017-03-06 02-04-53] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ https://panel.mydomain.net/admin/server/new/plugins?node=1 @@ exception--2017-03-06--02-04--a55e36a3ec.html
    [2017-03-06 02-05-00] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ https://panel.mydomain.net/admin/server/new/plugins?node=1 @@ exception--2017-03-06--02-04--a55e36a3ec.html
    [2017-03-06 02-05-00] Klein\Exceptions\LockedResponseException: Response is locked in /srv/pufferpanel/vendor/klein/klein/src/Klein/AbstractResponse.php:276 @ https://panel.mydomain.net/admin/server/new/plugins?node=1 @@ exception--2017-03-06--02-04--a55e36a3ec.html



  • Hi,

    Got the same problem and already created an other post :
    https://community.pufferpanel.com/topic/474/no-server-plugins/4

    Also tried to downgrade to previous result and same result
    Also tried to replace apache with nginx but same "Response is locked" Result too



  • The Repsonse is Locked is a failure in our routing library to properly catch the underlying error, and so it's losing it.

    I'm already working on removing that problem for the 1.0.3 release, and so if this error continues, we will be able to properly locate what is going wrong with this.



  • I feel really stupid. I had forgotten that I needed to use https instead of http in the pufferd config.
    I updated the panel, it reported a 301 redirect error when I tried to create the server. I realized it was looking for port 80 and not SSL's port 443.
    After using the suggested methods here: https://community.pufferpanel.com/topic/483/cant-create-new-server/32 and then editing the config to use https, the panel is now mostly working.

    Thank you all and sorry for the blunder.

    Mar 15 00:32:59 mypanel.net systemd[1]: Started pufferd daemon service.
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [INFO] pufferd v1.0.5 (2017-02-09_06:49:32PM 17ef2d96cd8a73910a1a6bb94d7227927f02fe48)
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [INFO] Logging set to INFO
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [INFO] Loaded server e34ac28b-daec-40aa-9158-be1d53f2b311
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [INFO] Starting server e34ac28b-daec-40aa-9158-be1d53f2b311
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [ERROR] Error starting SFTP
    Mar 15 00:32:59 mypanel.net pufferd[28263]: ssh: unsupported key type "CERTIFICATE"
    Mar 15 00:32:59 mypanel.net pufferd[28263]: [00:32:59] [INFO] Starting web access on 0.0.0.0:5656

    I created a Bungee server and it worked.
    SFTP errors are displaying because I'm currently re-configuring the sftp server,


Log in to reply
 

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