Skip to content

Can't do anything with a server. #840

Can't do anything with a server. #840
Dec 2, 2021 · 10 comments · 9 replies

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

Hello,

I installed PufferPanel on my VPS and I can't use it as I want.

When attempting to start a server, i obtain this error: {{ }} (Internal Server Error)

When attempting to restart, stop and install I get this error: Unable to process your request. Please try again. (Internal Server Error)

This is the error.log in /srv/pufferpanel/logs:

[2018-08-23 21-08-11] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-08-26] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-08-36] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-10-09] PHP Warning: PDOStatement::execute(): MySQL server has gone away in /srv/pufferpanel/vendor/j4mie/idiorm/idiorm.php:505  @  https://mypanelurl.net/daemon/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/logs?time=1535058608
[2018-08-23 21-10-09] PHP Warning: PDOStatement::execute(): Error reading result set''s header in /srv/pufferpanel/vendor/j4mie/idiorm/idiorm.php:505  @  https://mypanelurl.net/daemon/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/logs?time=1535058608
[2018-08-23 21-12-23] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-12-44] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-17-40] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-17-54] PHP Notice: Undefined offset: 1 in /srv/pufferpanel/src/core/oauth2.php:69  @  http://mypanelurl.net/oauth2/token/request
[2018-08-23 21-27-05] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:217  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-27-05] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:236  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-27-16] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:62  @  https://mypanelurl.net/admin/server
[2018-08-23 21-27-21] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:217  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-27-21] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:236  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-27-30] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:62  @  https://mypanelurl.net/admin/server
[2018-08-23 21-37-48] PHP Notice: Undefined index: main_url in /srv/pufferpanel/src/routes/admin/settings/routes.php:188  @  https://mypanelurl.net/admin/settings/urls/update
[2018-08-23 21-38-25] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:62  @  https://mypanelurl.net/admin/server
[2018-08-23 21-38-33] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:150  @  https://mypanelurl.net/admin/server/view/1/delete
[2018-08-23 21-38-33] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/admin/server/routes.php:154  @  https://mypanelurl.net/admin/server/view/1/delete
[2018-08-23 21-45-23] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:217  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-45-23] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:236  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-50-01] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:217  @  https://mypanelurl.net/index/server-status
[2018-08-23 21-50-01] PHP Notice: Trying to get property of non-object in /srv/pufferpanel/src/routes/panel/routes.php:236  @  https://mypanelurl.net/index/server-status

I don't have any error into the pufferd logs .

My ports are open into my VPS firewall (see screen)

firewall port

Thanks you !

Replies

10 comments
·
9 replies

LordRalex
Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

Forgot the exception.log

[2018-08-23 21-10-09] PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away #HY000 in /srv/pufferpanel/vendor/j4mie/idiorm/idiorm.php:505  @  https://mypanelurl.com/daemon/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/logs?time=1535058608  @@  exception--2018-08-23--21-10--d8e660b36d.html
[2018-08-23 21-11-11] PDOException: SQLSTATE[HY000] [2002] No such file or directory #2002 in /srv/pufferpanel/vendor/j4mie/idiorm/idiorm.php:328  @  https://mypanelurl.com/daemon/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/logs?time=1535058608  @@  exception--2018-08-23--21-11--05e1af0257.html
[2018-08-23 21-11-11] PDOException: SQLSTATE[HY000] [2002] No such file or directory #2002 in /srv/pufferpanel/vendor/j4mie/idiorm/idiorm.php:328  @  https://mypanelurl.com/daemon/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/stats  @@  exception--2018-08-23--21-11--05e1af0257.html

0 replies

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

"MySQL server has gone away"

This sounds like your database is just dying to me. You sure it's still running properly?

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex Yes the Mysql database continues to work despite the error

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

That is very odd. That error indicates it's timing out the connection (essentially), but there's no real reason why.

The errors above that (the offset) is because someone is logging into SFTP with a bad username (it has to be email|servername as specified in the panel), but that should not be causing any other issues.

It is also failing to get to pufferd well too, what logs are in /var/log/pufferd?

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex

EDIT: The latest log is: https://hastebin.com/enovuzawoq.cs

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Logs look okay, nothing out of the ordinary really that would really indicate an issue.

Can you please add the following to your pufferd config so it can log what is being called more clearly?

"log.api": true

It'd look like this:

