Admin user+password not in EC2 syslog

Keywords: WordPress Multisite - AWS - Technical issue - Credentials

bnsupport ID: 0a6e6016-9fc7-1828-6a81-3281faaf46d9

bndiagnostic output:

? Connectivity: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/faq/administration/use-firewall/

bndiagnostic failure reason: The suggested guides are not related with my issue

Description:
I just created an AWS EC2 instance using Bitnami multisite AMI (https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/install). However there was no application user and password recorded in syslog as indicated in this page: https://docs.bitnami.com/aws/get-started-console/.

there is a ref to a credentials file in /opt/bitnami/ecripts/init in syslog. But the env variable $application_password mentioned there is unset. And I cannot access either WP or MariaDB as ‘user’ with no password. And I am hesitant to arbitrarily set $application_password.

Any idea how I can recover these credentials?

Here is the relevant snippet from syslog (SSH references removed):

[   11.951113] bitnami[558]: ## 2021-08-22 13:44:46+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/010_resize_fs...
[   11.976492] bitnami[558]: resize2fs 1.44.5 (15-Dec-2018)
[   12.000766] bitnami[558]: resize2fs: Device or resource busy while trying to open /dev/xvda
[   12.028481] bitnami[558]: Couldn't find valid filesystem superblock.
[   12.044727] bitnami[558]: ## 2021-08-22 13:44:46+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/020_hostname...
[   12.075050] bitnami[558]: ## 2021-08-22 13:44:46+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/030_swap_file...
[   13.161094] cloud-init[557]: Cloud-init v. 20.2 running 'modules:config' at Sun, 22 Aug 2021 13:44:47 +0000. Up 12.01 seconds.
[e[0;32m  OK  e[0m] Started e[0;1;39mApply the settings specified in cloud-confige[0m.
[   19.490748] bitnami[558]: 650000+0 records in
[   19.495043] bitnami[558]: 650000+0 records out
[   19.499676] bitnami[558]: 665600000 bytes (666 MB, 635 MiB) copied, 8.15824 s, 81.6 MB/s
[   22.303741] bitnami[558]: Setting up swapspace version 1, size = 634.8 MiB (665595904 bytes)
[   22.310283] bitnami[558]: no label, UUID=ad3beef2-e1ba-432f-9c57-cc87c245ade8
[   22.280291] Adding 649996k swap on /mnt/.bitnami.swap.  Priority:-2 extents:5 across:854796k SSFS
[   22.339570] bitnami[558]: ## 2021-08-22 13:44:58+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/040_check_if_demo_machine...
[   23.000939] bitnami[558]: ## 2021-08-22 13:44:58+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/050_change_boot_log_permissions...
[   23.013179] bitnami[558]: ## 2021-08-22 13:44:58+00:00 ## INFO ## Running /opt/bitnami/var/init/pre-start/060_get_default_passwords...
[   23.180189] bitnami[558]: ## 2021-08-22 13:44:58+00:00 ## INFO ## Starting services...
[   26.343146] bitnami[558]: 2021-08-22T13:45:02.100Z - info: Saving configuration info to disk
[   27.455813] bitnami[558]: 2021-08-22T13:45:03.214Z - info: Data disk not present
[   27.472706] bitnami[558]: 2021-08-22T13:45:03.228Z - info: Performing service start operation for php
[   32.798408] bitnami[558]: e[38;5;6mphp e[38;5;5m13:45:08.55 e[0me[38;5;2mINFO e[0m ==> php-fpm started
[   32.820493] bitnami[558]: 2021-08-22T13:45:08.562Z - info: Performing service start operation for apache
[   38.732359] bitnami[558]: e[38;5;6mapache e[38;5;5m13:45:14.48 e[0me[38;5;2mINFO e[0m ==> apache started
[   38.754156] bitnami[558]: 2021-08-22T13:45:14.490Z - info: Skipping service start operation for varnish
[   38.784749] bitnami[558]: 2021-08-22T13:45:14.490Z - info: Performing service start operation for mariadb
[   43.976937] bitnami[558]: e[38;5;6mmariadb e[38;5;5m13:45:19.73 e[0me[38;5;2mINFO e[0m ==> mariadb started
[   59.731718] bitnami[558]: e[38;5;6mwordpress e[38;5;5m13:45:19.99 e[0me[38;5;2mINFO e[0m ==> Retrieving current WordPress multisite hostname/domain
[   59.743555] bitnami[558]: e[38;5;6mwordpress e[38;5;5m13:45:21.47 e[0me[38;5;2mINFO e[0m ==> Updating hostname/domain for WordPress Multisite
[   59.755537] bitnami[558]: e[38;5;6mwordpress e[38;5;5m13:45:25.46 e[0me[38;5;2mINFO e[0m ==> ** Reloading PHP-FPM configuration **
[   59.766568] bitnami[558]: 2021-08-22T13:45:35.500Z - info: Starting gonit monitoring service
[   62.306645] bitnami[558]: 2021-08-22T13:45:38.063Z - info: Start monitoring all services from gonit
[   62.369399] bitnami[558]: ## 2021-08-22 13:45:38+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/010_bitnami_agent_extra...
[   62.419026] bitnami[558]: ## 2021-08-22 13:45:38+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/020_bitnami_agent...
[e[0;32m  OK  e[0m] Created slice e[0;1;39mUser Slice of UID 1000e[0m.
         Starting e[0;1;39mUser Runtime Directory /run/user/1000e[0m...
[e[0;32m  OK  e[0m] Started e[0;1;39mUser Runtime Directory /run/user/1000e[0m.
         Starting e[0;1;39mUser Manager for UID 1000e[0m...
[e[0;32m  OK  e[0m] Started e[0;1;39mUser Manager for UID 1000e[0m.
[e[0;32m  OK  e[0m] Started e[0;1;39mSession c1 of user bitnamie[0m.
[   63.349360] bitnami[558]: ## 2021-08-22 13:45:39+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/030_update_welcome_file...
[   63.363009] bitnami[558]: ## 2021-08-22 13:45:39+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/040_bitnami_credentials_file...
[   63.383943] bitnami[558]: ## 2021-08-22 13:45:39+00:00 ## INFO ## Running /opt/bitnami/var/init/post-start/050_clean_metadata...
[e[0;32m  OK  e[0m] Started e[0;1;39mLSB: bitnami init scripte[0m.
[e[0;32m  OK  e[0m] Reached target e[0;1;39mMulti-User Systeme[0m.
[e[0;32m  OK  e[0m] Reached target e[0;1;39mGraphical Interfacee[0m.
         Starting e[0;1;39mUpdate UTMP about System Runlevel Changese[0m...
         Starting e[0;1;39mExecute cloud user/final scriptse[0m...
[e[0;32m  OK  e[0m] Started e[0;1;39mUpdate UTMP about System Runlevel Changese[0m.
ci-info: ++++++++++++++++++++++++++++Authorized keys from /home/bitnami/.ssh/authorized_keys for user bitnami+++++++++++++++++++++++++++++
<REMOVED>
<14>Aug 22 13:45:39 ec2:
<14>Aug 22 13:45:39 ec2: #############################################################
<14>Aug 22 13:45:39 ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
                                      <REMOVED>
<14>Aug 22 13:45:39 ec2: -----END SSH HOST KEY FINGERPRINTS-----
<14>Aug 22 13:45:39 ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
<REMOVED>
-----END SSH HOST KEY KEYS-----
[   64.213605] cloud-init[1589]: Cloud-init v. 20.2 running 'modules:final' at Sun, 22 Aug 2021 13:45:39 +0000. Up 63.95 seconds.
[   64.225315] cloud-init[1589]: Cloud-init v. 20.2 finished at Sun, 22 Aug 2021 13:45:39 +0000. Datasource DataSourceEc2Local.  Up 64.20 seconds
[e[0;32m  OK  e[0m] Started e[0;1;39mExecute cloud user/final scriptse[0m.
[e[0;32m  OK  e[0m] Reached target e[0;1;39mCloud-init targete[0m.

Update/resolution: luckily the bundle already includes an operational multisite. I got the db access info from /bitnami/wordpress/wp-config.php and then updated the password for ‘user’ directly in the database using an md-5 hash value. Hopefully Bitnami will be able to update the help page if the config has changed.

Hi @shargh11,

I’m glad to hear that you managed to change the WordPress’ password. Just for the record, if the password is not shown in the syslog file, you can also obtain it by running this command that we show in our documentation

https://docs.bitnami.com/aws/faq/get-started/find-credentials/#option-2-find-credentials-by-connecting-to-your-application-through-ssh

sudo cat /home/bitnami/bitnami_credentials

Let us know if you find that file in your instance. You already changed the password so the password that is inside the file is not valid anymore.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.