Replies: 1 comment 1 reply
-
Thanks for the detailed report, I'll look into this when i find some spare time. Pup is currently designed to run as the current user with deno's privilege model, and when installed as a service, it's installed in user mode. It is also possible to install pup as a system service using flags, still with deno's privilege model. Running Pup with escalated privileges will require more code, and need to be implemented carefully. Currently It's unclear when and why the privileges are downgraded. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Mine may be an edge case, and if it cannot be made to work that's fine, but I just want to make sure I understand what's happening.
So, my setup is as follows: I am trying to run NextJS via Deno on an Ubuntu server. I am using a user with sudo privileges. Runing
sudo deno task start
works fine. The server launches and I am able to access it externally.When I try
deno task start
withoutsudo
, I get the following error, which makes sense:Now, when I attempt to use pup, which I also run with
sudo
like this:sudo pup run myserver
I get an infinite loop of crashes and restarts. The logs contain the same errors as above, which leads me to believe that when pup invokes deno, it does not run it with superuser privileges.In case this matters, my
pup.json
looks like this:Changing
cmd
tosudo deno run start
doesn't seem to prevent the errors entirely. Instead, something strange happens. I see this being logged to the terminal:And then the terminal is never cleared despite the fact that I ran
pup enable-service
earlier.What's even more strange is that the site is actually served, BUT, if I later terminate it and look at the logs, I see those endless restarts, even if I'd cleared the logs before! How can this be?
In light of all of the above I'd like to find out whether I'm doing something incorrectly or if this is what I should expect to be seeing.
Thank you! I appreciate any information on the matter.
Beta Was this translation helpful? Give feedback.
All reactions