Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I’m failing on the restart, step 5. Any tips? nginx -t outputs
nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied) 2016/06/05 01:30:39 [warn] 26606#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 2016/06/05 01:30:39 [emerg] 26606#0: BIO_new_file(“/etc/letsencrypt/live/foodservice.io/fullchain.pem”) failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen(‘/etc/letsencrypt/live/foodservice.io/fullchain.pem’,‘r’) error:2006D002:BIO routines:BIO_new_file:system lib) nginx: configuration file /etc/nginx/nginx.conf test failed
Couldn’t generate a certificate and have got a bunch of errors. Can be it caused by the using a $5 Droplet and SWAP?
itamerlanium@discourse:/opt/letsencrypt$ sudo apt-get upgrade
itamerlanium@discourse:/opt/letsencrypt$ ./letsencrypt-auto certonly --standalone --email tamerlanium@gmail.com --agree-tos -d specknz.me
Bootstrapping dependencies for Debian-based OSes...
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages:
Collecting argparse==1.4.0 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 5))
/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 11))
Downloading pycparser-2.14.tar.gz (223kB)
Collecting cffi==1.4.2 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 14))
Downloading cffi-1.4.2.tar.gz (365kB)
Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 31))
Downloading ConfigArgParse-0.10.0.tar.gz
Collecting configobj==5.0.6 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 33))
Downloading configobj-5.0.6.tar.gz
Collecting cryptography==1.2.3 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 35))
Downloading cryptography-1.2.3.tar.gz (373kB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.PsM9vr5gSL/letsencrypt-auto-requirements.txt (line 57))
Downloading enum34-1.1.2.tar.gz (46kB)
Error [Errno 12] Cannot allocate memory while executing command python setup.py egg_info
Exception:
Traceback (most recent call last):
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/commands/install.py", line 299, in run
requirement_set.prepare_files(finder)
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_set.py", line 359, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_set.py", line 590, in _prepare_file
abstract_dist.prep_for_dist()
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_set.py", line 127, in prep_for_dist
self.req_to_install.run_egg_info()
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/req/req_install.py", line 440, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/utils/__init__.py", line 677, in call_subprocess
cwd=cwd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1223, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
/home/itamerlanium/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
You are using pip version 8.0.3, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
itamerlanium@discourse:/opt/letsencrypt$
itamerlanium@discourse:/opt/letsencrypt$ sudo service nginx restart
* Restarting nginx nginx [fail]
Hi dears, unfortunately, my website http://specknz.me/ which is based on Discourse, doesn’t loaded and I don’t really know what has caused it. I’ve got a message through a support ticket:
"Sorry to hear that you are experiencing issues with this. After reviewing this I can see that your Droplet is online and listening for http traffic. In fact when you browser to your public IP it is attempting to resolve content from your web server. It seems that once it does resolve it is resolving to a blank screen. This is typically an indicator that there was a error related to the web application.
For more information on how to resolve this issue you will want to review your nginx error and access logs. These are typically located here:
/var/log/nginx/access.log /var/log/nginx/error.log "
Then I’ve been checking these folders and they don’t exist for any reason.
root@discourse:~# cd /var/log/nginx/access.log
-su: cd: /var/log/nginx/access.log: Not a directory
root@discourse:~# cd var/log
-su: cd: var/log: No such file or directory
root@discourse:~# sudo service nginx restart
* Restarting nginx nginx [fail]
I think the proxy_redirect should have a trailing slash on the destination URL. I was having problems with malformed URLs until I added that.
I followed the tutorial, but when I signup a new account, the site doesn’t respond as it opens > “https://meta.website.com:25654/…” , The user however gets registered. Its not redirecting properly. Any solution?
I had to comment out the default HTTPS port in app.yml to get this to work:
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
- "3777:80" # http
# - "443:443" # https
Otherwise, it would try to start app and listen on 443, which was already in use by nginx.
It’s all working now - any reason I should feel wary about this fix?
This comment has been deleted
One of our users reported the following:
There is a missing / in the config on the proxy_redirect line:
Line should be:
proxy_redirect ...discourse.example.com/;Just find the proxy_redirect line and add a / before ;
Attempting to run the certificate creation I get the following:
Requesting root privileges to run certbot...
/home/rook/.local/share/letsencrypt/bin/letsencrypt certonly --standalone --email guy.default@eryri.org --agree-tos -d forum.eryri.org
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for forum.eryri.org
Cleaning up challenges
Problem binding to port 443: Could not bind to IPv4 or IPv6.
I have commented out the ssl_certificate and ssl_certificate_key lines, but still have this issue, whether nginx is started or stopped. Can you give any clarification on what might be going wrong?
you should add to this tutorial a couple things:
1.> you’ll want to add proxy headers to your nginx config so that discourse reports the correct IP last seen (else you get 127.0.0.1):
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2.> in the section with the proxy redirect, you need to add a trailing slash, else some pages in discourse produce or try navigating to an errant URL. it should appear as such:
proxy_redirect http://<domain>:<port>/ https://<domain>/;
that is all.