• 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

Auto delete image doesn't work

Andy

Chevereto Member
👉Fill out this template accordingly with the issue you are experiencing. Add relevant files if needed. 🚧🚦Don't @mention to grab attention. Don't edit the titles of this template. Remove this paragraph when done.

🎯Description of the issue

We upload an image, and set that image to be auto-deleted within 3 mins, we waited more than 30 mins and the image not deleted.

▶🚶‍Reproduction steps
  1. Go to https://site.pictures
  2. Upload an image, and set a 5 minutes auto-delete
  3. Wait 5 minutes and the image is not deleted.
😢Unexpected result

Auto-deleted images are not deleted.

📃Error log message

No error log, how can I see the error logs?
 
Can you confirm if the actual image files aren't being deleted? Maybe is just a CDN cache or something like that.
 
Checking the database, it seems that this stopped working on Jun 10 as that's the most recent record.

1592838635441.png

At the images table, the expiration_date_gmt is not being filled. At the demo, this field is being populated with the target date to delete so I'm guessing that you did some editing that broke this functionality. Others aren't bringing this issue, so I doubt that it is a bug in the software.

Check the image https://site.pictures/image/UiETn it holds image_expiration as PT5M but the actual expiration_date_gmt is null.
 
I'm sorry but you will have to find the error on your own. This is not something affecting other installations, so it could be anything from wrong system settings up to broken dependencies. I'm sorry but it takes me too much time do debug this kind of stuff, and since it doesn't seem to be affecting other users I won't classify it as a bug.

Try updating the stack (PHP and others), try with a clean install, try it in another machine, etc. If you show me a bunch of installations with the issue I could start an investigation.
 
Is there any error log I can start with?
I'm pretty sure we didn't do any changes on both Chevereto & Webserver/PHP/SQL.
Or can you create a SQL query to remedy this issue? Is this a database corrupt or what?
We have no clue on what's the error.
Will clean install remove all database & images and start from brand new site?
 
Update:

I upgraded to PHP Version 7.3.18, now running on fcgi.

Tested to upload 2 images and now I can see the image_expiration_date_gmt has been added, but the image still not deleting after 5 mins?
Screen Shot 2020-06-23 at 3.01.21 PM.png
I think the others might have this issue too but they just simply not noticing it.
We also just noticed this issue after more than a month.
 
Last edited:
The expiration_date_gmt is the date when the image expires, if the system detects that the image has expired it will issue a delete queue that gets triggered when you access the website. From there, other sub-systems could also fail.
  1. On the null DB, it could be related to built-in datetime functions, perhaps the compiled PHP version has issues on timezones or whatnot
  2. On the actual file deletetion, check the queues table it should have a record indicating an issue with the storage
  3. Also check the deletions table, if the record is there then there a false positive in the filesystem
Like I said, is very complicated. I recommend you to update to latest stable releases.
 
The expiration_date_gmt is the date when the image expires, if the system detects that the image has expired it will issue a delete queue that gets triggered when you access the website. From there, other sub-systems could also fail.
  1. On the null DB, it could be related to built-in datetime functions, perhaps the compiled PHP version has issues on timezones or whatnot
  2. On the actual file deletetion, check the queues table it should have a record indicating an issue with the storage
  3. Also check the deletions table, if the record is there then there a false positive in the filesystem
Like I said, is very complicated. I recommend you to update to latest stable releases.
We're running Chevereto v3.15.2 which is already latest stable version.
When we click check for updates, it says This website is running latest Chevereto version
Do you have a newer version for us to try?
Have you had a chance to look again after we do the PHP upgrade?
 
Chevereto is just an script running on top of your server, literally there are dozen things that could be failing. As this issue is not preventing the system to work, the script layer is not triggering any exception so chances are that something is broken at server layer.

I could debug it on your server, but I really prefer if you simply update the stack.
 
We have done PHP stack update from 5.6 to 7.3 and the expiration_date_gmt now exist, but the auto deletion not working.

Can we set the debug level and get a clue somewhere to find where it fails?
 
Hi Rodolfo, thanks and appreciate for your thorough investigation.
Pretty sure those permissions were already granted when we setup the Chevereto initially.

Any idea why those permissions has been altered? Such as running auto update perhaps?

And do you think the missing expiration_date_gmt on php 5.6 was caused by this permission issue as well or that's another issue indeed?
 
Back
Top