10000 Snipe-IT v18.0 (latest release) - software update fails · Issue #2041 · turnkeylinux/tracker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Snipe-IT v18.0 (latest release) - software update fails #2041
Open
@JedMeister

Description

@JedMeister

@rotogorderee has reported that upgrading Snipe-IT via composer fails on our v18.0 appliance (latest release).

See full details here: #2017 (comment)

My suspicion is that the composer problems are cascading issues related to the need for PHP8.2+ - although I may be wrong...

My suggested path forward would be to attempt to update PHP to v8.2 and retry. FYI TurnKey has a script for that: tkl-upgrade-php. The upgrade script is included in most (if not all) LAMP based appliances, although I am not sure if Snipe-IT is one of those (if not it will be in future releases).

Despite a recent tkl-upgrade-php update, the latest version should not be required. Regardless I'll include "install" instructions below as well. FYI that is currently also the tkl-upgrade-php script upgrade process too - although we do intend to improve the install/update process.


Suggested path forward

See if turnkey-upgrade-php is available already:

turnkey-php-upgrade

If the response is bash: turnkey-php-upgrade: command not found then "install" it and try again:

URL=https://raw.githubusercontent.com/turnkeylinux/common/refs/heads/18.x/overlays/php
SCRIPT=usr/local/bin/tkl-upgrade-php
wget $URL/$SCRIPT -O /$SCRIPT
chmod +x /$SCRIPT

turnkey-upgrade-php is an interactive script so follow the prompts to select the PHP version to install (either 8.2 - or check Snipe-IT docs for newest PHP version support and update to that PHP version).

After upgrading PHP version, retry the upgrade process from #2017. Although the git and chown commands should not be required (again) so you could skip those (it won't do any harm to rerun them). The initial cd command (i.e. changing to SnipeIT dir) should not be required either (the turnkey-* commands should take care of that) but again it won't hurt and is probably a good idea. In other words:

cd /var/www/snipe-it

turnkey-composer install --no-dev --prefer-source
turnkey-composer dump-autoload
turnkey-artisan migrate
turnkey-artisan config:clear
turnkey-artisan route:clear
turnkey-artisan cache:clear
turnkey-artisan view:clear

If that still fails, please post back @rotogorderee and I'll have a closer look ASAP.


As an aside, but vaguely; making it easy to update and install tkl-upgrade-php (inc updating PHP version support) are on the todo list. FYI the relevant issues are:

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0