Lychee: V5: production.ERROR: Illuminate\Auth\Access\Response::authorize:151 This action is unauthorized.

Ugly interface with truncated pictures

I upgraded from V4 to V5. On the main page the connect button has no effect. So I can’t access the diagnostics page. If I enter an album I have only truncated pictures.

Upgrade to V5

I am not sure what I did wrong. I use a custom script lychee_migrate.sh to upgrade Lychee.

#!/bin/bash

set -e

sudo rm -rf Lychee.old
mv Lychee Lychee.old
unzip Lychee.zip

# configuration
cp Lychee.old/.env Lychee

# images
mv Lychee/public/uploads Lychee/public/uploads.old
mv Lychee.old/public/uploads Lychee/public

./lychee_setup.sh

# upgrade
cd Lychee
php artisan key:generate
php artisan migrate

lychee_setup.sh is:

#!/bin/bash

set -e

dirs=". \
	.env \
	bootstrap/cache \
	database \
	database/database.sqlite \
	public/dist \
	public/dist/user.css \
	public/img \
	public/sym \
	public/uploads \
	public/uploads/import \
	storage
	storage/app \
	storage/app/public \
	storage/bootstrap \
	storage/bootstrap/cache \
	storage/debugbar \
	storage/framework \
	storage/framework/cache \
	storage/framework/cache/data \
	storage/framework/sessions \
	storage/framework/testing \
	storage/framework/views \
	storage/logs "

for d in $dirs
do
	echo $d
	chmod g+w Lychee/$d
	sudo chgrp www-data Lychee/$d
done

Output of the diagnostics [REQUIRED]

I can’t access the diagnostics page because I can’t login.

storage/logs/errors.log contains:

[2023-12-27 15:22:03] production.ERROR: Illuminate\Auth\Access\Response::authorize:151 This action is unauthorized.
App\Livewire\Components\Pages\Frame::mount:54 This action is unauthorized.; caused by

storage/logs/daily-2023-12-27.log has the same content.

In Firefox I also get a 404 error:

Loading failed for the <script> with source “https://images2.xxxx.xxx/livewire/livewire.js?id=f121a5df”.

On my server Lychee is installed in /Lychee not in /. So I am not really surprised to get strange errors and behavior. The correct URL is https://images2.xxxx.xxx/Lychee/livewire/livewire.js?id=f121a5df instead.

Browser and system

  • Firefox 115.6.0
  • Debian testing for the client
  • Debian stable for the server

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Ah, then they will be created as soon as you upload a picture.