Replies: 2 comments
-
Due this command installation finished correctly:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
issue solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I use Snipe-IT Version v6.0.14 - build 9038 (master)
Today I decided to upgrade my version to the last. Using manual I opened terminal, update and upgrade my Ubuntu.
I changed directory to root of Snipe-IT
cd /var/www/snipe-it
and run commandphp upgrade.php
so process starts well but with errors see all my terminal output in the end of this post.snp@snp:/var/www/snipe-it$ php upgrade.php
WELCOME TO THE SNIPE-IT UPGRADER!
This script will attempt to:
STEP 1: Checking .env file:
√ Your APP_KEY is not blank.
√ Your APP_URL is not null or blank. It is set to http://inventory.local
√ Your APP_URL is set to http://inventory.local and starts with the protocol (https:// or http://)
√ Your APP_URL (http://inventory.local) does not have a trailing slash.
STEP 2: Checking PHP requirements:
Current PHP version: (8.1.2-1ubuntu2.13) is at least 7.4.0 - continuing...
FYI: The php.ini used by this PHP is: /etc/php/8.1/cli/php.ini
Checking Required PHP extensions...
√ bcmath is installed!
√ curl is installed!
√ fileinfo is installed!
√ gd is installed!
√ json is installed!
√ ldap is installed!
√ mbstring is installed!
√ mysqli is installed!
√ openssl is installed!
√ PDO is installed!
√ sodium is installed!
√ tokenizer is installed!
√ xml is installed!
√ zip is installed!
STEP 3: Checking directory permissions:
The following directories/files do not seem writable:
✘ PERMISSIONS ERROR: /var/www/snipe-it/bootstrap/cache is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/logs is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/logs/laravel.log is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/framework is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/framework/cache is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/framework/sessions is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/framework/views is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/app is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/app/backups is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/app/backup-temp is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/storage/private_uploads is NOT writable
✘ PERMISSIONS ERROR: /var/www/snipe-it/public/uploads is NOT writable
--------------------- !! ERROR !! ----------------------
Please check the permissions on the directories above and re-run this script.
------------------------- :( ---------------------------
STEP 4: Backing up database:
-- Starting backup...
Backup failed because: mkdir(): Permission denied.
STEP 5: Putting application into maintenance mode:
-- Failed to enter maintenance mode.
file_put_contents(/var/www/snipe-it/storage/framework/down): Failed to open stream: Permission denied
STEP 6: Pulling latest from Git (master branch):
Git is installed.
fatal: detected dubious ownership in repository at '/var/www/snipe-it'
To add an exception for this directory, call:
fatal: detected dubious ownership in repository at '/var/www/snipe-it'
To add an exception for this directory, call:
fatal: detected dubious ownership in repository at '/var/www/snipe-it'
To add an exception for this directory, call:
fatal: detected dubious ownership in repository at '/var/www/snipe-it'
To add an exception for this directory, call:
STEP 7: Cleaning up old cached files:
√ No bootstrap/cache/compiled.php, so nothing to delete.
√ Deleting bootstrap/cache/services.php. It is no longer used.
√ No bootstrap/cache/config.php, so nothing to delete.
√ No vendor/symfony/translation/TranslatorInterface.php, so nothing to delete.
-- Configuration cache cleared!
-- Failed to clear cache. Make sure you have the appropriate permissions.
-- Route cache cleared!
-- Compiled views cleared!
STEP 8: Updating composer dependencies:
(This may take a moment.)
-- Running the app in production mode.
-- We couldn't find a local composer.phar. No worries, trying globally.
Since you are running composer globally, we won't try to update it for you.
If you run into issues with this step, try running
composer self-update
before running this updater again
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
In Filesystem.php line 862:
file_put_contents(/var/www/snipe-it/vendor/composer/installed.php): Failed to open stream: Permission denied
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
Class ParsedownTest located in ./vendor/erusev/parsedown/test/ParsedownTest.php does not comply with psr-0 autoloading standard. Skipping.
In Filesystem.php line 862:
file_put_contents(/var/www/snipe-it/vendor/composer/autoload_psr4.php): Failed to open stream: Permission denied
dump-autoload [-o|--optimize] [-a|--classmap-authoritative] [--apcu] [--apcu-prefix APCU-PREFIX] [--dev] [--no-dev] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--strict-psr]
Generating optimized autoload files
STEP 9: Migrating database:
Nothing to migrate.
STEP 10: Checking for OAuth keys:
√ OAuth keys detected. Skipping passport install.
STEP 11: Taking application out of maintenance mode:
-- Application is already up.
---------------------- FINISHED! -----------------------
All done! Clear your browser cookies and re-login to use
your upgraded Snipe-IT!
In this case I tried to solve permission error by executing next commands:
snp@snp:/var/www/snipe-it$ sudo chown -R www-data:www-data /var/www/snipe-it
andsnp@snp:/var/www/snipe-it$ sudo chmod -R 755 /var/www/snipe-it
After clear browser cache nothing happened and version of my Snipe-IT still old.
How to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions