Cannot start apache service after increasing storage using Lightsail

Keywords: WordPress - AWS - Technical issue - Other
bnsupport ID: 166a6e4f-daa8-7f8c-5817-5ae55acc278b
Description:
My lightsail / bitnami / wordpress instance ran out of storage. I used the following guide to increase/add storage on a Wordpress Lightsail instance.
https://docs.bitnami.com/aws/how-to/modify-ebs-volume/

As I understand it, I just move everything over to the bigger volume. I took the step to move everything over from /opt/ to /data/, but I think this may have caused an issue with filepaths/certificates now being out of sync and ctlscript.sh can no longer start, giving the error ‘httpd could not be started’.

Is this a common issue, and what steps should I take to debug/fix the filepaths? Thanks

Bitnami support code: 166a6e4f-daa8-7f8c-5817-5ae55acc278b

Hi @lkl

Thanks for using Bitnami WordPress!

As I understand it, I just move everything over to the bigger volume. I took the step to move everything over from /opt/ to /data/, but I think this may have caused an issue

In order to do that, have you followed this specific part of the documentation?

https://docs.bitnami.com/aws/how-to/modify-ebs-volume/#step-4-move-the-bitnami-application-to-the-new-storage-volume

but I think this may have caused an issue with filepaths/certificates now being out of sync

Yes, it seems like your SSL certificate symlinks are out of sync with the original ones. Can you please execute the following commands to verify that everything’s in place?

$ sudo ls -la /opt/bitnami/apache2/conf/server.crt
$ sudo ls -L -la /opt/bitnami/apache2/conf/server.crt
$ sudo ls -la /opt/bitnami/apache2/conf/server.key
$ sudo ls -L -la /opt/bitnami/apache2/conf/server.key
$ sudo ls -la /etc/lego/certificates/XXXXXXXlab.co.uk.crt
$ sudo ls -la /etc/lego/certificates/XXXXXXXlab.co.uk.key

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart:

To be the worst kind of Q&A for those in the future looking up this problem.

It kind of …fixed itself…

I just checked again (the next day) and it was working fine. Is there a ‘cooling down’ period or something?

Everything is in the right place as mentioned in the commands above (thanks for the help though Jose)

I am glad to hear that you fixed your problem!

Is there a ‘cooling down’ period or something?

There shouldn’t be any ‘cooling down’ period AFAIK :slightly_smiling_face:

Everything is in the right place as mentioned in the commands above (thanks for the help though Jose)

My pleasure! We are marking the previous answer as “Solution” and this topic as “Closed”.

If you have any other questions, please do not hesitate to let us know. Feel free to create a new topic referencing this one if necessary.

Best regards,
Jose Antonio Carmona


Was my answer helpful? Click on :heart: