Questions tagged [digital-ocean]

DigitalOcean is a provider of cloud infrastructure and services. ONLY PROGRAMMING QUESTIONS ARE ON-TOPIC (e.g. questions about programming for the DigitalOcean API). Questions about DigitalOcean the company, administrating systems, customer service based question, etc. are off-topic for Stack Overflow.

DigitalOcean is an American cloud computing provider based in New York City.

The company leases capacity from existing data centers, including sites in New York, Amsterdam, San Francisco, London, Singapore, Frankfurt, Toronto, and Sydney. DigitalOcean allows users to quickly create virtual private servers, called "droplets" (), Kubernetes clusters (), and serverless Functions ().

DigitalOcean is highly accessible to students through the Github Student Education Pack. The company also publishes community tutorials on a variety of open source technologies.

Useful Links

3938 questions
15
votes
2 answers

DigitalOcean pod has unbound immediate PersistentVolumeClaims

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…
user3162649
  • 243
  • 1
  • 2
  • 11
15
votes
3 answers

UFW firewall is not working on Ubuntu in DigitalOcean

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…
Kamil Kiełczewski
  • 85,173
  • 29
  • 368
  • 345
15
votes
3 answers

How can I copy and paste into console in digital ocean?

The console in the digital ocean like this : I try to copy and paste my username and password, but it does not work I try ctrl+v and right click on the mouse. It does not work How can I do it?
moses toh
  • 12,344
  • 71
  • 243
  • 443
15
votes
1 answer

invalid parameter server_name in /etc/nginx/sites-enabled/django

I've deployed a Django application on DigitalOcean. First off, when i try to secure this with https and ssl, I get this error. when i run nginx -t : nginx: [emerg] invalid parameter "server_name" in /etc/nginx/sites-enabled/django:12 nginx:…
baconSoda
  • 503
  • 2
  • 5
  • 15
15
votes
4 answers

django.db.utils.OperationalError: FATAL: role "django" does not exist

I followed this tutorial on Digital Ocean to install PostgreSQL 9.5 on an Ubuntu 16.04 server to use with Django 1.10. Everything went smoothly, but I can't get my Django app to connect to the database (or so it seems). App and database are on the…
Mathieu Dhondt
  • 8,405
  • 5
  • 37
  • 58
14
votes
2 answers

FastAPI - (psycopg2.OperationalError) server closed the connection unexpectedly

I have a web app built with FastAPI and SQLAlchemy and it works OK locally with Docker but the db query fails with an error on DigitalOcean with hosted Postgres DB: (psycopg2.OperationalError) server closed the connection unexpectedly\n\tThis…
Max
  • 404
  • 2
  • 17
  • 39
14
votes
3 answers

Fastify not working on Docker / Kubernetes

I have very simple app that returns "Hello World" string, it works fine locally. As you will see from app code below it runs on port 4000. When I create docker image and run a container, I can't access it from localhost:4000 on my machine, but I can…
Ilja
  • 44,142
  • 92
  • 275
  • 498
14
votes
1 answer

Deploy docker container to digital ocean droplet from gitlab-ci

So here is what I want to do. Push to master in git Have gitlab-ci hear that push an start a pipeline The pipeline builds code and pushes a docker container to the gitlab registry The pipeline logs into a digital ocean droplet via ssh The pipeline…
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
14
votes
3 answers

How to set System Wide Environment Variable in Cloud Config File on Digital Ocean

I am pretty new to setting up remote servers, but I was playing around today and was hoping that I could leverage a Cloud Config file upon setup in order to set a few environment variables as the server spins up. How can I set my environment…
Btibert3
  • 38,798
  • 44
  • 129
  • 168
14
votes
1 answer

Nginx with Ubuntu and Rails on Digital Ocean

I am trying to get nginx to work with a rails app, but nginx wont start after installation and changing its config file. Here is the output its giving me: nginx: [emerg] could not build the types_hash, you should increase either types_hash_max_size:…
Cool Guy Yo
  • 5,910
  • 14
  • 59
  • 89
13
votes
1 answer

Kubernetes Ingress Controller without Load Balancer

Is it possible to use the Ingress Controller function in Kubernetes without a load balancer (in Digital Ocean). Is there any other mechanism to allow a domain name to map to a Kubernetes service; for instance if I host two WordPress sites on a…
Rutnet
  • 1,533
  • 5
  • 26
  • 48
13
votes
1 answer

SSH Permission denied (publickey) DigitalOcean Ubuntu

I can't seem to log in to my droplet on digitalocean. When I try ssh root@162.243.123.123 I get a Permission denied (publickey). I tried resetting the root password and logging in via the digitalocean droplet console, but it won't take the root…
Corey
  • 835
  • 1
  • 9
  • 32
13
votes
1 answer

How to translate docker-compose.yml to Dockerfile

I have an application written in Django and I am trying to run it in docker on Digital Ocean droplet. Currently I have two files. Can anybody advise how to get rid of docker-compose.yml file and integrate all the commands within Dockerfile…
user2156115
  • 1,169
  • 4
  • 17
  • 30
13
votes
2 answers

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

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…
user3871
  • 12,432
  • 33
  • 128
  • 268
13
votes
7 answers

How Can I run PM2 with Angular-Cli? - Angular2

How can I run: ng serve --prod with pm2? ng serve from angular-cli, Angular2. I'm running on DigitalOcean. I have tried to test with http-server -p 4200 -d false in the dist/ folder after ng build --prod When I request from the domain…
Vicheanak
  • 6,444
  • 17
  • 64
  • 98