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

fopen(public/uploads/assets/assets): failed to open stream: No such file or directory while Restoring from admin panel #11985

Open
2 tasks done
merentitis opened this issue Oct 17, 2022 · 2 comments
Assignees

Comments

@merentitis
Copy link

Debug mode

Describe the bug

I tried restoring a backup while moving Snipe-IT from standalone server to a docker installation.
Restore stopped with the following error:
fopen(public/uploads/assets/assets): failed to open stream: No such file or directory

Reproduction steps

  1. Backed up from old server via admin panel
  2. Restored to new server (docker) via admin panel
    .

Expected behavior

Successful restore

Screenshots

No response

Snipe-IT Version

v6.0.12 - build 8824

Operating System

Debian Docker

Web Server

apache

PHP Version

7.4

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

ErrorException
fopen(public/uploads/assets/assets): failed to open stream: No such file or directory 

Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
app/Console/Commands/RestoreFromBackup.php:304

Additional context

After manually creating the folder public/uploads/assets/, restore completed succesfully

@snipe
Copy link
Owner

snipe commented Oct 26, 2022

Not sure why you'd be seeing that, and I cannot reproduce it locally. Any ideas, @uberbrady?

@PalasX
Copy link

PalasX commented Oct 12, 2023

Just confirming this happens in a clean docker install of v6.2.2 from snipe/snipe-it.
resolution is the same, create public/uploads/assets.
if my case i had a bind mount to local filesystem: ./vol_snipeit:/var/lib/snipeit
i created the the folder locally, but after running artisan restore, owner of the assets directory changed to root:root.
drwxr-xr-x 2 root root 20480 Oct 12 19:00 assets/

restore went fine though, and was then able to artisan migrate up from 6.1.1 without any further hitch.

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

No branches or pull requests

4 participants