Trouble logging in to wp-admin

Keywords: WordPress - AWS - Technical issue - Other
bnsupport ID: 600696d3-8b5c-0865-35f6-7f953ac3e63a
Description:
Hi,

I’m using AWS Lightsail, load balancer and CDN.

I set up Wordpress running Varnish. Using https and disabled PageSpeed as per documentation. I’m having trouble accessing wp-admin. When I use wp-login, I works but it is very slow and certain aspects of the wp admin area are not accessible nd return a 504 error. I’ve seen it try to use port 81 but not sure if that is the issue.

Support code from BN-helper tool is 600696d3-8b5c-0865-35f6-7f953ac3e63a

Best Regards,
Brian

Hello @brian.shin,

It seems Apache’s error_log file didn’t get included in our support tool’s report, probably because it was too big. Nevertheless, our diagnostic tool got some possible issues from said log file that you can try:

  1. Some files don’t have the expected permissions. Please check the following guide:

https://docs.bitnami.com/general/apps/wordpress/administration/understand-file-permissions/

  1. Found recent WordPress plugin-related error messages in the Apache error log.
[Mon Apr 05 17:41:50.060203 2021] [proxy_fcgi:error] [pid 23363:tid 140692684777216] [client 127.0.0.1:33480] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://cheefdev.com/wp-admin/plugins.php?plugin_status=active

If you have installed any plugins recently, please check the following guide to deactivate plugins:

https://developer.wordpress.org/cli/commands/plugin/deactivate/

If the problem persists, could you upload the log file at /opt/bitnami/apache2/logs/error_log to a file-sharing server and share it with me as explained in this guide?

Regards,
Francisco de Paz

Hi Francisco,

Thank you for your help. I ran through my permissions regarding those Apache errors. I ran the commands;

sudo chown -R bitnami:daemon TARGET
sudo find TARGET -type d -exec chmod 775 {} ;
sudo find TARGET -type f -exec chmod 664 {} ;

I uploaded the error log here; https://www.dropbox.com/s/o5irsk141ysile2/error_log?dl=0

When trying to access /wp-admin, I am getting 504 error and when I use wp-login, it works but wp admin is very slow. While logged in, I will get an occasional 504 error and then cannot connect, and will lose what I was working on.

I’m using AWS Lightsail Bitnami Wordpress, Lightsail load balancer, and Lightsail CDN. On the WP instance, I have redis and varnish running. Sometimes when I enter /wp-admin, I’ll see :81/wp-admin and connection fails. Maybe I have a setting in Varnish incorrect.

Best Regards,
Brian

Hi Francisco,

I think this is the problem;

[Mon Apr 05 21:30:14.831091 2021] [proxy_fcgi:error] [pid 1030:tid 139909197084416] (70007)The timeout specified has expired: [client 127.0.0.1:43418] AH01075: Error dispatching request to :81: (polling), referer: https://.com/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=1fd74b583d

Still have these permission issues even though I ran the previously mentioned changes in permissions;

[Mon Apr 05 21:37:29.836767 2021] [proxy_fcgi:error] [pid 1030:tid 139909247440640] [client 127.0.0.1:43830] AH01071: Got error ‘PHP message: PHP Warning: touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning: touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning: touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning: touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning: chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173’, referer: https://.com/wp-admin/admin.php?page=w3tc_general

Best Regards,
Brian

Hello @brian.shin,

Just to confirm, did you run the following commands:

sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress
sudo find /opt/bitnami/apps/wordpress -type d -exec chmod 775 {} \;
sudo find /opt/bitnami/apps/wordpress -type f -exec chmod 664 {} \;
sudo chmod 640 /opt/bitnami/apps/wordpress/wp-config.php

Please share another bnsupport ID after running the permission commands so I have a report with the updated permissions.

Regards,
Francisco de Paz

Hi @fdepaz,

I re-ran those commands listed. Last command had to be adjusted because wp-config is in htdocs. I re-ran the support tool and received this code;

a6ee683a-7877-9d48-6b7d-4cc73e87efbb

The error log still shows these warnings;

