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

Updating 4.4.0 to 4.7.0 fails with 403: incorrect username or password #1779

Closed
mniemela opened this issue Mar 22, 2023 · 4 comments · Fixed by #1826
Closed

Updating 4.4.0 to 4.7.0 fails with 403: incorrect username or password #1779

mniemela opened this issue Mar 22, 2023 · 4 comments · Fixed by #1826

Comments

@mniemela
Copy link

Detailed description of the problem [REQUIRED]

I get error 403: Incorrect username or password when trying to migrate from 4.4.0 to 4.7.0. I tried this multiple times by rolling back the virtual machine to the state before upgrade attempt. This seems to be the same bug as issue #1456, except I don't have a massive amount of pictures.

Steps to reproduce the issue

  1. Execute following commands on the system with Lychee 4.4.0:

root@foo:~# cd /var/www/html/
root@foo:/var/www/html# wget https://github.com/LycheeOrg/Lychee/releases/download/v4.7.0/Lychee.zip
root@foo:/var/www/html# mv Lychee Lychee-old
root@foo:/var/www/html# unzip Lychee.zip
...
root@foo:/var/www/html# cp Lychee-old/.env Lychee/.env
root@foo:/var/www/html# mv Lychee-old/public/uploads/ Lychee/public/uploads/
root@foo:/var/www/html# chown -R www-data:www-data Lychee

  1. Go to the web page. It shows the error message. Entering the admin username and password has no effect.

Screenshots
image

Output of the diagnostics [REQUIRED]

I can't access the diagnostics in the state.

Browser and system

Chrome/Windows 11 as client.

Lychee is running on Ubuntu 22.04 LTS and mysql as database.

@mniemela
Copy link
Author

mniemela commented May 6, 2023

Anything new about this?

@ildyria
Copy link
Member

ildyria commented May 7, 2023

I'll try to have a look today.

@ildyria
Copy link
Member

ildyria commented May 7, 2023

Documents/Projects/Lychee  v4.4.0 ✗                                                                      1y154d ⚑ ◒  ⍉
▶ composer install  
php-http/discovery contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - phpspec/prophecy is locked to version 1.14.0 and an update of this package was not requested.
    - phpspec/prophecy 1.14.0 requires php ^7.2 || ~8.0, <8.2 -> your php version (8.2.5) does not satisfy that requirement.
  Problem 2
    - phpspec/prophecy 1.14.0 requires php ^7.2 || ~8.0, <8.2 -> your php version (8.2.5) does not satisfy that requirement.
    - phpunit/phpunit 9.5.10 requires phpspec/prophecy ^1.12.1 -> satisfiable by phpspec/prophecy[1.14.0].
    - phpunit/phpunit is locked to version 9.5.10 and an update of this package was not requested.

That's going to be a problem...

@ildyria
Copy link
Member

ildyria commented May 7, 2023

I am getting close to having a fix for you but it will force you to bump to version 4.8.

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

Successfully merging a pull request may close this issue.

2 participants