digital-ocean

Kubernetes simple authentication

好久不见. 提交于 2019-12-21 20:39:03
问题 I am using KUbernetes on a coreOs cluster hosted on DigitalOcean. And using this repo to set it up. I start the apiserver with the following line: /opt/bin/kube-apiserver --runtime-config=api/v1 --allow-privileged=true \ --insecure-bind-address=0.0.0.0 --insecure-port=8080 \ --secure-port=6443 --etcd-servers=http://127.0.0.1:2379 \ --logtostderr=true --advertise-address=${COREOS_PRIVATE_IPV4} \ --service-cluster-ip-range=10.100.0.0/16 --bind-address=0.0.0.0 The problem is that it accepts

Ubuntu / DigitalOcean - Unable to fetch packages to install git on a fresh install

依然范特西╮ 提交于 2019-12-21 20:33:33
问题 Just started with a fresh install of Ubuntu 14.04 on my digitalocean droplet and I'm trying to install git . My first attempt failed to install some packages - root@Jedi:~# sudo apt-get install git-all ... ... E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/main/g/gcc-4.8/libgomp1_4.8.4-2ubuntu1~14.04.1_amd64.deb 404 Not Found [IP: 95.85.0.50 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? So I took the suggestion above and re-ran it

Running a java application with spring-boot, and gradle on digitalocean

て烟熏妆下的殇ゞ 提交于 2019-12-21 20:15:38
问题 I am trying to build a restful service with eclipse, java, gradle, spring-boot and host it on a digital ocean server. I want to get a JSON response when I access the digital ocean url on a specific port or something, so I can do 123.456.78:90 and see JSON in the browser. When I run this in eclipse and access localhost, this works fine. Accessing localhost:port# gives the desired output, but I'm noticing differences in the console log from eclipse and when I run it on the server. From eclipse:

Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying

心不动则不痛 提交于 2019-12-20 10:36:39
问题 I am getting following error while deploying Rails 4 application using Capistrano 3 INFO [87512eb8] Running /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh as deploy@104.236.6.180 DEBUG [87512eb8] Command: /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh INFO [87512eb8] Finished in 0.444 seconds with exit status 0 (successful). INFO [1ec94dd1] Running /usr/bin/env git ls-remote --heads git@github.com:BoTreeConsultingTeam/magnificent.git as deploy@104.236.6.180 DEBUG [1ec94dd1] Command: (

Simple node.js app deployment on DigitalOcean from GitHub

一曲冷凌霜 提交于 2019-12-19 04:12:36
问题 I have a node.js application on my Github. Right now I am using Heroku for hosting it but I want to give DigitialOcean a try (the $5/month is more affordable). I am used to using Heroku, where I just go create an app > connect it to my github account > deploy from the master branch > boom app deployed. When I signed up for DO and started exploring it seemed way too much and too many steps to get my app deployed. I researched around to find a simpler way (similar to one I follow in Heroku) but

Configuring Gunicorn: No application module specified

♀尐吖头ヾ 提交于 2019-12-19 03:19:35
问题 I'm trying to deploy a django project with NGINX and gunicorn. I keep getting 502 Bad Gateway. I've been working nonstop on this for the past few days and I can't seem to get this deployed. I've gone through 3 tutorials on Digital Ocean, but they aren't correct, obviously. I keep getting 502 bad gateway, or if I try to use manage.py runserver, I get 400 bad request. I think my problem is with gunicorn. When I enter gunicorn -config, it says usage: gunicorn [OPTIONS] [APP_MODULE] gunicorn:

Unexpected mongo exit code 100. Restarting

╄→尐↘猪︶ㄣ 提交于 2019-12-18 05:54:22
问题 I was trying to run Meteor on my VPS and I was getting this error: Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Unexpected mongo exit code 100. Restarting. Can't start Mongo server. MongoDB had an unspecified uncaught exception. This can be caused by MongoDB being unable to write to a local database. Check that you have permissions to write to .meteor/local. MongoDB does not support filesystems like NFS that do not allow file locking. I have figured

RewriteRule Error: Bad flag delimiters

蓝咒 提交于 2019-12-17 22:56:48
问题 Using this RewriteRule in my .htaccess file I'm getting RewriteRule: Bad flag delimiters which is returning a 500 error in the browser. Can anyone point me in the right direction please. Thanks. RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^dev/(.*)$ http://dev.example.com/$1 [L,R=301, NC] This is on Ubuntu on a Digital Ocean Droplet. 回答1: Turns out it was because of the space before N in the flag declaration [L,R=301, NC]. I changed it to [L,R=301,NC] and now it

Rails Deploy Digitalocean ActiveSupport::MessageEncryptor::InvalidMessage:

痞子三分冷 提交于 2019-12-14 03:44:44
问题 I'm deploying an app on digitalocean following this guide: https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma#prerequisites When I deploy with cap cap production deploy:initial --trace I keep getting this error The deploy stops here: 01 ~/.rvm/bin/rvm default do bundle exec rake assets:precompile 01 rake aborted! 01 01 ActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::Inva… 01 and when I run

Unable to mount a file with docker-compose

两盒软妹~` 提交于 2019-12-14 02:12:21
问题 I run docker-compose -f docker-compose.prod.yml up and I immediately get the error: ERROR: for frontend Cannot start service frontend: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/c/Users/James/Projects/mysite/frontend/conf/nginx/mysite.template\\\" to rootfs \\\"/var/lib/docker/aufs/mnt/e7a2a699ae3e9ede0dd60b7cfdebb7f2d3adf71e8175157f3c9e88d3285796d2\\\" at \\\"/var/lib