Using the SSH interface and following the instruction to install and rune tje bndiagnostic tool, the server won't let me

Type: Bitnami Support Tool

Description:
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo /opt/bitnami/bndiagnostic-tool
sudo: /opt/bitnami/bndiagnostic-tool: command not found
bitnami@ip-172-26-12-3:/opt/bitnami$ wget -O bndiagnostic-linux-x64.run https://download
s.bitnami.com/files/bndiagnostic/latest/bndiagnostic-linux-x64.run
bndiagnostic-linux-x64.run: Permission denied
bitnami@ip-172-26-12-3:/opt/bitnami$
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo mkdir /opt/bitnami/bndiagnostic
bitnami@ip-172-26-12-3:/opt/bitnami$
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo mv bndiagnostic-linux-x64.run /opt/bitnami/bnd
iagnostic/
mv: cannot stat ‘bndiagnostic-linux-x64.run’: No such file or directory
bitnami@ip-172-26-12-3:/opt/bitnami$
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo chmod +x /opt/bitnami/bndiagnostic/bndiagnosti
c-linux-x64.run
chmod: cannot access ‘/opt/bitnami/bndiagnostic/bndiagnostic-linux-x64.run’: No such fil
e or directory
bitnami@ip-172-26-12-3:/opt/bitnami$
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo ln -s /opt/bitnami/bndiagnostic/bndiagnostic-l
inux-x64.run /opt/bitnami/bndiagnostic-tool
bitnami@ip-172-26-12-3:/opt/bitnami$ sudo /opt/bitnami/bndiagnostic-tool
sudo: /opt/bitnami/bndiagnostic-tool: command not found
bitnami@ip-172-26-12-3:/opt/bitnami$

Hi @dromadairemauve,

Could you please change directories to the /tmp directory and run the commands

cd /tmp
wget -O bndiagnostic-linux-x64.run https://downloads.bitnami.com/files/bndiagnostic/latest/bndiagnostic-linux-x64.run
sudo mkdir /opt/bitnami/bndiagnostic
sudo mv bndiagnostic-linux-x64.run /opt/bitnami/bndiagnostic/
sudo chmod +x /opt/bitnami/bndiagnostic/bndiagnostic-linux-x64.run
sudo ln -s /opt/bitnami/bndiagnostic/bndiagnostic-linux-x64.run /opt/bitnami/bndiagnostic-tool
sudo /opt/bitnami/bndiagnostic-tool

Once you get the code, please create a new ticket in the forum and provide as much information as possible regarding the issue you are running into.

Thank you! I’ve run the Diagnostic tool but it couldnt upload it automaticly to the bitnami servers. Where do I send the link to the zip file?

The diagnostic bundle file was successfully created, but the automatic upload to Bitnami
servers failed. You will need to upload it to your Bitnami Support ticket manually. Ple
ase locate the following file in your file browser or in your terminal: /tmp/bitnami-wor
dpress-info-20211118-175910-10265.zip Exercise caution when uploading the resulting diag
nostic bundle to public sites as it contains detailed diagnostic information.bitnami@ip-
172-26-12-3:

Hi @dromadairemauve,

Could you upload the generated zip file to a storage service like Google Drive and share the link in a private message? (Just click on my profile and then on “Message”) After that, could you update this thread, so I will get notified?

Regards,
Michiel

Hi @michiel. I got the google drive link.

But I don’t see the option tto message you directly when I click on your profile. I tried to write directly to you through the message panel, but it says I don’t have the permission to do so. Is there is something missing on my part?

Hi @dromadairemauve,

Let’s see if running the tool after stopping the services make the upload process work.

sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/bndiagnostic-tool
sudo /opt/bitnami/ctlscript.sh start

If that doesn’t work, please run these other commands and post the info here

ping -c 3 8.8.8.8
df -H
free -m

I also sent you a private message to share the Google Drive link in case the upload doesn’t work

Hi @jota . I’ve runned your code with success. It works! I got the diagnostic tool code and a lot of « issues » that I should work on. I’ll produce a new support ticket for my initial problem (don’t have the permission to install and update wordpress plugins).

Thank you again,
-Dromadaire

The bndiagnostic tool has finished searching for errors and has found some
issues that might be related to yours. The output will be shown on the next
page:

Press [Enter] to continue:

===== Begin of bndiagnostic tool output =====

? Apache: Found possible issues
? Connectivity: Found possible issues
? Resources: Found possible issues
✓ Mysql: No issues found
? Processes: Found possible issues
✓ Php: No issues found

[Apache]

Found recent Pagespeed related error messages in the Apache error log:

[Mon Nov 22 18:17:25.199021 2021] [pagespeed:error] [pid 15524:tid 
140146963658496] [mod_pagespeed **ip_address**-0 @15524] Failed to mkdir 
/opt/bitnami/apache2/var/cache/mod_pagespeed/!clean!lock!: Permission denied

We suggest disabling pagespeed and check if that improves the behavior. Please
Press [Enter] to continue:
check the following guide to disable Pagespeed:

https://docs.bitnami.com/general/apps/wordpress/administration/use-pagespe
ed/#disable-pagespeed

A high number of incoming requests originate from one or more unique IP
addresses. This could indicate a bot attack. The following guide shows how to
check for and block suspicious IP addresses.

[Connectivity]

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:

[Resources]

Your instance has little available RAM memory.
total used free shared buff/cache available Mem: 482 310 8 2 163 156 Swap: 634
40 593

You could try to increase your instance's memory. Please check your cloud 
provider's documentation for more information.

[Processes]

One or more component's processes are not running:

php-fpm not running apache not running mysql not running

You can try to restart the process with the following command:
 
 $ sudo /opt/bitnami/ctlscript.sh start COMPONENT_NAME
 

===== End of bndiagnostic tool output =====

Press [Enter] to continue:
The files listed below are bigger than 10MB and have not been included, please notify th
e support agent.

/opt/bitnami/apache2/logs/error_log

The diagnostic bundle was uploaded successfully to the Bitnami servers. Please copy the 
following code:

63117c71-5838-afa5-f78c-be9487442443

And paste it in your Bitnami Support ticket.