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

Shell server terminated due to syntax error after running 'code .' #29

Open
thatLeaflet opened this issue May 18, 2022 · 0 comments
Open

Comments

@thatLeaflet
Copy link

thatLeaflet commented May 18, 2022

About My Setup

I'm running Ubuntu 22.04. Since toolbox isn't packaged for Ubuntu, I manually compiled it using the instructions here. Toolbox seems to be working correctly; I created a Fedora 34 container, updated it, and even ran Firefox inside of it.

What I did

  1. I compiled toolbox for my system using the instructions and rebooted my system
  2. I created a Fedora 34 toolbox and updated it
  3. I followed toolbox-vscode's install instructions, git cloned the repository into ~/.local/share and ran the other commands
  4. Went to my program's directory and ran code .
  5. Was prompted to install VSCodium, installed it, installed Remote Container Extension
  6. Tried rebooting to see if that solved the issue

Result

Image of VSCode and Error

[34 ms] Remote-Containers 0.234.0 in VS Code 1.67.0 (57fd6d0195bb9b9d1b49f6da5db789060795de47).
[34 ms] Start: Resolving Remote
[35 ms] Setting up container: fedora-toolbox-34
[39 ms] Start: Run: /home/evan/.local/bin/podman-host inspect --type container fedora-toolbox-34
[164 ms] Start: Check Docker is running
[164 ms] Start: Run: /home/evan/.local/bin/podman-host version --format {{.Server.APIVersion}}
[287 ms] Server API version: 3.4.4
[288 ms] Start: Inspecting container
[288 ms] Start: Run: /home/evan/.local/bin/podman-host inspect --type container 223bedeca7beef658f3421bf189bed7c2d5f9af725bcd40e3870ee8d6273f3c1
[411 ms] Start: Run in container: /bin/sh
[413 ms] Start: Run in container: uname -m
[420 ms] Start: Run in container: cat /etc/passwd
[420 ms] Stdin closed!
[422 ms] Shell server terminated (code: 2, signal: null)

-: 2: Syntax error: "(" unexpected

Possible causes

  • I get a "F: Filesystem suffix "create" is not applicable for --nofilesystem" message after running 'code .'
  • After installing locate using DNF, I saw a message that says "System has not been booted with systemd as init system (PID 1). Can't operate.... Failed to connect to bus: Host is down"
@thatLeaflet thatLeaflet changed the title '-: 2: Syntax error: "(" unexpected' after running 'code .' Shell server terminated due to syntax error after running 'code .' May 18, 2022
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

1 participant