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

[ERROR server] Error: Invalid argument (os error 22) #30

Open
Boffice opened this issue Nov 5, 2022 · 4 comments
Open

[ERROR server] Error: Invalid argument (os error 22) #30

Boffice opened this issue Nov 5, 2022 · 4 comments

Comments

@Boffice
Copy link

Boffice commented Nov 5, 2022

Hello,

After spending whole day with compiling errors on fedora 36 i finally managed to compile the applications.
But i am still not able to run the server:

sudo cargo run --bin server

    [ERROR server] Error: Invalid argument (os error 22)
cargo run --bin server

    [ERROR server] Error: Permission denied (os error 13)
sudo systemctl status rkvm-server.service

    Process: 62046 ExecStart=/opt/rkvm/server (code=exited, status=203/EXEC)
    Nov 05 13:41:19 boffice systemd[1]: rkvm-server.service: Start request repeated too quickly.
    Nov 05 13:41:19 boffice systemd[1]: rkvm-server.service: Failed with result 'exit-code'.
    Nov 05 13:41:19 boffice systemd[1]: Failed to start rkvm-server.service - rkvm server.

@Omrigan
Copy link

Omrigan commented Dec 2, 2022

Try to look at the strace output, something like:

sudo strace ./server ./server.toml

@Boffice
Copy link
Author

Boffice commented Dec 5, 2022

execve("./server", ["./server", "./server.toml"], 0x7ffec1ad9fe8 /* 19 vars */) 
= -1 EACCES (Permission denied)
strace: exec: Permission denied
+++ exited with 1 +++

@Omrigan
Copy link

Omrigan commented Dec 5, 2022

execve("./server", ["./server", "./server.toml"], 0x7ffec1ad9fe8 /* 19 vars */) 
= -1 EACCES (Permission denied)
strace: exec: Permission denied
+++ exited with 1 +++

It seems you forgot sudo

@Boffice
Copy link
Author

Boffice commented Dec 5, 2022

It seems you forgot sudo

Nope:


sudo strace ./server ./server.toml
execve("./server", ["./server", "./server.toml"], 0x7ffec1ad9fe8 /* 19 vars */) = -1 EACCES (Permission denied)
strace: exec: Permission denied
+++ exited with 1 +++

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

2 participants