• 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.

Cannot get update to work

Status
Not open for further replies.

prgary

Chevereto Member
Tried auto- update. Error: Can't write into root / path

So I went to the instructions and did CHMOD 777 for directories as instructed. Same error.

Next I downloaded the update. It turns out to be a index.php file that I uploaded to the root of the domain where Chevereto runs. On start some annoying graphics and music started...
Next it asks my license. After entering I get: error Can't write into /home/*directory_name*/public_html/ path

Isn't there a way that is easy to do and that works?

Thanks.
 
Check if your folder has the same owner as the webserver. In most cases your webserver runs under www-data. So your folder should be also owned by www-data. You will found this information in your server conf.

Code:
chown -R www-data:www-data Name_of_your_Rootfolder
 
Tried auto- update. Error: Can't write into root / path

So I went to the instructions and did CHMOD 777 for directories as instructed. Same error.

Problem is that PHP needs to be able to read/write otherwise is impossible that the auto-update work. Instructions at my end will never tell you to do CHMOD 0777 because that is a discouraged practice, in fact you can check that the documentation doesn't tell you to do that: https://chevereto.com/docs/requirements

Best way to do that is by Apache group permissions, ask your hosting company about that.

Next I downloaded the update. It turns out to be a index.php file that I uploaded to the root of the domain where Chevereto runs. On start some annoying graphics and music started...
Next it asks my license. After entering I get: error Can't write into /home/*directory_name*/public_html/ path
That's a web installer and it won't work for you either because it works in the same way in which the auto updater does, it needs full read/write access. On the download page you will see two green buttons and you need to click on the bottom one:

upload_2017-4-6_20-51-47.png

On start some annoying graphics and music started...
That's subjective. I love those.

Isn't there a way that is easy to do and that works?
Sure, but you need to actually read the instructions carefully. There is a guide for all kind of update procedures, here: https://chevereto.com/docs/update-guide

Hope it helps,
Rodolfo.
 
Check if your folder has the same owner as the webserver. In most cases your webserver runs under www-data. So your folder should be also owned by www-data. You will found this information in your server conf.

Code:
chown -R www-data:www-data Name_of_your_Rootfolder

You are quite right. There is a guide for that, https://chevereto.com/community/thr...issues-update-images-logo-watermark-etc.4561/ (www-data is your wheel user, it will vary depending on your setup).
 
OK thanks, that helped a lot!
I downloaded 3.8.13, unzipped and uploaded according to instructions. Did the update. Got the message update succeeded.
So far so good.
I see the home page, Dashboard is there, settings, stats, it all works.

But after that I get a blank page when I go to my profile. Also when I go to images in Dashboard I get a blank page.
I can see all users but when clicking on a user I get a blank page, too.
The uploaded pictures are still there, old links to the pics work fine.

How do I get rid of this problem?

EDIT - I installed chevereto in the root of the domain and not in a directory 'chevereto'. Until now it worked fine like (3.71) . Can that be part of the problem?
 
RewriteEngine On

# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
# If you are using alias is most likely that you will need this.
#RewriteBase /

# 404 images
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) - [NC,L,R=404]
#RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/images/system/404.gif [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpe?g|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
RewriteRule . index.php [L]
 
Could be mod_rewrite, wrong vhost settings or an alias not properly configured. You should try to edit root .htaccess file.

Change this:
Code:
    #RewriteBase /

To this:
Code:
    RewriteBase /

It that works then the problem is a faulty vhost, it happens from time to time. It's not a big deal.
 
RewriteEngine On

That doesn't tell if mod_rewrite is actually working, it just tells Apache to use it. Chevereto test Apache to see if the module is loaded but Chevereto (or any system in that layer) can't detect if mod_rewrite (and vhost settings and so on) are properly working or not.
 
Could be mod_rewrite, wrong vhost settings or an alias not properly configured. You should try to edit root .htaccess file.

Change this:
Code:
    #RewriteBase /

To this:
Code:
    RewriteBase /

It that works then the problem is a faulty vhost, it happens from time to time. It's not a big deal.
That didn't help unfortunately.

Now, before the update Chevereto was working just fine (3.7.1)
And yes, mod-rewrite is enabled. I have a couple of Wordpress sites on this VPS and they use it. Also, the previous Chevereto installation used it, right?
 
Sure, but maybe you or someone else patched that .htaccess file, remember that you replaced it in this manual install procedure.

Which is the website URL? Let me take a look to it.
 
Mod_rewrite is working properly, that's not the issue at all. If you can get any /<some> to work then is not mod_rewrite at all.

After enabling PHP error report (Dashboard > Settings > System) I see the following:

Code:
Fatal error: Call to undefined function G\datetimegmt_convert_tz() in /app/lib/classes/class.image.php on line 1442

Make sure that /lib is updated (G + Peafowl libraries)
 
Status
Not open for further replies.
Back
Top