• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • 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]

** 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]

** 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