{
  "authserver": "---------/oauth2/token/request",
  "infoserver": "---------/oauth2/token/info",
  "authtoken": "---------",
  "forward": "false",
  "console-buffer": "50",
  "web": "0.0.0.0:5658",
  "sftp": "0.0.0.0:5657",
  "update-check": true,
  "serverfolder": "/var/lib/pufferd/servers",
  "templatefolder": "/var/lib/pufferd/templates",
  "datafolder": "/etc/pufferd",
  "log.api": true
}
1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex This is what it gave to me when attempting to Start,Restart,Stop and Install

[16:47:23] [INFO] pufferd v1.2.4 (bf777b97c88b3dd92b3bdc630bb39115ae921be5)
[16:47:23] [INFO] Logging set to INFO
[16:47:23] [DEBUG] Checking for updates using https://dl.pufferpanel.com/pufferd/v1.2/version.txt
[16:47:23] [DEBUG] Loading server as docker
[16:47:23] [INFO] Loaded server a55961fd-b3d4-4add-9d78-7b68b4cdb4f0
[16:47:23] [DEBUG] Loading existing key
[16:47:23] [INFO] Started SFTP Server on 0.0.0.0:5657
[16:47:23] [INFO] Starting web access on 0.0.0.0:5656
[16:47:40] [DEBUG] [163.172.177.102:36180] [HEAD] [/]
[16:47:40] [DEBUG] [85.190.77.209:51370] [GET] [/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/console?accessToken=---]
[16:47:40] [DEVEL] map[scope:server.start server.stop server.install server.file.get server.file.put server.file.delete server.kill server.log server.console server.console.send server.stats server.network sftp server.create server.delete server.edit server.reload node.stop client_id:.internal_1_1 username:1 server_id:a55961fd-b3d4-4add-9d78-7b68b4cdb4f0 active:true]
[16:49:20] [DEBUG] [163.172.177.102:36274] [HEAD] [/]
[16:49:21] [DEBUG] [85.190.77.209:51395] [GET] [/server/a55961fd-b3d4-4add-9d78-7b68b4cdb4f0/console?accessToken=---]
[16:49:21] [DEVEL] map[server_id:a55961fd-b3d4-4add-9d78-7b68b4cdb4f0 active:true scope:server.start server.stop server.install server.file.get server.file.put server.file.delete server.kill server.log server.console server.console.send server.stats server.network sftp server.create server.delete server.edit server.reload node.stop client_id:.internal_1_1 username:1]

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Yeah, none of those are the browser nor the panel contacting pufferd.

What is in your "Network" tab in the browser? There should be one to "/start".

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex

My browser is the Nigthly version of Firefox.

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

What I mean is:

Press F12 when you are in the panel. In the area that shows up, select "Network".

Refresh the page, then try to start your server. In the area that showed up prior, select the one with the "/start".

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex This is what it give.

alt text

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Good, what is in that "Response" part?

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Well, that's certainly.... interesting.

All the data looks correct, but somehow that response is definitely not what we expected. That is not the daemon or the panel triggering.

Interestingly, the socket connection worked, but that's not.

Did you have any issues installing the panel or the server originally?

I do see HTTPS in use, but seems like at a glance it'd be configured correctly for the websocket to connect properly.

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex No any problem when installing the panel or the server.

HTTPS is installed correctly by following the tutorial

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Something does not line up then, because it should be using similar calls.

When you go to view all of your servers, does it show the address correctly? Or does it remain empty?

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex It remain empty

LordRalex
Dec 2, 2021
Maintainer Author

LordRalex wrote at Aug 23 2018 22:06:14 UTC:

Can you do the same thing with the network tab there and look for "server-status" (I think it's that one).

I want to see if it's returning the same thing.

Either way, something is definitely up with this. That is not a pufferpanel error, and pufferd doesn't even see the call.

The fact the API does handle errors right (as in, you call it without the auth or for a missing server) means our code is running, but there should not be a reason that garbage comes back.

I'd hate to ask how hard it'd be to switch to nginx as a test? Apache has caused issues in the past, and while I'm 90% sure it's not the issue, I want to test that theory.

1 reply
@LordRalex

LordRalex Dec 2, 2021
Maintainer Author

Fyroeo wrote at Aug 23 2018 22:06:14 UTC:

lordralex This is the response for server-status

alt text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Legacy - Support
Labels
None yet
1 participant