Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after manually running activate-ssl.sh #27

Closed
johnczer opened this issue May 27, 2018 · 1 comment
Closed

Errors after manually running activate-ssl.sh #27

johnczer opened this issue May 27, 2018 · 1 comment

Comments

@johnczer
Copy link

I had to manually run activate-ssl.sh after it failed to generate cert during install of latest Wordpress Pre-configured VM released 5/27/18. When I ran it I received the following errors after first running activate-ssl.sh (which appeared to generate cert) and I also had to re-run test-new-config.sh which generated errors as well:

We will now test that everything is OK
Press any key to continue...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
Couldn't load new config, reverted to old settings. Self-signed SSL is OK!
Press any key to continue...
Sorry but something went wrong. Please report this issue to https://github.com/techandme/wordpress-vm/issues and include the output of the error message. Thank you!
bash /var/scripts/test-new-config.sh rsa-systems.org.conf failed
wordpress@wordpress:$ sudo /var/scripts/activate-ssl.sh
Are you sure you want to continue? ([y]es or [N]o): n
wordpress@wordpress:
$ bash /var/scripts/test-new-config.sh
We will now test that everything is OK
Press any key to continue...
ln: failed to create symbolic link '/etc/nginx/sites-enabled/sites-available': Permission denied
rm: cannot remove '/etc/nginx/sites-enabled/wordpress_port_80.conf': Permission denied
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'nginx.service'.
Authenticating as: wordpress,,, (wordpress)
Password:
==== AUTHENTICATION COMPLETE ===
New settings works! SSL is now activated and OK!

This cert will expire in 90 days, so you have to renew it.
There are several ways of doing so, here are some tips and tricks: https://goo.gl/c1JHR0
This script will add a renew cronjob to get you started, edit it by typing:
'crontab -u root -e'
Feel free to contribute to this project: https://goo.gl/3fQD65
Press any key to continue...
must be privileged to use -u
must be privileged to use -u
grep: /etc/nginx/sites-enabled/: Is a directory
Setting hostname to ...
sed: couldn't open temporary file /etc/sedpefeF8: Permission denied
/var/scripts/test-new-config.sh: line 46: /var/scripts/letsencryptrenew.sh: Permission denied
chmod: cannot access '/var/scripts/letsencryptrenew.sh': No such file or directory
rm: remove write-protected regular file '/var/scripts/test-new-config.sh'?

@enoch85 enoch85 added the bug label May 28, 2018
@enoch85
Copy link
Member

enoch85 commented Aug 20, 2018

You must run it as root, or with sudo (which is the same thing in Ubuntu kind of)

@enoch85 enoch85 closed this as completed Sep 19, 2018
@enoch85 enoch85 removed the bug label Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants