DigitalOcean

Articles, Q&A, and projects related to using DigitalOcean products and services.

DigitalOcean subscription active
You will receive email notifications for new publications on DigitalOcean.
3466 Results
  • Question

    connect() failed (111: Connection refused) while connecting to upstream

    Hi all, Followed this (https://lengstorf.com/code/deploy-nodejs-ssl-digitalocean/) tutorial to get Let's Encrypt working on my Nest.js/Node server. Everything works - running sudo nginx -t returns: nginx: the configu...
    Accepted Answer: Hello, You can only have 1 service listening on 1 port. So as you have Nginx listening on port 80 at the moment, you can not have your Node on the same port. Also as you currently have your Nginx set to work as a reve...
    3 By hbendixlewis Nginx API Let's Encrypt DigitalOcean Ubuntu 18.04
  • Question

    bundle install NoMethodError: undefined method `gsub' for nil:NilClass

    During a routine deploy (a log message was being changed) to one of our testing environment servers, the deploy failed with the message NoMethodError: undefined methodgsub' for nil:NilClasswhenbundle install` was run....
    Accepted Answer: For anyone else encountering a similar problem, this was resolved by updating bundler version.
    1 By kathrynforsythe DigitalOcean Ruby on Rails
  • Question

    How to run node.js server with Nginx

    Hi all, I'm trying to figure out how to get my Node server.js to run on my droplet with Let's Encrypt / nginx It was working by just ssh-ing into the droplet, cd into the project folder (cloned from Github repo) and r...
    Accepted Answer: Hmmm all that sounds like it should work... Just to be clear, this is what your nginx config should look like: ``` server { listen 80; servername mydomain.com www.mydomain.com; return 301 https...
    1 By keithj0nes Nginx DigitalOcean Node.js Ubuntu 16.04
  • Question

    28: No space left on device error

    I was trying to renew my SSL certificate on my droplet by following this guide: https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx But for some reason I kept getting 28: No space left on device when I run apt-get...
    Accepted Answer: Hello, I would recommend starting with the following: First check how much space you have available and which partition is filling up with the following command: df -h The output would look something like this: Fil...
    1 By jenyeji DigitalOcean Let's Encrypt Linux Basics Configuration Management
  • Question

    Nginx 111: Connection refused errors.

    Hello, I'm running Nginx /unicorn I'm getting errors "failed (111: Connection refused) while connecting to upstream" from nginx. It seems I've tried just about everything DO support, google and stackoverflow has to of...
    Accepted Answer: Thanks Everyone. it turns out this was a rails/permission problem. I looked just about everywhere except in the unicorn access logs and thats where i discovered the problem. I think ultimately when the server was boun...
    4 By anthonyhill Nginx DigitalOcean
  • Question

    How do I solve a self-signed certificate error in OpenVPN?

    Hi. I have pretty much the same problem described in this post (https://www.digitalocean.com/community/questions/openvpn-certificate-failed). That problem was resolved for the poster, but without explanation. I've set...
    Accepted Answer: Hi @lbh2 It seems like you need to run the certificate through a script if you include it inline: https://github.com/mattock/mkinline Try having the certificates externally - at least just as a test. Or it could simp...
    4 By lbh2 DigitalOcean Applications VPN Debian
  • Question

    Can I upgrade from a shared CPU to a dedicated CPU?

    I've seen the pricing page (https://www.digitalocean.com/pricing/). For our current needs, a shared CPU plan would suffice. However, I'd like to be able to upgrade to a dedicated CPU later. Is that possible? Thanks!
    Accepted Answer: Hello, @linusgeffarth You can resize your droplet at any time. Resizing a server, also known as vertical scaling, increases the amount of resources a server has. Increasing its memory and CPU improves its performance...
    1 By linusgeffarth DigitalOcean
  • Question

    Why is pricing shown as monthly AND hourly price?

    On the pricing page (https://www.digitalocean.com/pricing/) the first option, for example, costs $5 per month. However, it also says $0.007 per hour. Does this mean the price is actually $5 + ($0.007 * 31days * 24 hou...
    Accepted Answer: Hi there @fmp, The reason we publish both monthly & hourly pricing is that a Droplet can exist for only a fraction of a month, so it will need to be billed on an hourly basis. For each hour a Droplet exists on your ac...
    1 By linusgeffarth DigitalOcean
  • Question

    How do i make my discord bot run 24/7?

    When i close the terminal the bot closes how do i make it not close, So it can run all night all day.
    Accepted Answer: You need some node module that would allow to run it forever. I can recommend you two - pm2 or forever. I'm more on side of pm2 as it have better process management. Also there are tutorials on DO for setting it up. F...
    6 By SReach DigitalOcean Node.js
  • Question

    Ways to migrate a Project to a Team

    Hi there! I have a Project in my personal account and I need to transfer it to a Team I've created. This project has a droplet, and multiple domains and subdomains. What would be the best way to do it? I opened a tick...
    Accepted Answer: Hey @danielarturomassara, In our public community, we aim to answer open questions about anything SysAdmin, DigitalOcean and beyond. However, we make every attempt to keep personal information safe and so don't ever a...
    1 By danielarturomassara DigitalOcean Programming Project
  • Question

    Droplet dead for almost a day

    Yesterday got asked for "system needs to be restart" - did the reboot and since then the droplet did not come up again. no ping, no login (ssh), no DO console. It's the older ubuntu (16.04.6 lts) for I never upgrade...
    Accepted Answer: Hey @szinser, In our public community, we aim to answer open questions about anything SysAdmin, DigitalOcean and beyond. However, we make every attempt to keep personal information safe and so don't ever access person...
    2 By szinser Ubuntu 16.04 DigitalOcean
  • Question

    Wordpress: The uploaded file could not be moved to wp-content/uploads/

    Hey guys, I'm having an issue with not being able to upload media onto the wordpress site. Plugins update and install normally, but if i try to upload a pic for a post, it gives me the error "The uploaded file could n...
    Accepted Answer: |Solution!| So basically after having a head-ache with permissions and ownership, I came across the final solution. I have a secure ftp user called 'wp-user' which I got from the tutorial here (https://www.digitaloce...
    5 By Irvinlesh DigitalOcean WordPress Apache Ubuntu
  • Question

    "sudo apt-get update" command is not working

    Hello! <^>Error log<^> ``` Last login: Fri Jul 1 00:56:49 2016 from XXX.XXX.XXX.XX root@xxx:~# sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB] Hit:2 http://nyc2.mirrors...
    Accepted Answer: @chinmayrajyaguru There's a few things we can do in an effort to resolve this. First, I'd clean up the lists for apt-* by running: sudo rm -rvf /var/lib/apt/lists/* The above command removes all files and directori...
    3 By chinmayrajyaguru Nginx LEMP WordPress DigitalOcean Ubuntu 16.04
  • Question

    VPS or Dedicated Server?

    I remember Digital Ocean used to provide SSD VPS. I have a question now. Is Digital Ocean Providing VPS or dedicated servers? Cloud Servers here are referred to VPS or dedicated servers since I remember they don't pro...
    Accepted Answer: @sagargulati DigitalOcean only provides VPS's (Droplets), however, a VPS functions much like a Dedicated Server in many ways. You're able to choose your OS during deployment and you'll receive root access which allow...
    7 By sagargulati Deployment DigitalOcean
  • Question

    Using DO k8s container registry: authentication required

    I am trying to use registry.digitalocean.com for my k8s images. I've created an image, tagged it, logged into the registry successfully (using doctl registry login) then pushed the image to the registry. However, when...
    Accepted Answer: I had missed out a couple of steps in the guide DigitalOcean Container Registry Quickstart (https://www.digitalocean.com/docs/images/container-registry/quickstart/) specifically the steps: ``` Use the kubernetes-manif...
    1 By colinjohnriddell Kubernetes DigitalOcean
  • Question

    How to upgrade MySQL server, for the one-click app

    Hello, I'm using the PHPMyAdmin one-click app, but the MySQL server version is way behind and I'm not sure how to upgrade it without breaking anything The current version is: mysql Ver 14.14 Distrib 5.7.30, for Lin...
    Accepted Answer: Hi there @Geekologist, With the PHPmyAdmin 1-Click installation, you get MySQL 5.7 and PHPmyAdmin 4.6.6. I believe that if you upgrade your MySQL installation you would need to upgrade PHPmyAdmin to the latest version...
    1 By Geekologist PHP MySQL One-Click Install Apps Ubuntu Ubuntu 18.04 Databases DigitalOcean
  • Question

    Wrong domain when sending mails from PHP, how to fix it?

    I had to rename my droplet to send mails, and it was renamed to my domain name, because I needed to be fqdn. When sending mails using php mail() function, it worked just fine, and the mails were received from somethin...
    Accepted Answer: Just had to update my /etc/mailname file
    2 By Dantael PHP Nginx DigitalOcean Debian 10
  • Question

    When will NYC1 datacenter be PCI compliant?

    My droplets are in NYC1 data center, but I need my solution to be PCI compliant. Do I have to move them to NYC2 or NYC3? They are all setup with firewall rules, private networking, volumes mounted, etc. Not a small...
    Accepted Answer: Hello, @jeff93eceb16c6f If you are able to wait a couple months, I would recommend holding off on transferring your resources over to NYC2 or NYC3. PCI Compliance paperwork for NYC1 has hit some COVID-related delays,...
    1 By jeff93eceb16c6f DigitalOcean DigitalOcean Cloud Firewalls
  • Question

    Adding Credit Card(JCB) Not Confirming For Github Student Pack

    I have already a activated github student account that is enable to use development services educationally sponsored by many companies.My problem is that my valid credit card(JCB card) is refused by digital ocean for ...
    Accepted Answer: Hey @yanthainkahtet, In our public community, we aim to answer open questions about anything SysAdmin, DigitalOcean and beyond. However, we make every attempt to keep personal information safe and so don't ever access...
    1 By yanthainkahtet DigitalOcean
  • Question

    How does DigitalOcean keep my domain name secure?

    I've recently purchased a domain name from GoDaddy for a Wordpress site and to use it with DigitalOcean I changed the nameservers from GoDaddy to DO. However during this change there was no point at which I had to lin...
    Accepted Answer: Hey @hadikhan31415 , It would not be possible for a malicious actor to steal your domain because in order to link your domain to DO, you have to change the name servers from your GoDaddy control panel. After that, you...
    1 By hadikhan31415 DigitalOcean Security