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

error 500 generating backup #14657

Open
2 tasks done
hermant1 opened this issue Apr 29, 2024 · 5 comments
Open
2 tasks done

error 500 generating backup #14657

hermant1 opened this issue Apr 29, 2024 · 5 comments
Labels

Comments

@hermant1
Copy link

hermant1 commented Apr 29, 2024

Debug mode

Describe the bug

When trying to save a backup I get error 500. therefore I cannot create a backup before upgrading. can I still upgrade to the latest version without risks of losing data?
version is v6.3.1 build 12672 (g00cea3eb3)

Reproduction steps

1.Go to settings
2. click on backup
3. click on generate backup
...

Expected behavior

a backup is generated.

Screenshots

No response

Snipe-IT Version

v6.3.1

Operating System

Docker(Ubuntu)

Web Server

Apache

PHP Version

8.1.2

Operating System

Windows

Browser

Edge

Version

No response

Device

No response

Operating System

No response

Browser

Edge

Version

No response

Error messages

Spatie\DbDumper\DbDumper::setPort(): Argument #1 ($port) must be of type int, string given, called in /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/DbDumperFactory.php on line 56

Additional context

No response

Copy link

welcome bot commented Apr 29, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Apr 29, 2024

Please provide us with the information requested at the Getting Help documentation:
https://snipe-it.readme.io/docs/getting-help

Snipe-IT Documentation
If you're having trouble setting up Snipe-IT, don't worry!

@hermant1
Copy link
Author

Hello
Updated the case, however I get this error:
Spatie\DbDumper\DbDumper::setPort(): Argument #1 ($port) must be of type int, string given, called in /var/www/html/vendor/spatie/laravel-backup/src/Tasks/Backup/DbDumperFactory.php on line 56

installed in docker with docker compose up.

@snipe
Copy link
Owner

snipe commented Apr 30, 2024

You should just be able to do the things outlined in the upgrade guide in the docs. (Git pull, composer install, php artisan migrate, etc.) That’s all the upgrade script is really doing anyway. Once you’ve upgraded, that port error you’re seeing should go away.

@hermant1
Copy link
Author

Hello

I get this error, both in the docker container as well as the VM: "Could not open input file: composer.phar"

@snipe snipe added the docker label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants