Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926187 - net-misc/gns3-server-2.2.45 - starting docker containers fails with: exec /gns3/init.sh: no such file or directory
Summary: net-misc/gns3-server-2.2.45 - starting docker containers fails with: exec /gn...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Mair-Keimberger (iamnr3)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-05 09:26 UTC by Krystof Pistek
Modified: 2024-03-30 12:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info gns3-server busybox (emerge--info.txt,8.49 KB, text/plain)
2024-03-05 09:26 UTC, Krystof Pistek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krystof Pistek 2024-03-05 09:26:45 UTC
Created attachment 886732 [details]
emerge --info gns3-server busybox

Upon attempting to start some (most?) docker containers (tested with Chromium and Mikrotik WinBox guests), the gns3server process encounters the following error:

`ERROR docker_vm.py:498 exec /gns3/init.sh: no such file or directory`

The GUI only reports the latter part of the error, `exec /gns3/init.sh: no such file or directory`.

I have first encountered this bug in net-misc/gns3-server-2.2.43, and it is present in net-misc/gns3-server-2.2.45 today. I do not know when it first appeared. The cause is line 58 in the ebuild:

`ln -s /bin/busybox "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox" || die`

This creates a symlink pointing to the system /bin/busybox. When creating a docker guest, "$(python_get_sitedir)/gns3server/compute/docker/resources" gets used as a volume and is bind-mounted to the container's /gns3 directory.

When starting the container, the entrypoint /gns3/init.sh gets executed, which lists the interpreter /gns3/bin/busybox, i.e. the symlink still pointing to the path /bin/busybox. If the container does not contain such a file, the above error is produced.

Replacing the symlink "$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox" with a copy of /bin/busybox resolves the issue.
Comment 1 mphi 2024-03-30 12:55:56 UTC
(In reply to Krystof Pistek from comment #0)
> Created attachment 886732 [details]
> emerge --info gns3-server busybox
> 
> Upon attempting to start some (most?) docker containers (tested with
> Chromium and Mikrotik WinBox guests), the gns3server process encounters the
> following error:
> 
> `ERROR docker_vm.py:498 exec /gns3/init.sh: no such file or directory`
> 
> The GUI only reports the latter part of the error, `exec /gns3/init.sh: no
> such file or directory`.
> 
> I have first encountered this bug in net-misc/gns3-server-2.2.43, and it is
> present in net-misc/gns3-server-2.2.45 today. I do not know when it first
> appeared. The cause is line 58 in the ebuild:
> 
> `ln -s /bin/busybox
> "${D}$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox"
> || die`
> 
> This creates a symlink pointing to the system /bin/busybox. When creating a
> docker guest, "$(python_get_sitedir)/gns3server/compute/docker/resources"
> gets used as a volume and is bind-mounted to the container's /gns3 directory.
> 
> When starting the container, the entrypoint /gns3/init.sh gets executed,
> which lists the interpreter /gns3/bin/busybox, i.e. the symlink still
> pointing to the path /bin/busybox. If the container does not contain such a
> file, the above error is produced.
> 
> Replacing the symlink
> "$(python_get_sitedir)/gns3server/compute/docker/resources/bin/busybox" with
> a copy of /bin/busybox resolves the issue.

I have the same problem.
Your workaround of replacing the busybox symlink worked for me.
Thank you.