-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Snipe-IT v7 upgrade not possible on Debian without PHP 8.2 support in v6.4 #14977
Comments
A Try:
|
My main installation is already upgraded - upgrade.php worked when it was being run under the temporary installation of PHP 8.1, and after that it worked on the system PHP 8.2. I've just set up a test VM with Snipe-IT installed by "git clone" followed by "git checkout v6.4.2". upgrade.php failed on "STEP 4: Backing up database:" and aborted the process. The following sequence of commands did work:
Could you add this scenario of upgrading across incompatible PHP versions to the common issues page? |
We already kinda do have that covered in the upgrade guide tho, no? https://snipe-it.readme.io/docs/upgrading
|
The "After Pulling the New Version Files" section does have that general procedure, though I need to combine the two shell blocks with /usr/bin/composer rather than composer.phar on Linux. However it doesn't say that that's a sensible alternative to try if upgrade.php fails (particularly when you've just done a significant OS upgrade) and that the manual process is unlikely to cause problems for using upgrade.php in future. |
We'll get those docs updated, thanks |
Debug mode
Describe the bug
It is not possible to directly upgrade Snipe-IT from v6 to v7 on a Debian server without a third-party version of PHP, because Debian 11 includes PHP 7.4 (compatible with Snipe-IT v6 but not v7), and Debian 12 includes PHP 8.2 (compatible with Snipe-IT v7 but not v6). To get my server upgraded I had to install a temporary copy of PHP 8.1.
Reproduction steps
Expected behavior
It would be better for anyone else trying to do the same upgrade if there was a Snipe-IT 6.4.x which supported PHP 8.2, and so they could follow the straightforward procedure:
Screenshots
No response
Snipe-IT Version
6.4.2 + 7.0.6
Operating System
Debian 11 + 12
Web Server
Apache
PHP Version
7.4.33 + 8.2.20
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
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: