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
Cannot restore backup #13515
Comments
We normally use a special Docker volume to handle the various uploads, so you should be able to throw away the container and replace it, and if you mount that volume, the various attached files should just show up. The path You may want to take a look at your ZIP file and see if it has that strange assets/assets/ structure as well? And/or take a look at the filesystem on your docker container. |
Mhh... But I don't know where the path |
I genuinely don't know where it would be getting that path from. Maybe something weird with paths in windows? If you open your backup zip, do you see an |
Hello all, I am having this issue too. I have examined my backup. Here is my folder path Under the assets folder, it appears that there are images that are in there, but no folder or file called assets. Currently, there are some images that are in the assets folder. I have tried creating this path var\www\html\snipeit\public\uploads\assets\assets\ but that seems to fail as well. It does look like I was getting a little bit further than @BlackRose01, my process seems to fail at 96/159. Notes about my env: I should also note that it appears to have restored bits and pieces of the application. For example, AD authentication, and our login banner. |
Same issue here on v6.2.3 vanilla system Try this...it worked for me...
Greets Chris Ti An |
Debug mode
Describe the bug
Hello,
I had to delete my Snipe-IT container because I wanted to add some more information to the container as a label. When I recreated the container, all the information was still there but all the uploaded images were gone (not a problem and was in the back of my mind). For this reason, I wanted to restore the previously created backup but this did not work. Via the website I always received an HTTP Error 500 and when restoring in the container using PHP artisan the error that the file was not found. I used the relative as well as the absolute file path.
KR,
BlackRose01
Reproduction steps
docker exec -ti snip /bin/bash
php artisan snipeit:restore /var/www/html/storage/app/backups/snipe-it-manual-backup-2023-08-23-13-10-31.zip
Expected behavior
Restore all information and images, so that they can be used.
Screenshots
Restore from Bash
Restore from Website
Snipe-IT Version
v6.1.2 build 10938 (g32747cafd)
Operating System
Official Docker Image
Web Server
Official Docker Image
PHP Version
8.1.2-1ubuntu2.13 | Laravel: 8.83.22
Operating System
Windows 11
Browser
Opera GX
Version
LVL5 (core: 100.0.4815.82)
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
Fresh Snipe-IT container but old database container
The text was updated successfully, but these errors were encountered: