• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Cron StorageDelete error

Status
Not open for further replies.

Labze

Chevereto Member
Hi.

A few days ago I started to encounter problems with running the CRON job. It had worked fine previously, and I assume it started to happen after I added additional external storage (S3 compitable, Backblaze).

When I run the Cron job I get the following error:

* Processing storageDelete

Aw, snap! Internal Server Error [debug @ print,error_log] - https://chv.to/v3debug

** errorId #4e136e56728892a8 **
> ErrorException [0]: Undefined array key "expires_gmt"
At /www/wwwroot/imgbrr.co/app/lib/classes/class.lock.php:37

Stack trace:
#0 /www/wwwroot/imgbrr.co/app/lib/classes/class.lock.php(37): G\errorsAsExceptions()
#1 /www/wwwroot/imgbrr.co/app/cron.php(49): CHV\Lock->create()
#2 /www/wwwroot/imgbrr.co/app/cron.php(32): storageDelete()
#3 /www/wwwroot/imgbrr.co/app/loader.php(242): require_once('/www/wwwroot/imgbrr.co/app/cron.php')
#4 /www/wwwroot/imgbrr.co/cli.php(36): include_once('/www/wwwroot/imgbrr.co/app/loader.php')

Aw, snap! Internal Server Error [debug @ print,error_log] - https://chv.to/v3debug

** errorId #4e136e56728892a8 **
> ErrorException [0]: Undefined array key "expires_gmt"
At /www/wwwroot/imgbrr.co/app/lib/classes/class.lock.php:37

Stack trace:
#0 /www/wwwroot/imgbrr.co/app/lib/classes/class.lock.php(37): G\errorsAsExceptions()
#1 /www/wwwroot/imgbrr.co/app/cron.php(49): CHV\Lock->create()
#2 /www/wwwroot/imgbrr.co/app/cron.php(32): storageDelete()
#3 /www/wwwroot/imgbrr.co/app/loader.php(242): require_once('/www/wwwroot/imgbrr.co/app/cron.php')
#4 /www/wwwroot/imgbrr.co/cli.php(36): include_once('/www/wwwroot/imgbrr.co/app/loader.php')

I am not quite sure what causes this. I have tried to remove the external storages that I added but that didn't change anything.
Help is much appreciated
Thanks
 
Open app/lib/classes/class.lock.php and change this:

PHP:
        $lock = isset($lock[0]) ? $lock[0] : false;

To this:

PHP:
        $lock = $lock[0] ?? false;

Change this:

PHP:
            $diff = G\datetime_diff($lock['expires_gmt']);

To this:

PHP:
            $diff = G\datetime_diff($lock['expires_gmt'] ?? G\datetimegmt());

Does it helps?
 
Dear @Labze,

Unfortunately, this ticket has more than 14 days without a reply or feedback from you. We will now consider this ticket abandoned and its status is now closed.

Please, don't hesitate to create a new ticket if this matter is still causing you trouble. If this is already solved you can ignore this message.
 
Status
Not open for further replies.
Back
Top