[Wed Apr 07 17:46:30.526321 2021] [proxy_fcgi:error] [pid 1362:tid 140106623035136] [client 127.0.0.1:40952] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173'
[Wed Apr 07 17:46:31.614551 2021] [proxy_fcgi:error] [pid 1327:tid 140106706962176] [client 127.0.0.1:40960] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/
[Wed Apr 07 17:46:32.677910 2021] [proxy_fcgi:error] [pid 1327:tid 140106371254016] [client 127.0.0.1:40960] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/
[Wed Apr 07 17:46:34.484472 2021] [proxy_fcgi:error] [pid 1327:tid 140106648213248] [client 127.0.0.1:40960] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/
[Wed Apr 07 17:46:35.682500 2021] [proxy_fcgi:error] [pid 1327:tid 140106513929984] [client 127.0.0.1:40960] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/
[Wed Apr 07 17:46:49.157045 2021] [proxy_fcgi:error] [pid 1362:tid 140105951913728] [client 127.0.0.1:40986] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/wp-admin/theme-editor.php?file=functions.php&theme=holistapet-child
[Wed Apr 07 17:46:49.473758 2021] [proxy_fcgi:error] [pid 1362:tid 140106237200128] [client 127.0.0.1:40984] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/wp-admin/theme-editor.php?file=functions.php&theme=holistapet-child
[Wed Apr 07 17:47:28.574327 2021] [proxy_fcgi:error] [pid 1374:tid 140106648213248] [client 127.0.0.1:41004] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/products/cbd-for-dogs/
[Wed Apr 07 17:47:33.401938 2021] [proxy_fcgi:error] [pid 1374:tid 140106846181120] [client 127.0.0.1:41004] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/blog/
[Wed Apr 07 17:48:49.783107 2021] [proxy_fcgi:error] [pid 1327:tid 140106320897792] [client 127.0.0.1:41016] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/wp-admin/theme-editor.php?file=functions.php&theme=holistapet-child
[Wed Apr 07 17:48:50.415815 2021] [proxy_fcgi:error] [pid 1362:tid 140106497242880] [client 127.0.0.1:41018] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/wp-admin/theme-editor.php?file=functions.php&theme=holistapet-child
[Wed Apr 07 17:48:51.926744 2021] [proxy_fcgi:error] [pid 1362:tid 140106119767808] [client 127.0.0.1:41018] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://<site>.com/why-holistapet/about-holistapet-cbd-oil-for-pets/

Best Regards,
Brian

Hello @brian.shin,

That is really strange. Could you try following my colleague’s instructions on this post?

I also recommend you to try disabling your plugins to see check whether the issue is coming from a misconfigured plugin. You can check how to disable plugins from the console in our Debug WordPress Errors guide.

Regards,
Francisco de Paz

Hello @fdepaz,

Sure I can do that but what about the port 81 and wp-admin issue? Is it related to this permission issue?

Best Regards,
Brian

Hello @fdepaz,

I made the change as per the post you referred me to but no change in the error log.

Best Regards,
Brian

Hello @fdepaz

I also ran the diagnostic tool and this is what it returned;

bitnami@ip-172-26-17-188:/tmp$ sudo /opt/bitnami/bndiagnostic-tool
 
✓ resources: No issues found
? wordpress: Found possible issues
? apache: Found possible issues
✓ mysql: No issues found
✓ wordpress: No issues found
✓ permissions: No issues found
 
 
- Found recent plugin related error messages in the Apache error log.

[Thu Apr 08 16:58:57.786715 2021] [proxy_fcgi:error] [pid 6279:tid 139714262198016] [client 127.0.0.1:33914] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173', referer: https://cheefdev.com/wp-admin/plugins.php?meks-restore-all-plugins=1

Please check the following guide to deactivate plugins:

      https://developer.wordpress.org/cli/commands/plugin/deactivate/

- Found recent error messages in the Apache error log.

[Thu Apr 08 16:58:54.271280 2021] [proxy_fcgi:error] [pid 6279:tid 139711611868928] [client 127.0.0.1:33914] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173'

Please check the following guide to troubleshoot server issues:

      https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

Hello @brian.shin,

The use of port 81 is normal, as Varnish is using port 80 and Apache port 81.

Please try disabling the plugins and changing the used theme to a default one, as the permission errors should be causing the slowness and the 504 errors. These errors may be coming from these logs:

