Custom Rock-On: /entrypoint.sh: exec: line 10: serve: not found

Hello,

I’m trying to set up Newt (the Pangolin service) as a custom rock-on. https://codeberg.org/xdvd/terrible-rockstor/src/branch/main/newt.json is what I have (extremely minimal, but so is the compose template provided at Install Sites - Pangolin Docs ). The rock-on does not work, even though regular compose does. When I run docker start -a Newt, it says

/entrypoint.sh: exec: line 10: serve: not found”.

What could be the problem?

1 Like

Hi @xdvd , and welcome!

I did hear about Pangolin recently and it seemed interesting so I’m excited to see a Rock-on being developed for it. Thanks for tackling this one, I’m looking forward to seeing it!

As you can tell, I have no experience with newt, but from a very brief look at their docs, it seems they recommend the following docker run command:

docker run -it fosrl/newt --id 31frd0uzbjvp721 \
--secret h51mmlknrvrwv8s4r1i210azhumt6isgbpyavxodibx1k2d6 \
--endpoint https://app.pangolin.net

I have not looked at their Dockerfile so I’m unsure what their expectation of entrypoint is, but it seems you are explicitly setting it to using the serve command, which seems to be problematic here. I do presume you have a good reason to do so, but have you tried without the serve command but with what they have in their docs? If we can get that to work, then we can hopefully move forward from their and see when things start to fall apart and thus identify what the problem is.

Hope this helps,

1 Like

Pfft, I’d just left cmd serve from a previous project. It works now, thanks!

Given the tiny size of the Newt rock-on, is it worth it to submit a pull request? Is there a format to follow? This isn’t the Pangolin program to be hosted on a VPS, this is Newt, which tunnels to Pangolin.

2 Likes