digital-ocean

An unhandled lowlevel error occurred. The application logs may have details

回眸只為那壹抹淺笑 提交于 2019-12-03 11:23:44
问题 I'm tyring to deploy a rails app to a digital ocean droplet and all seems to be configured ok but I get this error: An unhandled lowlevel error occurred. The application logs may have details. I'm not sure what to do as the logs are empty. Here's the nginx config: upstream puma { server unix:///home/yourcv.rocks/shared/tmp/sockets/yourcv.rocks-puma.sock; } server { listen 80 default_server deferred; server_name 127.0.0.1; root /home/yourcv.rocks/current/public; access_log /home/yourcv.rocks

Ubuntu Apache: “Module php7 does not exist” [closed]

我的未来我决定 提交于 2019-12-03 08:19:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to upgrade PHP 5.5.9 to PHP 7 on my DigitalOcean Ubuntu 14.04 machine. I've read many tutorials and articles how to do it, but each of them misses something. For example, somewhere they say you must sudo a2dismod php5 then sudo a2enmod php7 . The problem is that I always get this message $ sudo

Rake assets:precompile gets killed when there is a console session open in production

家住魔仙堡 提交于 2019-12-03 06:53:32
问题 On my production server, which is hosted on digital ocean, if that helps, Ubuntu 12.04, I have RoR 4 and rake 10.1.1. When I deploy, I run rake assets:precompile , and I've noticed a strange issue where if I have a rails console session open when I do this, I get the following output ~# rake assets:precompile ~# Killed It's mainly annoying, but the reason I want it resolved is when hiring new developers, there will be deploy/console conflict nightmare. Thanks, Brian 回答1: Your precompile

Kubernetes External Load Balancer Service on DigitalOcean

∥☆過路亽.° 提交于 2019-12-03 04:18:29
I'm building a container cluster using CoreOs and Kubernetes on DigitalOcean, and I've seen that in order to expose a Pod to the world you have to create a Service with Type: LoadBalancer. I think this is the optimal solution so that you don't need to add external load balancer outside kubernetes like nginx or haproxy. I was wondering if it is possible to create this using DO's Floating IP. Robert Bailey The LoadBalancer type of service is implemented by adding code to the kubernetes master specific to each cloud provider. There isn't a cloud provider for Digital Ocean ( supported cloud

How do I set up global load balancing using Digital Ocean DNS and Nginx?

耗尽温柔 提交于 2019-12-03 01:54:51
问题 UPDATE: See the answer I've provided below for the solution I eventually got set up on AWS. I'm currently experimenting with methods to implement a global load-balancing layer for my app servers on Digital Ocean and there's a few pieces I've yet to put together. The Goal Offer highly-available service to my users by routing all connections to the closest 'cluster' of servers in SFO, NYC, LON, and eventually Singapore. Additionally, I would eventually like to automate the maintenance of this

An unhandled lowlevel error occurred. The application logs may have details

夙愿已清 提交于 2019-12-03 01:46:59
I'm tyring to deploy a rails app to a digital ocean droplet and all seems to be configured ok but I get this error: An unhandled lowlevel error occurred. The application logs may have details. I'm not sure what to do as the logs are empty. Here's the nginx config: upstream puma { server unix:///home/yourcv.rocks/shared/tmp/sockets/yourcv.rocks-puma.sock; } server { listen 80 default_server deferred; server_name 127.0.0.1; root /home/yourcv.rocks/current/public; access_log /home/yourcv.rocks/current/log/nginx.access.log; error_log /home/yourcv.rocks/current/log/nginx.error.log info; location ^~

How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?

我与影子孤独终老i 提交于 2019-12-03 01:33:48
问题 Configuring a new Digital Ocean droplet with SSH keys. When I run ssh-copy-id this is what I get: ssh-copy-id user@012.345.67.89 /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys sign_and_send_pubkey: signing failed: agent refused operation user@012.345.67.89's password: Number of key(s) added: 1 Now try logging

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

大兔子大兔子 提交于 2019-12-03 00:53:13
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: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/magnificent/git-ssh.sh /usr/bin/env git ls-remote --heads git@github

CORS issue with canvas only when image is preloaded

僤鯓⒐⒋嵵緔 提交于 2019-12-02 22:06:44
问题 My issue only arises when the loaded image was preloaded somewhere else. For example, when I somewhere use a <img> -tag with the src attribute. Have a look at this code: <canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3;" ></canvas> <img src="https://local-spaces.fra1.digitaloceanspaces.com/test.jpg" width="50"/> <button onclick="show()">Load Canvas Picture</button> <script> function show() { const c = document.getElementById("myCanvas"); const ctx = c.getContext(

apache not returning index.php as default

此生再无相见时 提交于 2019-12-02 14:18:20
问题 I recently made a DigitalOcean droplet with LAMP pre-installed. Went and uploaded my website (including index.php) to /var/www Apache just returns the It Works! page, I have to manually add /index.php to my url Things I have tried: Made an .htaccess file containing "DirectoryIndex index.php" Adding DirectoryIndex index.php to apache2.conf Set index.php first in dir.conf Making an index.html, didn't show that either. EDIT: here's my apache2.conf file: http://pastebin.com/BMgiNdiD 回答1: You are