snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.19k stars 3.2k forks source link

error 500 generating backup #14657

Open hermant1 opened 7 months ago

hermant1 commented 7 months ago

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

  1. click on backup
  2. 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

welcome[bot] commented 7 months ago

👋 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 commented 7 months ago

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

Snipe-IT Documentation
Getting Help
If you're having trouble setting up Snipe-IT, don't worry!
hermant1 commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

Hello

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