digital-ocean

Error 502 Bad Gateway on NGINX + rails + dokku

故事扮演 提交于 2019-12-06 03:48:12
I am receiving an Error 502 after deploying my Ruby on Rails app to a Dokku droplet on Digital Ocean. The app builds and deploys to Heroku just fine, as well as locally. Checking the NGINX logs, I see the following: 2014/01/10 01:56:32 [error] 2376#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: <my.ip.add.ress>, server: app.campbellscoop.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:49153/", host: "app.campbellscoop.com" What could be causing this error? You can check the errors by running dokku logs appname in the ssh. i think it's problem

DigitalOcean pod has unbound immediate PersistentVolumeClaims

最后都变了- 提交于 2019-12-06 01:07:31
问题 I am trying to run a Redis cluster in Kubernetes in DigitalOcean. As a poc, I simply tried running an example I found online (https://github.com/sanderploegsma/redis-cluster/blob/master/redis-cluster.yml), which is able to spin up the pods appropriately when running locally using minikube. However, when running it on Digital Ocean, I always get the following error: Warning FailedScheduling 3s (x8 over 17s) default-scheduler pod has unbound immediate PersistentVolumeClaims (repeated 4 times)

How to setup routes with Express and NGINX?

房东的猫 提交于 2019-12-05 19:31:27
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(req, res) { res.send('API PAGE'); }); This is my NGINX Config file: server { listen 80 default_server;

SMTP Mandrill Port 587 Connection Timed out

瘦欲@ 提交于 2019-12-05 15:34:15
I have an app that send some notification e-mails for myself using Mandrillapp's SMTP server. It works fine on my localhost/development, but in DigitalOcean's Droplet I get an PHP exception telling me that the connection have timed out. Using Netcat I would be able to confirm this: nc: connect to smtp.mandrillapp.com port 587 (tcp) failed: Connection timed out It's possible to have this working on DigitalOcean or I need to do something else to send e-mails? Thank you! Droplet: Ubuntu 14.04 (LAMP Stack) In order to curb spam and abuse, some new user accounts at DigitalOcean have their SMTP

“We're sorry, but something went wrong” : rails + nginx + puma + digitalocean + ssl

杀马特。学长 韩版系。学妹 提交于 2019-12-05 13:52:31
I just successfully configured ssl on my rails app on the production server, but now, when I try to access the site I got "We're sorry, but something went wrong." error: If I disable ssl by not using any ssl setting, my Rails app will run just fine. It's only when I use the ssl setting, that I will have this problem. Which suggest that there is nothing wrong with my Rails code or something. I already checked these logs files : " production.log puma.access.log puma.error.log " but there are nothing there except for : === puma startup: 2017-02-08 21:18:32 +0000 === * Listening on unix:///home

UFW firewall is not working on Ubuntu in DigitalOcean

蹲街弑〆低调 提交于 2019-12-05 05:27:00
问题 In my DigitalOcean (DO) droplet I installed this image: Ubuntu Docker 17.12.0~ce on 16.04 (which is available on ** DO website > droplet> destroy> rebuild droplet**) , in ssh (after user configuration), I run sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw enable sudo ufw status verbose and get: Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), allow (routed) New profiles: skip To Action From -- ------ ---- 22 LIMIT IN Anywhere 2375/tcp ALLOW

Python - Node.js (V8) runtime is not available on this system

老子叫甜甜 提交于 2019-12-05 02:21:59
I'm getting the following error when trying to use ExecJS: execjs.RuntimeUnavailable: Node.js (V8) runtime is not available on this system I have node.js installed on my machine (Ubuntu 14.04). Which Node outputs /usr/bin/node Any ideas? kmandov Have you seen this similar issue They resolve the problem by linking node under /usr/local/bin/node ln -s /usr/local/bin/node /usr/bin/node Hamza Tahboub Hello I've had the same issue before and this solved it: Node.js not found by Rails / execjs PS: if this solves you issue mark my answer as correct! :P When you are trying to use ExecJS, what user are

Meteor app deployed to Digital Ocean stuck at 100% CPU and OOM

大城市里の小女人 提交于 2019-12-04 23:57:48
I have a Meteor (0.8.0) app deployed using Meteor Up to Digital Ocean that's been stuck at 100% CPU, only to crash with out of memory, and start up again at 100% CPU. It's been stuck like this for the past 24 hours. The weird part is nobody is using the server and meteor.log isn't showing much clues. I've got MongoHQ with oplog for the database. Digital Ocean specs: 1GB Ram 30GB SSD Disk New York 2 Ubuntu 12.04.3 x64 Screenshot showing issue: Note that the screenshot was captured yesterday and it has stayed pegged at 100% cpu until it crashes with out of memory. The log shows: FATAL ERROR:

openjdk: how to add site to exception list

半世苍凉 提交于 2019-12-04 22:40:04
I would like to run an applet on my server and currently it is being blocked by Java security. On my development machine I was able to open control panel and to add a site to the exception list but now on my production server I don't have connected display. Is there any conf file I could use? I don't mind moving to different JAVA vendor. Thanks You can add your sites at this file; ${user.home}/.java/deployment/security/exception.sites Every url should be in separate line. To log/trace you should add into your deployment properties ${user.home}/.java/deployment/deployment.properties deployment

How to start faye server on a rails app deployed using dokku?

半城伤御伤魂 提交于 2019-12-04 19:45:32
I've hosted my rails application on Digitalocean using Dokku. There's this need for my application to run real-time applications through Faye. I've been trying several ways like the shoreman plugin for Dokku and adding faye: bundle exec rackup faye.ru -s thin -E production to "Procfile" file. But no luck till now, need help on how I can get this Faye server running for my app. You need to make several steps to have working faye server (e.g. on port 9292): Your Procfile is OK Expose port 9292 on Docker. I recommend install docker-options plugin and next dokku docker-options:add timer "-p 9292