[Tue Apr 06 19:29:20.335351 2021] [proxy_fcgi:error] [pid 1327:tid 140106547500800] [client 127.0.0.1:48688] AH01071: Got error 'PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: PHP Warning:  chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173PHP message: WordPress database error Lock wait timeout exceeded; try restarting transaction for query UPDATE wpuo_actionscheduler_actions SET claim_id=680305, last_attempt_gmt='2021-04-06 19:28:13', last_attempt_local='2021-04-06 12:28:13' WHERE claim_id = 0 AND scheduled_date_gmt <= '2021-04-06 19:28:13' AND status='pending' ORDER BY attempts ASC, scheduled_date_gmt ASC, action_id ASC LIMIT 25 made by do_action('wp_ajax_as_async_request_queue_runner'), WP_Hook->do_action, WP_Hook->apply_filters, WP_Async_Request->maybe_handle, ActionScheduler_AsyncRequest_QueueRunner->handle, do_action('action_scheduler_run_queue'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_HybridStore->stake_claim, ActionScheduler_DBStore->stake_claim, ActionScheduler_DBStore->claim_actionsPHP message: PHP Fatal error:  Uncaught RuntimeException: Unable to claim actions. Database error. in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:675\nStack trace:\n#0 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php(599): ActionScheduler_DBStore->claim_actions()\n#1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(221): ActionScheduler_DBStore->stake_claim()\n#2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(153): ActionScheduler_HybridStore->stake_claim()\n#3 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_QueueRunner.php(132): ActionScheduler_QueueRunner->do_batch()\n#4 /opt/bitnam...', referer: https://cheefdev.com/wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=3161d25058

Regards,
Francisco de Paz

@fdepaz,

I spun up a brand new instance, default Wordpress installation. Followed the instructions for activating Varnish from the Bitnami documentation and when I try to go to site.com/wp-admin it displays this url;

http://holistapetdev.com:81/wp-admin/ and I cannot login.

http://holistapetdev.com:81/wp-admin/

When I disable the plugins the previous site is unreachable and I’m not able to install the Twenty Twenty One theme to test.

Best Regards,
Brian

Hello @brian.shin,

You should be trying to access through port 80, as Varnish configuration is transparent to the user. Accessing your site at http://holistapetdev.com/ returns the WP site with Varnish working in the backend:

Instead of disabling every plugin from the console, try changing the theme from wp-admin and disable your plugins one by one using the UI.

Regards,
Francisco de Paz

Hi @fdepaz,

Yes, late yesterday afternoon, I realized I missed 1 step in the configuration on the new server. Here’s the step I missed;

ProxyPreserveHost On
      RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
      ProxyPass "/"  "http://127.0.0.1:81/"
      ProxyPassReverse "/"  "http://127.0.0.1:81/"

and comment this line
# Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"

This new server is not throwing any apache errors and wp-admin works fine. Now I’m going to add the new site in a and see if it works. If I get errors, I’ll disable 1 plugin at a time and troubleshoot from there.

Best Regards,
Brian

Hi @brian.shin,

Did you manage to change to the default theme and disabling the plugins one by one from wp-admin in your old instance? Nonetheless, let’s leave this thread open until you migrate your site to the new one in case the error re-appears.

Regards,
Francisco de Paz

Hi @fdepaz,

Thanks for the follow up. So, I gave up on Varnish using https and built a new set of servers as well. New servers still have these apache errors;

Warning: touch(): Utime failed: Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 516

Warning: chmod(): Operation not permitted in /opt/bitnami/apps/wordpress/htdocs/wp-admin/includes/class-wp-filesystem-direct.php on line 173

Without Varnish, login to wp-admin is fine. I think the free version of Varnish cannot be configured with https and still can’t figure out that apache error. Today I am going to start over with all plugins disabled and go one by one until I get the error and debug from there.

Best Regards,
Brian

This video tutorial should fix those permission errors

https://www.youtube.com/watch?v=nKfle7O0vN8

If you want to use Varnish and https, you need to generate a loop to be able to use Varnish and https (Apache HTTPS -> Varnish -> Apache HTTP)

https://docs.bitnami.com/aws/apps/wordpress//administration/configure-use-varnish/#use-varnish-tm-with-ssl

Perfect! Let us know if you have more information. Remember that you can use the WP CLI to disable/enable the plugins.

https://docs.bitnami.com/aws/apps/wordpress/administration/use-wpcli/

Happy to help!


Was my answer helpful? Click on :heart: