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

[BUG] tftp tag does not serve default files #72

Open
1 task done
grasdk opened this issue Feb 9, 2025 · 1 comment
Open
1 task done

[BUG] tftp tag does not serve default files #72

grasdk opened this issue Feb 9, 2025 · 1 comment

Comments

@grasdk
Copy link

grasdk commented Feb 9, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The tftp tag netboot.xyz:tftp does not offer default menus. Files like netboot.xyz.kpxe are not offered.

Expected Behavior

The tftp tag netboot.xyz:tftp should/could offer default menus. For example by providing a config-folder with everything in it from a previous deployment of the latest tag.

Steps To Reproduce

  1. On debian with docker installed
  2. Deploy netboot.xyz.kpxe:latest using docker cli
  3. Download netboot.xyz.kpxe using a tftp-client
  4. Observe success
  5. Undeploy and remove the container (and optionally the image), but keep the config folder
  6. Deploy netboot.xyz.kpxe:tftp using docker cli
  7. Download netboot.xyz.kpxe using a tftp-client
  8. Observe failure: "File not found"

Environment

- OS: `Linux dockerhost 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux`
- How docker service was installed: Following the `apt` approach here: https://docs.docker.com/engine/install/debian/

CPU architecture

x86-64

Docker creation

# Latest

## On dockerhost

$ uname -a
Linux dockerhost 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux

$ docker run -d \
  --name netbootxyz \
  --hostname netbootxyz \
  --restart unless-stopped \
  -p 3000:3000 \
  -p 69:69/udp \
  -v /path/to/netbootxyz/config:/config \
  -e TZ="Europe/Copenhagen" \
  linuxserver/netbootxyz:latest

$ docker exec -it netbootxyz ls /config/menus/ -al | grep netboot
-rw-r--r-- 1 abc abc  107399 Feb  8 11:47 netboot.xyz-undionly.kpxe
-rw-r--r-- 1 abc abc 1107968 Feb  8 11:47 netboot.xyz.efi
-rw-r--r-- 1 abc abc  378839 Feb  8 11:47 netboot.xyz.kpxe


## On remote host:


$ tftp dockerhost 69
tftp> get netboot.xyz.kpxe
Received 381793 bytes in 0.3 seconds


## See logs-latest below

----

# TFTP 

## On dockerhost switch to tftp-tag, but keep the config, as the latest image provides all the ipxe, kpxe and efi files


$ docker container stop netbootxyz
$ docker container rm netbootxyz
$ docker image rm linuxserver/netbootxyz:latest
$ docker run -d \
  --name netbootxyz \
  --hostname netbootxyz \
  --restart unless-stopped \
  -p 69:69/udp \
  -v /path/to/netbootxyz/config:/config \
  -e TZ="Europe/Copenhagen" \
  linuxserver/netbootxyz:tftp

$ docker exec -it netbootxyz ls /config/menus/ -al | grep netboot
-rw-r--r-- 1 abc abc  107399 Feb  8 11:47 netboot.xyz-undionly.kpxe
-rw-r--r-- 1 abc abc 1107968 Feb  8 11:47 netboot.xyz.efi
-rw-r--r-- 1 abc abc  378839 Feb  8 11:47 netboot.xyz.kpxe


## On remote host:


$ tftp dockerhost 69
tftp> get netboot.xyz.kpxe
Error code 1: File not found


## See logs tftp below

Container logs

# Container logs

## logs-latest
$ docker logs netbootxyz
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
netboot.xyz: https://opencollective.com/netbootxyz/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────
Linuxserver.io version: 0.7.4-ls203
Build-date: 2025-02-08T03:03:30+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 80 port [tcp/http] succeeded!
Invalid port "undefined" in environment variable WEB_APP_PORT. Using default port 3000 instead.
listening on *:3000
Connection to localhost (127.0.0.1) 3000 port [tcp/*] succeeded!
Connection to localhost (127.0.0.1) 69 port [udp/tftp] succeeded!
[ls.io-init] done.

## Logs tftp


$ docker logs netbootxyz
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
netboot.xyz: https://opencollective.com/netbootxyz/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────
Linuxserver.io version: 2.0.84-ls171
Build-date: 2025-02-01T03:09:01+00:00
───────────────────────────────────────

[custom-init] No custom files found, skipping...
Connection to localhost (127.0.0.1) 69 port [udp/tftp] succeeded!
[ls.io-init] done.
Copy link

github-actions bot commented Feb 9, 2025

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issues
Development

No branches or pull requests

1 participant