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

Kurtosis can't run linuxserver/wireguard #2405

Closed
jshufro opened this issue Apr 26, 2024 · 7 comments · Fixed by #2425
Closed

Kurtosis can't run linuxserver/wireguard #2405

jshufro opened this issue Apr 26, 2024 · 7 comments · Fixed by #2425
Assignees
Labels
bug Something isn't working critical Critical bug or feature

Comments

@jshufro
Copy link

jshufro commented Apr 26, 2024

What's your CLI version?

0.88.18

Description & steps to reproduce

Putting:

plan.add_service(name = 'wireguard', config = ServiceConfig(image="linuxserver/wireguard",ports={"docker-51820": PortSpec(number=51820,transport_protocol="UDP",wait="30s")},files={"/config/wg0.conf": wg_conf},entrypoint=[],cmd=[],env_vars={"PUID": "1000","PGID": "1000","TZ": "Etc/UTC"}))

in main.star leads kurtosis to fail to start a perfectly good docker container with the following error:
s6-overlay-suexec: fatal: can only run as pid 1

I believe this is because of b8989a8

Is there a way to turn off the use of docker --init?

Desired behavior

Wireguard should start

What is the severity of this bug?

Critical; I am blocked and Kurtosis is unusable for me because of this bug.

What area of the product does this pertain to?

Other: anything not covered by the above

@jshufro jshufro added the bug Something isn't working label Apr 26, 2024
@github-actions github-actions bot added the critical Critical bug or feature label Apr 26, 2024
@Jiangzy520
Copy link

@jshufro Sir, you can leave your email address. I want to ask you questions

@h4ck3rk3y
Copy link
Contributor

hey @jshufro Gyani from Kurtosis here. Thank you for writing this ticket.

We don't support disabling tini out of the box and will have to add support for it. Can you tell me more about your usecase?

In the meantime I will try to compile a version of Kurtosis with tini disabled and run your script

@h4ck3rk3y h4ck3rk3y self-assigned this Apr 26, 2024
@h4ck3rk3y
Copy link
Contributor

Looking at your main.star further

Can you try removing ENTRYPOINT CMD set to [] and see if it runs? It has to have something for it to run. Not setting them is using the default values

def run(plan):
    plan.add_service(name = 'wireguard', config = ServiceConfig(image="linuxserver/wireguard",ports={"docker-51820": PortSpec(number=51820,transport_protocol="UDP",wait="30s")},env_vars={"PUID": "1000","PGID": "1000","TZ": "Etc/UTC"}))

this works just fine. You will have to add back wg_conf;

@jshufro
Copy link
Author

jshufro commented Apr 26, 2024

EDIT: never mind, I still see:

An error occurred executing instruction (number 46) at github.com/nodeset-org/nodeset-testnet/main.star[17:21]:
  add_service(name="wireguard", config=ServiceConfig(image="linuxserver/wireguard", ports={"docker-51820": PortSpec(number=51820, transport_protocol="UDP", wait="30s")}, files={"/config/wg0.conf": "wireguard-config"}, env_vars={"PGID": "1000", "PUID": "1000", "TZ": "Etc/UTC"}))
  Caused by: Unexpected error occurred starting service 'wireguard'
  Caused by: An error occurred starting the user service container for user service with UUID '2a9763e8c89d4972ae8a642d9b33c040'
  Caused by: An error occurred checking if container '2699bbd4cb48f055dd6212ce8b8020246446a5f00af2128897fade9d29b5966f' is running
  Caused by: Container '2699bbd4cb48f055dd6212ce8b8020246446a5f00af2128897fade9d29b5966f' (with image 'linuxserver/wireguard:latest') die with a non zero exit code rapidly after it was started. This likely indicates a misconfiguration with how the container was started. Container should either exit gracefully or keep running for Kurtosis to consider it in a good state; logs are below:
  --------------------- CONTAINER LOGS -----------------------
  0s6-overlay-suexec: fatal: can only run as 
  ------------------- END CONTAINER LOGS --------------------

Error encountered running Starlark code.

@h4ck3rk3y
Copy link
Contributor

Interesting, I am pretty sure I could get it to run on Friday but now I can confirm that I am seeing what you are seeing.

More over this change - #2412 seems to get it to work but we would like to put it behind a Starlark interface so that users can switch it on/off willingly.

Can you tell me more about your usecase?

@h4ck3rk3y
Copy link
Contributor

@jshufro this should solve it - #2425

github-merge-queue bot pushed a commit that referenced this issue May 7, 2024
Closes #2405

---------

Co-authored-by: leoporoli <[email protected]>
@h4ck3rk3y
Copy link
Contributor

@jshufro 0.89.4 should have the tini_enabled option;

#2431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical Critical bug or feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants