digital-ocean

Django: 400 Error with Debug=False and ALLOWED_HOSTS=[“*”]

ⅰ亾dé卋堺 提交于 2020-01-04 02:15:09
问题 I'm trying to run a relatively simple Django server on Python 3.5.3 on an Ubuntu DigitalOcean droplet. I'm using a Gunicorn server with nginx. The server runs fine when DEBUG=True in settings.py . But when I set it to False , I get a 400 error when trying to visit the page. I tried setting ALLOWED_HOSTS = ['*'] , but I still get the same error. I've looked on a lot of forums and many questions on SO but none of the solutions have worked. EDIT Gunicorn logs from startup: [2016-09-13 00:02:01

Still getting 413 Request Entity Too Large even after client_max_body_size 100M

橙三吉。 提交于 2020-01-02 02:44:09
问题 I'm using Rails and Nginx on Digital ocean and I've been trying to upload a 17.6 MB file and I'm still getting 413 Request Entity Too Large even after setting client_max_body_size 100M in my /etc/nginx/nginx.conf file. Here's the snippet from the file: http { ## # Basic Settings ## client_max_body_size 100M; sendfile on; tcp_nopush on; ... } After setting this I've used sudo service nginx reload . When that didn't work I've even done a full reboot using sudo shutdown -r now and then cap

How to setup routes with Express and NGINX?

左心房为你撑大大i 提交于 2020-01-01 11:57:49
问题 I'm trying to configure an Express server with NGINX as a reverse proxy. NGINX to serve static files, and Express for the dynamic content. Problem : The normal root link works (website.com) , but when I navigate to (website.com/api), I get a 404 from NGINX This is my server.js : var express = require("express"); var app = express(); var server = app.listen(process.env.PORT || 5000); console.log("Server Running"); app.get("/",function(req,res){res.send("HOME PAGE")}); app.get("/api", function

Access node app on digital ocean - This site can't be reached

感情迁移 提交于 2020-01-01 04:46:09
问题 I am unable to access my digital ocean node js app. I've already SSH'ed in, cloned my Node app from Git, npm installed, and successfully started the app on the droplet, yet I get error This site can't be reached Digital Ocean docs say you can access your publicly facing website simply by going to <your website's ip>:<port> : I did this by going to 67.205.185.63:9000/ (my app is running on port 9000 as you can see): root@nodejs-512mb-nyc1-01:~/demos# npm start live-demos@1.0.0 start /root

Ubuntu - nodejs - npm install -g > Error: EACCES: permission denied, mkdir

混江龙づ霸主 提交于 2019-12-31 21:09:07
问题 Was having a issue installing a NodeJS npm package. On a Digital-Ocean Droplet Ubuntu (14.04) server. npm install -g PACKAGE-NAME I even tried with sudo had the same error. Error message: Error: EACCES: permission denied, mkdir '.....etc' 回答1: Hope this helps someone took me a while to find a way to get this to install. sudo npm install -g PACKAGE-NAME --unsafe-perm=true --allow-root What the flags do: unsafe-perm - https://docs.npmjs.com/misc/config#unsafe-perm Default: false if running as

Digital ocean kubernetes cluster connection error

早过忘川 提交于 2019-12-31 05:07:57
问题 I have created kubernetes cluster on digital ocean having 1 worker node and one master node. As per digital ocean guide line i followed step and download kubernetes cluster config file kubectl --kubeconfig="filename.yaml" get nodes but it is showing Unable to connect to the server: unexpected EOF While Kubernetes cluster is Up and Running 回答1: Please make sure you are using right config yaml file otherwise try to destroy and create fresh Kubernetes cluster on Digital Ocean and try again. It

Unable to access Webmin through browser

坚强是说给别人听的谎言 提交于 2019-12-29 18:47:07
问题 I followed DigitalOcean's tutorials on how to set up your server with SSH, creating a new user, firewalls etc. The first tutorial in the series is linked under: https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh I've also installed Webmin on my server, but I still can't get a connection to the server by using the web-browser. It just loads for a long time and then says it can't establish a connection. The URL's I've been using are: "Just-my-IP-adress" and

Unable to access Webmin through browser

怎甘沉沦 提交于 2019-12-29 18:47:05
问题 I followed DigitalOcean's tutorials on how to set up your server with SSH, creating a new user, firewalls etc. The first tutorial in the series is linked under: https://www.digitalocean.com/community/tutorials/how-to-connect-to-your-droplet-with-ssh I've also installed Webmin on my server, but I still can't get a connection to the server by using the web-browser. It just loads for a long time and then says it can't establish a connection. The URL's I've been using are: "Just-my-IP-adress" and

Wordpress: An error occurred in nginx

拥有回忆 提交于 2019-12-25 20:03:05
问题 I launched a wordpress website on DigitalOcean, installed wordpress using this tutorial here! Next day my wordpress site was down and I got the below error. "An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check the error log for details. Faithfully yours, nginx." If i restart php5-fpm , it works for few minutes and after I am getting the same error page. I searched

Connection to MongoDB with SSH in my Node App

狂风中的少年 提交于 2019-12-25 16:56:28
问题 My DB is with DigitalOcean and I'm trying to connect to it in my node app. I've found a npm called tunnel-ssh however am having trouble connecting to it. My code is below. It says DB connection successful, however when i do a console.log(mongoose) it shows the host and host as null. If I do console.log(mongoose) , after the console.log("DB connection successful"); then it shows me the host. var tunnel = require('tunnel-ssh'); var config = { agent : 'myuser', host: 'xxx:xxx:xxx:xxx' agent :