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

Upgrade from 6.4 to 7 Fail #15087

Open
2 tasks done
Shakura8 opened this issue Jul 14, 2024 · 1 comment
Open
2 tasks done

Upgrade from 6.4 to 7 Fail #15087

Shakura8 opened this issue Jul 14, 2024 · 1 comment

Comments

@Shakura8
Copy link

Shakura8 commented Jul 14, 2024

Debug mode

Describe the bug

Cannot upgrade from 6.4 to the latest version 7.0.9
Took manual backup before.
Upgrade fail.
Failed on Backup step.

Reproduction steps

  1. git pull
    2.php upgrade.php

Expected behavior

to upgrade successfully

Screenshots

No response

Snipe-IT Version

6.4

Operating System

Ubuntu

Web Server

apache

PHP Version

8.1.2

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

user@Ubuntu-mep:/var/www/html/snipeit$ php upgrade.php
--------------------------------------------------------
WELCOME TO THE SNIPE-IT UPGRADER! 
--------------------------------------------------------

This script will attempt to: 

- validate some very basic .env file settings 
- check your PHP version and extension requirements 
- check directory permissions 
- do a git pull to bring you to the latest version 
- run composer install to get your vendors up to date 
- run migrations to get your schema up to date 
- clear out old cache settings

Launching using branch: master
Found PHP requirements, will check for PHP > 8.1.0 and < 8.4.0
Proceed with upgrade? [y/N]: y

--------------------------------------------------------
STEP 1: Checking .env file: 
- Your .env is located at /var/www/html/snipeit/.env 
--------------------------------------------------------

√ Your APP_KEY is not blank. 
√ Your APP_URL is not null or blank. It is set to http:https://10.17.240.19
√ Your APP_URL is set to http:https://10.17.240.19 and starts with the protocol (https:// or http:https://)
√ Your APP_URL (http:https://10.17.240.19) does not have a trailing slash.

--------------------------------------------------------
STEP 2: Checking PHP requirements: (Required PHP >=8.1.0 - <8.4.0) 
--------------------------------------------------------

√ Current PHP version: (8.1.2-1ubuntu2.18) is at least 8.1.0 and less than 8.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!
√ exif 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: 
--------------------------------------------------------

√ /var/www/html/snipeit/bootstrap/cache is writable 
√ /var/www/html/snipeit/storage is writable 
√ /var/www/html/snipeit/storage/logs is writable 
√ /var/www/html/snipeit/storage/logs/laravel.log is writable 
√ /var/www/html/snipeit/storage/framework is writable 
√ /var/www/html/snipeit/storage/framework/cache is writable 
√ /var/www/html/snipeit/storage/framework/sessions is writable 
√ /var/www/html/snipeit/storage/framework/views is writable 
√ /var/www/html/snipeit/storage/app is writable 
√ /var/www/html/snipeit/storage/app/backups is writable 
√ /var/www/html/snipeit/storage/app/backup-temp is writable 
√ /var/www/html/snipeit/storage/private_uploads is writable 
√ /var/www/html/snipeit/public/uploads is writable 

--------------------------------------------------------
STEP 4: Backing up database: 
--------------------------------------------------------

-- 
   Error

  Call to undefined method Livewire\LivewireManager::setUpdateRoute()

  at vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261
    257▕         if (! $instance) {
    258▕             throw new RuntimeException('A facade root has not been set.');
    259▕         }
    260▕
  ➜ 261▕         return $instance->$method(...$args);
    262▕     }
    263▕ }
    264▕

  1   app/Providers/LivewireServiceProvider.php:26
      Illuminate\Support\Facades\Facade::__callStatic()

      +7 vendor frames 
  9   [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

Something went wrong with your backup. Aborting!

Additional context

No response

Copy link

welcome bot commented Jul 14, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant