Comments (5)
Hi,
We recently migrated to the new Bitnami Stack, and have unresolved issues since then.
Could you please let us know more information about this migration process?
- What were you using previously? Where was it deployed?
- Did you use the same domain/email to configure that deployment?
- Did you follow this guide to migrate the data? https://docs.bitnami.com/aws/how-to/migrate-wordpress/
One of the biggest issues was our url and email http://{ip_address} and @{ip_address} did not update to https://www.questcoffee.com.au/ and @questcoffee.com.au for all locations.
There is a plugin that modifies the WordPress’ configuration and replaces the required values. Please take a look at it
https://wordpress.org/plugins/better-search-replace/
We are unable to find all locations where this is still broken, but believe some of the issues are related to this.
Can you share an example? I just accessed your site and got redirected properly.
$ curl -LI questcoffee.com.au
HTTP/1.1 302 Found
Date: Mon, 19 Jul 2021 07:41:20 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
Location: https://questcoffee.com.au/
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 301 Moved Permanently
Date: Mon, 19 Jul 2021 07:41:21 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
Location: https://www.questcoffee.com.au/
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 200 OK
Date: Mon, 19 Jul 2021 07:41:22 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
X-Powered-By: PHP/7.4.21
Link: <https://www.questcoffee.com.au/wp-json/>; rel="https://api.w.org/", <https://www.questcoffee.com.au/wp-json/wp/v2/pages/734>; rel="alternate"; type="application/json", <https://www.questcoffee.com.au/>; rel=shortlink
Content-Type: text/html; charset=UTF-8
One of the most significant seems to be HTTP/1.1 302 error generated nearly every second by multiple ip address in our access logs.
A 302 error message means that it’s performing a redirection. Can you share an example of the line in the access_log file here?
I can see you have several IPs with many connections to your site
-----------------------------------
Check performance issues: Count number of requests for the 10 most active IP addresses in the last 100.000 requests
-----------------------------------
Running: tail -n 100000 access_log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10 | awk '{print $1}'
In: /opt/bitnami/apache2/logs/
Output:
1519
1519
1519
1519
1517
1516
1516
1515
1510
1510
Please check if a bot/attacker is accessing your site
https://docs.bitnami.com/aws/apps/wordpress/troubleshooting/deny-connections-bots-apache/
from vms.
Hi,
thank you for your response.
What were you using previously? Where was it deployed?
we were using an older version of the Bitnami stack. 1.5 years old. It was deployed on an EC2 instance in AWS.
Did you use the same domain/email to configure that deployment?
yes and yes
Did you follow this guide to migrate the data?
yes
There
is a plugin that modifies the WordPress’ configuration and replaces the required values. Please take a look at it
https://wordpress.org/plugins/better-search-replace/
^^ thank you. I went through each url instance that was pointing directly to the EC2, and migrated to the domain where appropriate. This solved some issues :slight_smile:
A 302 error message means that it’s performing a redirection. Can you share an example of the line in the access_log file here?
See below examples of logs:
15.177.62.38 - - [26/Jul/2021:06:07:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:07:39 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:08:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:08:39 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:09:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:09:39 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:10:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:10:39 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:11:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:11:39 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:12:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:12:39 +0000] “GET / HTTP/1.1” 302 215
I don’t believe these are attacks, but rather something wrong in the backend. These log files are also consuming memory and space. What might be the cause of this issue?
from vms.
Hi
^^ thank you. I went through each url instance that was pointing directly to the EC2, and migrated to the domain where appropriate. This solved some issues
Perfect! :slight_smile:
15.177.62.38 - - [26/Jul/2021:06:12:09 +0000] “GET / HTTP/1.1” 302 215
15.177.62.38 - - [26/Jul/2021:06:12:39 +0000] “GET / HTTP/1.1” 302 215I don’t believe these are attacks, but rather something wrong in the backend. These log files are also consuming memory and space. What might be the cause of this issue?
As you can see here, those requests are triggered every 30 seconds and I can see that you have this job in the cron config file
# Added by Alex M on 15 July 2021 as per Bitnami instructions
*/5 * * * * su daemon -s /bin/sh -c "cd /opt/bitnami/wordpress; /opt/bitnami/php/bin/php -q wp-cron.php"
Can you confirm if “15.177.62.38” is your IP? Do you have any load balancer or CDN configured? Those redirections are probably caused because the job is using http instead of https
$ curl -LI DOMAIN.com.au
HTTP/1.1 302 Found
Date: Mon, 26 Jul 2021 09:04:21 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
Location: https://DOMAIN.com.au/
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 301 Moved Permanently
Date: Mon, 26 Jul 2021 09:04:22 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
Location: https://www.DOMAIN.com.au/
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 200 OK
Date: Mon, 26 Jul 2021 09:04:22 GMT
Server: Apache/2.4.48 (Unix) OpenSSL/1.1.1d
X-Powered-By: PHP/7.4.21
Link: <https://www.DOMAIN.com.au/wp-json/>; rel="https://api.w.org/", <https://www.DOMAIN.com.au/wp-json/wp/v2/pages/734>; rel="alternate"; type="application/json", <https://www.DOMAIN.com.au/>; rel=shortlink
Content-Type: text/html; charset=UTF-8
from vms.
Hi,
Can
you confirm if “15.177.62.38” is your IP?
This is not my ip address. And is not the ip address of any instances we have.
Do
you have any load balancer or CDN configured?
We have W3 Total Cache CDN configured using AWS Cloudfront.
What do you think are the next steps to diagnose and fix this?
from vms.
Hi,
I can see this IP belongs to AWS
https://www.whatismyip.com/ip-whois-lookup/
There must be a health check somewhere in your configuration that is performing those requests.
from vms.
Related Issues (20)
- [Redmine] The service of Redmine sometimes don't run after starting by automation HOT 3
- [Google Cloud: Bitnami package for WordPress 6.5.2] Faild Restore backup HOT 3
- Graylog, EFK HOT 1
- Website Stopped working # kuwaitvarthakal.com HOT 2
- [<bitnami/vms ALFRESCO>] Error Busqueda en Alfresco HOT 2
- To access the console HOT 1
- [Bitnami package for WordPress] Guest Additions install unsuccessful HOT 5
- Site will not load suddenly, responds with "{"status":401,"message":"No API key provided","request_id":".......} HOT 4
- [Wordpress w/ NGINX & SSL] Local Dev to AWS Wordflow HOT 1
- [ReDash] Data Source of type MySQL is missing into the list. HOT 3
- [WordPress] There has been a critical error on this website. HOT 2
- [LAMP] Custom HTTP 500 Error Page HOT 5
- [<AWS Lightsail LAMP>] <BNCert Fails to create certificate> HOT 1
- [Opencart 4.0.2.3 Bitnami Google Cloud] Admin Cannot login & Bugs HOT 3
- [WordPress] version problem with cron user permissions and WordPress Cron cron job HOT 7
- [Apache Airflow] HOT 1
- Website performance on cPanel on ec2 is slow HOT 1
- [<LAMP>] Multiple websites on one instance HOT 1
- [Bitnami For AWS] Can't Execute Visual Studio ASP.NET Packaged Binary HOT 1
- [Azure package for Supabase] Error no Route matched with those values. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vms.