Proxmox Offline Mirror - too many symlins - os error 40

Sokoban

New Member
Apr 25, 2023
9
1
3
Hamburg/Germany
Hi All,

this tool is pretty cool stuff. Thanks!
Unfortunately we are receiving the following error upon syncing to the medium.

error_40_2.png

Error: Too many levels of symbolic links (os error 40)

We are syncing PVE, Debian bullseye and Ubuntu jammy repos.

Here is our config:
Code:
mirror: debian_bullseye_updates
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/debian-archive-bullseye-automatic.gpg
        repository deb http://deb.debian.org/debian bullseye-updates main contrib
        skip-sections debug
        skip-sections games
        sync true
        verify true

mirror: debian_bullseye_main
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/debian-archive-bullseye-automatic.gpg
        repository deb http://deb.debian.org/debian bullseye main contrib
        skip-sections debug
        skip-sections games
        sync true
        verify true

mirror: debian_bullseye_security
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg
        repository deb http://deb.debian.org/debian-security bullseye-security main contrib
        skip-sections debug
        skip-sections games
        sync true
        verify true

mirror: ubuntu_jammy_main_uni_multi
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/ubuntu-keyring-2018-archive.gpg
        repository deb http://de.archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
        sync true
        verify true

mirror: ubuntu_jammy_updates
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/ubuntu-keyring-2018-archive.gpg
        repository deb http://de.archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
        sync true
        verify true

mirror: ubuntu_jammy_security
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/ubuntu-keyring-2018-archive.gpg
        repository deb http://de.archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
        sync true
        verify true

mirror: ubuntu_jammy_backports
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /usr/share/keyrings/ubuntu-keyring-2018-archive.gpg
        repository deb http://de.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
        sync true
        verify true

mirror: pve_bullseye_no_subscription
        architectures amd64
        architectures all
        base-dir /mnt/pve/NASBackup/apt_mirror
        ignore-errors false
        key-path /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
        repository deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
        sync true
        verify true

medium: proxmox-offline1
        mirrors ubuntu_jammy_security
        mirrors debian_bullseye_updates
        mirrors debian_bullseye_security
        mirrors debian_bullseye_main
        mirrors pve_bullseye_no_subscription
        mirrors ubuntu_jammy_main_uni_multi
        mirrors ubuntu_jammy_updates
        mirrors ubuntu_jammy_backports
        mountpoint /mnt/proxmox-offline
        sync true
        verify true

Any ideas? Probably the syncing could be done with rsync alternatively?

Thanks!
Best Regards
Sokoban
 
could you also post the full output of the command? what is /mnt/proxmox-offline ? (just a directory, or actually a mountpoint? if the latter, what is mounted there? if not, what is the parent mountpoint/filesystem?)
 
The issued command was:
proxmox-offline-mirror medium sync proxmox-offline1

/mnt/proxmox-offline is a usb attached ext4 volume that is mounted here.

This is on a PVE Server with latest updates (no-subscription). FS of / is ext4 also.
/mnt/pve/NASBackup is a nfs volume from a NAS, the filesystem of the NAS volume is also ext4.
 
please post the full output of the command (in code tags or as attachment as .txt file), as well as the last 200 lines or so of the following command

strace -ff proxmox-offline-mirror medium sync proxmox-offline1
 
Find attached
  • the output from a sync (sync_all.log),
  • the last 200 lines from the strace of the above command (strace_200_last.log)
  • a zip archive containing the strace output from the subprocesses.
HTH and thanks!
 

Attachments

  • strace.log_subprocesses.zip
    16.1 KB · Views: 0
  • strace_200_last.log
    20.2 KB · Views: 1
  • sync_all.log
    23 KB · Views: 1
"/mnt/pve/NASBackup/apt_mirror/ubuntu_jammy_main_uni_multi/2023-04-17T13:21:01Z/ubuntu_main_latest" seems to be the file tripping it up - did you manually create that?
 
Ah I see. Yes, it's created manually. I wanted to create a link to the most recent snapshot to set as a repository for the offline hosts. So they can keep it, and I only need to set the link to the most recent snapshot... Or am I missing something? Probably there is a more convinient way to handle this?

I will delete the manually created links and try syncing again.
 
Alright! At least it's not only me running into this. :) Probably a good idea to put a note on that into the manual? Thanks for your help Fabian. I will come back if the promlem still occurs after link removal.
 
could you run the command with strace again and post the last few lines?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!