Snipe-IT update script missing the backup uploads and private_uploads #2363

Closed
opened 2026-02-05 04:37:33 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ruanmed on GitHub (Jan 21, 2026).

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

📜 What is the name of the script you are using?

SnipeIT

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/snipeit.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Alpine

📈 Which Proxmox version are you on?

8.4.14

📝 Provide a clear and concise description of the issue.

Updating the LXC for SnipeIT (using the update command, that internally executes the bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/snipeit.sh)" command) the user uploads folders are wrongly synced:

  • /opt/snipe-it/public/uploads/
  • /opt/snipe-it/storage/private_uploads/

They are being copied to nested folders, respectively:

  • /opt/snipe-it/public/uploads/uploads/
  • /opt/snipe-it/storage/private_uploads/private_uploads/

And therefore, none of the user uploaded files (like, assets images, models images, files, manufacturer images, etc) work in SnipeIT.

🔄 Steps to reproduce the issue.

  1. Install SnipeIT in version X
  2. Access SnipeIT, create any model or asset with custom image
  3. Update any SnipeIT installation when a new version is available
  4. Access SnipeIT in a Private Browsing, without cache
  5. Access any of the previous model/assets with custom images

Expected:

  • All assets or models images are correctly exhibited

Actually Happens:

  • All assets or model images go missing

Paste the full error output (if available).

The error is visually verified

And can be verified by listing the contents of the folders /opt/snipe-it/public/uploads/* and /opt/snipe-it/storage/private_uploads/*.

e.g.:

root@snipeit:/opt/snipe-it# du -sh /opt/snipe-it/public/uploads/*
8.0K		/opt/snipe-it/public/uploads/accessories
8.0K		/opt/snipe-it/public/uploads/assets
8.0K		/opt/snipe-it/public/uploads/avatars
8.0K		/opt/snipe-it/public/uploads/barcodes
8.0K		/opt/snipe-it/public/uploads/categories
8.0K		/opt/snipe-it/public/uploads/companies
8.0K		/opt/snipe-it/public/uploads/components
8.0K		/opt/snipe-it/public/uploads/consumables
8.0K		/opt/snipe-it/public/uploads/default.png
8.0K		/opt/snipe-it/public/uploads/departments
8.0K		/opt/snipe-it/public/uploads/locations
8.0K		/opt/snipe-it/public/uploads/manufacturers
8.0K		/opt/snipe-it/public/uploads/models
8.0K		/opt/snipe-it/public/uploads/suppliers
23M	/opt/snipe-it/public/uploads/uploads

It can be verified that there exists a nested uploads folder: /opt/snipe-it/public/uploads/uploads containing all previous backed up data; which should not exist there.
And all other folders that should be filled are empty.

Same happens inside the /storage/private_uploads/ folder.

🖼️ Additional context (optional).

No response

Originally created by @ruanmed on GitHub (Jan 21, 2026). ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? SnipeIT ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/snipeit.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 📈 Which Proxmox version are you on? 8.4.14 ### 📝 Provide a clear and concise description of the issue. Updating the LXC for SnipeIT (using the `update` command, that internally executes the `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/snipeit.sh)"` command) the user uploads folders are wrongly synced: - `/opt/snipe-it/public/uploads/` - `/opt/snipe-it/storage/private_uploads/` They are being copied to nested folders, respectively: - `/opt/snipe-it/public/uploads/uploads/` - `/opt/snipe-it/storage/private_uploads/private_uploads/` And therefore, none of the user uploaded files (like, assets images, models images, files, manufacturer images, etc) work in SnipeIT. ### 🔄 Steps to reproduce the issue. 1. Install SnipeIT in version X 2. Access SnipeIT, create any model or asset with custom image 3. Update any SnipeIT installation when a new version is available 4. Access SnipeIT in a Private Browsing, without cache 5. Access any of the previous model/assets with custom images Expected: - All assets or models images are correctly exhibited Actually Happens: - All assets or model images go missing ### ❌ Paste the full error output (if available). The error is visually verified And can be verified by listing the contents of the folders `/opt/snipe-it/public/uploads/*` and `/opt/snipe-it/storage/private_uploads/*`. e.g.: ``` root@snipeit:/opt/snipe-it# du -sh /opt/snipe-it/public/uploads/* 8.0K /opt/snipe-it/public/uploads/accessories 8.0K /opt/snipe-it/public/uploads/assets 8.0K /opt/snipe-it/public/uploads/avatars 8.0K /opt/snipe-it/public/uploads/barcodes 8.0K /opt/snipe-it/public/uploads/categories 8.0K /opt/snipe-it/public/uploads/companies 8.0K /opt/snipe-it/public/uploads/components 8.0K /opt/snipe-it/public/uploads/consumables 8.0K /opt/snipe-it/public/uploads/default.png 8.0K /opt/snipe-it/public/uploads/departments 8.0K /opt/snipe-it/public/uploads/locations 8.0K /opt/snipe-it/public/uploads/manufacturers 8.0K /opt/snipe-it/public/uploads/models 8.0K /opt/snipe-it/public/uploads/suppliers 23M /opt/snipe-it/public/uploads/uploads ``` It can be verified that there exists a nested `uploads` folder: `/opt/snipe-it/public/uploads/uploads` containing all previous backed up data; which should not exist there. And all other folders that should be filled are empty. Same happens inside the `/storage/private_uploads/` folder. ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 04:37:33 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2363