Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some commands not working #32

Open
pvm opened this issue Jun 1, 2023 · 17 comments
Open

Some commands not working #32

pvm opened this issue Jun 1, 2023 · 17 comments

Comments

@pvm
Copy link

pvm commented Jun 1, 2023

Hey! I was trying for the first time your project and some commands were not working for me, for example:

pzserver@h3010054:~$ pzserver stop
ERROR: ioctl failed: Operation not permitted
pzserver@h3010054:~$ pzserver message
Usage: /usr/local/bin/pzmessage message...
pzserver@h3010054:~$ pzserver message  Test
ERROR: ioctl failed: Operation not permitted
pzserver@h3010054:~$ pzserver command test
ERROR: ioctl failed: Operation not permitted
pzserver@h3010054:~$ pzserver command save
ERROR: ioctl failed: Operation not permitted
pzserver@h3010054:~$ pzserver quit
ERROR: ioctl failed: Operation not permitted

pzserver restart is also not working as well, just give me back an "OK" but no restart.
This is the log:

2023-06-01 18:14:52 PZRestarterJob pzserver: Restart job started (delay: 0, restart_sequence: [5, 2, 1])
2023-06-01 18:14:52 PZRestarterJob pzserver: Sending message: Restarting server in 5 minutes. Find a safe place to hide for restart!
2023-06-01 18:17:52 PZRestarterJob pzserver: Sending message: Restarting server in 2 minutes. Find a safe place to hide for restart!
2023-06-01 18:18:52 PZRestarterJob pzserver: Sending message: Restarting server in 1 minute. Find a safe place to hide for restart!
2023-06-01 18:19:52 PZRestarterJob pzserver: Restarting now!

I was online, but there were no messages nor restart

This is my distro:

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"

Do I need to do something else or missed something maybe?


Update:
using RCON directly I can save/close the server (I'm not sure if you are using the same way with thhe scripts)

Waiting commands for 127.0.0.1:27015 (or type :q to exit)
> save
World saved
> save
World saved
> save
World saved
> quit
Quit
@pvm
Copy link
Author

pvm commented Jun 1, 2023

@quarantin here is my kernel info:

Linux HOST 5.4.0 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64 x86_64 x86_64 GNU/Linux

@quarantin
Copy link
Owner

Hi, can you install strace (from an account with sudo access, for example pzstadmin):
sudo apt install strace

Run the following command as your pzserver user while the pz server is online and accepting players:
strace -f pzserver stop 2> /tmp/strace.log

Post the file /tmp/strace.log here.

Also it seems your kernel is not from Ubuntu, because the version should be something like: 5.4.0-148-generic

@pvm
Copy link
Author

pvm commented Jun 1, 2023

I didn't changed the kernel, was the one available from the host installation.

strace.log

@quarantin
Copy link
Owner

Thanks I'll investigate. Can you also run pzdebug and post the resulting file here?

@pvm
Copy link
Author

pvm commented Jun 1, 2023

thank you for taking a look!

troubleshoot.log.gz

@quarantin
Copy link
Owner

quarantin commented Jun 1, 2023

I don't see any problem in the logs, except the permission denied for the call to TIOCSTI IOCTL, which probably means that it's been disabled in your kernel by your hosting provider :/
Who's your hosting provider?

@pvm
Copy link
Author

pvm commented Jun 1, 2023

Strato in Germany

@quarantin
Copy link
Owner

Hum, unfortunately I don't read German 😅
Do they let you install custom OS from an ISO image? If no do they let you install custom kernels?

@pvm
Copy link
Author

pvm commented Jun 1, 2023

I sent them a message now, let's hope that they allow me to install a custom ISO.

I will post the update here as soon as I get it.

@quarantin
Copy link
Owner

Perfect.
But is it strado or strato? I can't find their website

@pvm
Copy link
Author

pvm commented Jun 1, 2023

https://www.strato.de/

@quarantin
Copy link
Owner

Damn, not sure why I read "strado" 😂
Do you have a VPS or dedicated server?

@pvm
Copy link
Author

pvm commented Jun 1, 2023

I wrote it wrong the first time. It's a dedicated server

@quarantin
Copy link
Owner

It's a dedicated server

I believe this is good news. Most dedicated server hosting providers let you install an OS from an ISO image .

FYI this is the ISO image I'm using for testing pzst:
https://releases.ubuntu.com/focal/ubuntu-20.04.6-live-server-amd64.iso

@Lu5ck
Copy link

Lu5ck commented Jun 2, 2023

Linux HOST 5.4.0 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64 x86_64 x86_64 GNU/Linux

That looks like an Amazon MSK image, an docker service. I don't know how your provider managed to obtain a docker image off a cloud provider to run on their hardware. Or perhaps your provider is reselling a docker and repackaged it as dedicated server which sounds really shady. It is unlikely you can get TIOCSTI on a container as it is considered a security vulnerability, especially you don't own the docker. You should start looking for another provider, not only because it disallow TIOCSTI but shady for potentially running a docker as dedicated server service.

@pvm
Copy link
Author

pvm commented Jun 2, 2023

It's a VPS actually, not a dedicated server.

@quarantin
Copy link
Owner

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants