- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在本地主机上的开发模式下(OS X°我开始使用
foreman start
我的 Procfile 是: postgresql: postgres -D 供应商/postgresql redis: redis 服务器供应商/redis/db/redis.conf redis-slave:redis-server vendor/redis-slave/db/redis.conf sidekiq: sidekiq -C config/sidekiq.yml -q devise,1 -q default -q mailers sidekiq_web: thin -R sidekiq.ru start -p 9292 邮件:mailcatcher -f 网络:bundle exec unicorn -p 3001 -c ./config/unicorn.rb rails: bundle exec rails s unicorn
一切正常,但 sidekiq 无法连接到正在运行的 Redis 实例,因此它退出并返回代码但是,如果我在不同的窗口中启动每个进程,它运行良好......我的工头脚本可能有什么问题?
$ foreman start
01:19:21 postgresql.1 | started with pid 48166
01:19:21 redis.1 | started with pid 48167
01:19:21 redis-slave.1 | started with pid 48168
01:19:21 sidekiq.1 | started with pid 48169
01:19:21 sidekiq_web.1 | started with pid 48170
01:19:21 mail.1 | started with pid 48171
01:19:21 web.1 | started with pid 48172
01:19:21 rails.1 | started with pid 48173
01:19:21 redis-slave.1 | 48168:S 16 Aug 01:19:21.220 * Increased maximum number of open files to 10032 (it was originally set to 2560).
01:19:21 redis-slave.1 | _._
01:19:21 redis-slave.1 | _.-``__ ''-._
01:19:21 redis-slave.1 | _.-`` `. `_. ''-._ Redis 3.0.1 (00000000/0) 64 bit
01:19:21 redis-slave.1 | .-`` .-```. ```\/ _.,_ ''-._
01:19:21 redis-slave.1 | ( ' , .-` | `, ) Running in standalone mode
01:19:21 redis-slave.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6380
01:19:21 redis-slave.1 | | `-._ `._ / _.-' | PID: 48168
01:19:21 redis-slave.1 | `-._ `-._ `-./ _.-' _.-'
01:19:21 redis-slave.1 | |`-._`-._ `-.__.-' _.-'_.-'|
01:19:21 redis-slave.1 | | `-._`-._ _.-'_.-' | http://redis.io
01:19:21 redis-slave.1 | `-._ `-._`-.__.-'_.-' _.-'
01:19:21 redis-slave.1 | |`-._`-._ `-.__.-' _.-'_.-'|
01:19:21 redis-slave.1 | | `-._`-._ _.-'_.-' |
01:19:21 redis-slave.1 | `-._ `-._`-.__.-'_.-' _.-'
01:19:21 redis-slave.1 | `-._ `-.__.-' _.-'
01:19:21 redis-slave.1 | `-._ _.-'
01:19:21 redis-slave.1 | `-.__.-'
01:19:21 redis-slave.1 |
01:19:21 redis-slave.1 | 48168:S 16 Aug 01:19:21.248 # Server started, Redis version 3.0.1
01:19:21 redis-slave.1 | 48168:S 16 Aug 01:19:21.275 * DB loaded from disk: 0.028 seconds
01:19:21 redis-slave.1 | 48168:S 16 Aug 01:19:21.275 * The server is now ready to accept connections on port 6380
01:19:21 postgresql.1 | LOG: database system was shut down at 2015-08-16 01:12:29 CEST
01:19:21 postgresql.1 | LOG: database system is ready to accept connections
01:19:21 postgresql.1 | LOG: autovacuum launcher started
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.254 * Connecting to MASTER localhost:6379
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.255 * MASTER <-> SLAVE sync started
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.255 * Non blocking connect for SYNC fired the event.
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.256 * Master replied to PING, replication can continue...
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.256 * Partial resynchronization not possible (no cached master)
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.268 * Full resync from master: 337a934fccebc3e0ad1627e6f06f0e061b0515e2:1
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.374 * MASTER <-> SLAVE sync: receiving 18 bytes from master
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.374 * MASTER <-> SLAVE sync: Flushing old data
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.374 * MASTER <-> SLAVE sync: Loading DB in memory
01:19:22 redis-slave.1 | 48168:S 16 Aug 01:19:22.378 * MASTER <-> SLAVE sync: Finished with success
01:19:23 sidekiq_web.1 | /Users/yves/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thin-1.6.3/lib/thin/backends/base.rb:103: warning: epoll is not supported on this platform
01:19:23 sidekiq.1 | exited with code 0
01:19:23 system | sending SIGTERM to all processes
01:19:23 postgresql.1 | LOG: received smart shutdown request
01:19:23 redis-slave.1 | 48168:signal-handler (1439680763) Received SIGTERM scheduling shutdown...
01:19:23 postgresql.1 | LOG: autovacuum launcher shutting down
01:19:23 postgresql.1 | LOG: shutting down
01:19:23 redis.1 | exited with code 0
01:19:23 redis-slave.1 | 48168:S 16 Aug 01:19:23.505 # Connection with master lost.
01:19:23 redis-slave.1 | 48168:S 16 Aug 01:19:23.505 * Caching the disconnected master state.
01:19:23 web.1 | terminated by SIGTERM
01:19:23 mail.1 | terminated by SIGTERM
01:19:23 rails.1 | terminated by SIGTERM
01:19:23 sidekiq_web.1 | terminated by SIGTERM
01:19:23 postgresql.1 | LOG: database system is shut down
01:19:23 postgresql.1 | exited with code 0
01:19:23 redis-slave.1 | 48168:S 16 Aug 01:19:23.575 # User requested shutdown...
01:19:23 redis-slave.1 | 48168:S 16 Aug 01:19:23.575 # Redis is now ready to exit, bye bye...
01:19:23 redis-slave.1 | exited with code 0
yves@MacMini: recommence $ ps aux | grep redis
yves 48330 0.0 0.0 2441988 672 s000 S+ 1:26AM 0:00.01 grep redis
yves@MacMini: recommence $ foreman start
01:26:26 postgresql.1 | started with pid 48353
01:26:26 redis.1 | started with pid 48354
01:26:26 redis-slave.1 | started with pid 48355
01:26:26 sidekiq.1 | started with pid 48356
01:26:26 sidekiq_web.1 | started with pid 48357
01:26:26 mail.1 | started with pid 48358
01:26:26 web.1 | started with pid 48359
01:26:26 rails.1 | started with pid 48360
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.464 * Increased maximum number of open files to 10032 (it was originally set to 2560).
01:26:26 redis-slave.1 | _._
01:26:26 redis-slave.1 | _.-``__ ''-._
01:26:26 redis-slave.1 | _.-`` `. `_. ''-._ Redis 3.0.1 (00000000/0) 64 bit
01:26:26 redis-slave.1 | .-`` .-```. ```\/ _.,_ ''-._
01:26:26 redis-slave.1 | ( ' , .-` | `, ) Running in standalone mode
01:26:26 redis-slave.1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6380
01:26:26 redis-slave.1 | | `-._ `._ / _.-' | PID: 48355
01:26:26 redis-slave.1 | `-._ `-._ `-./ _.-' _.-'
01:26:26 redis-slave.1 | |`-._`-._ `-.__.-' _.-'_.-'|
01:26:26 redis-slave.1 | | `-._`-._ _.-'_.-' | http://redis.io
01:26:26 redis-slave.1 | `-._ `-._`-.__.-'_.-' _.-'
01:26:26 redis-slave.1 | |`-._`-._ `-.__.-' _.-'_.-'|
01:26:26 redis-slave.1 | | `-._`-._ _.-'_.-' |
01:26:26 redis-slave.1 | `-._ `-._`-.__.-'_.-' _.-'
01:26:26 redis-slave.1 | `-._ `-.__.-' _.-'
01:26:26 redis-slave.1 | `-._ _.-'
01:26:26 redis-slave.1 | `-.__.-'
01:26:26 redis-slave.1 |
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.467 # Server started, Redis version 3.0.1
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.467 * DB loaded from disk: 0.000 seconds
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.467 * The server is now ready to accept connections on port 6380
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.469 * Connecting to MASTER localhost:6379
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.470 * MASTER <-> SLAVE sync started
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.470 * Non blocking connect for SYNC fired the event.
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.470 * Master replied to PING, replication can continue...
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.471 * Partial resynchronization not possible (no cached master)
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.471 * Full resync from master: f55a717fbd36511c5581e081e154c8e557499754:1
01:26:26 postgresql.1 | LOG: database system was shut down at 2015-08-16 01:19:23 CEST
01:26:26 postgresql.1 | LOG: autovacuum launcher started
01:26:26 postgresql.1 | LOG: database system is ready to accept connections
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.557 * MASTER <-> SLAVE sync: receiving 18 bytes from master
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.558 * MASTER <-> SLAVE sync: Flushing old data
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.558 * MASTER <-> SLAVE sync: Loading DB in memory
01:26:26 redis-slave.1 | 48355:S 16 Aug 01:26:26.558 * MASTER <-> SLAVE sync: Finished with success
01:26:27 sidekiq_web.1 | /Users/yves/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thin-1.6.3/lib/thin/backends/base.rb:103: warning: epoll is not supported on this platform
01:26:27 sidekiq.1 | exited with code 0
01:26:27 system | sending SIGTERM to all processes
01:26:27 postgresql.1 | LOG: received smart shutdown request
01:26:27 redis-slave.1 | 48355:signal-handler (1439681187) Received SIGTERM scheduling shutdown...
01:26:27 postgresql.1 | LOG: autovacuum launcher shutting down
01:26:27 postgresql.1 | LOG: shutting down
01:26:27 postgresql.1 | LOG: database system is shut down
01:26:27 redis.1 | exited with code 0
01:26:27 redis-slave.1 | 48355:S 16 Aug 01:26:27.991 # Connection with master lost.
01:26:27 redis-slave.1 | 48355:S 16 Aug 01:26:27.991 * Caching the disconnected master state.
01:26:27 redis-slave.1 | 48355:S 16 Aug 01:26:27.997 # User requested shutdown...
01:26:27 redis-slave.1 | 48355:S 16 Aug 01:26:27.997 # Redis is now ready to exit, bye bye...
01:26:27 redis-slave.1 | exited with code 0
01:26:27 postgresql.1 | exited with code 0
01:26:28 mail.1 | terminated by SIGTERM
01:26:28 sidekiq_web.1 | terminated by SIGTERM
01:26:28 rails.1 | terminated by SIGTERM
01:26:28 web.1 | terminated by SIGTERM
sidekiq.log 显示错误..
WARN: Unresolved specs during Gem::Specification.reset:
minitest (~> 5.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
2015-08-15T23:19:29.882Z 48183 TID-oxy6u8hqw INFO: Booting Sidekiq 3.4.2 with redis options {:url=>"redis://localhost:6379/0", :driver=>:hiredis}
2015-08-15T23:19:32.130Z 48183 TID-oxy6u8hqw INFO: Running in ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
2015-08-15T23:19:32.130Z 48183 TID-oxy6u8hqw INFO: See LICENSE and the LGPL-3.0 for licensing details.
2015-08-15T23:19:32.130Z 48183 TID-oxy6u8hqw INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org/pro
2015-08-15T23:19:32.235Z 48183 TID-oxy6qw1tk ERROR: Error fetching message: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)
2015-08-15T23:19:32.235Z 48183 TID-oxy6qw1tk ERROR: /Users/yves/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/redis-3.2.1/lib/redis/client.rb:331:in `rescue in establish_connection'
最佳答案
尝试使用“127.0.0.1”或“::1”代替“localhost”。 IPv6 与 IPv4 有时会很棘手。
关于ruby-on-rails-4 - Rails 4.2:sidekiq 无法连接到 Redis(Errno::ECONNREFUSED),由 foreman 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32030477/
每当我运行命令以将 Virtualbox 驱动程序启动 Minishift 到操作系统主机时,它都需要一段疯狂的时间,而且它永远不会结束。有时我什至收到有关达到存储限制的错误消息。 不知道是不是描述h
您好,我正在使用 npm 运行一个基本的 React 项目,我正尝试在 docker 容器中启动它。但是我实际上无法让项目运行。我的 dockerfile 看起来像这样: FROM node:7.8.
所以我想从我的 SSH 终端开始游戏。 这真的很奇怪,当我直接从 Linux GUI 执行此操作时,它可以工作。但是当我使用 SSH 客户端进行远程连接时,它就崩溃了。似乎与我的显示驱动程序有关。 U
我有一个显示图像的动态壁纸。我在 Activity 中更改了该图像。然后我需要通知动态壁纸,以便它知道重新加载资源。 Intent 似乎是完美、简单的解决方案: Intent intent = new
我有一个似乎无法解决的问题。我在 Boot Dashboard 中使用 STS 3.9.2 从 Eclipse (Oxygen) 启动 Spring Boot 应用程序没有任何问题: 但是,当我尝试从
全新的 Python,在我开始摆弄东西之前先设置和安装东西。我的理解是 Python 2.7 和 Python 3.3 之间存在一些显着差异/不兼容,尽管这两个版本都得到了很好的使用,所以我认为最好安
在使用了很长时间的 jQuery 之后,我有一个问题,我正在使用 jQuery 模式(样式)编写一个简单的代码, (function(window, undefined) { var jQu
我正在尝试在 spring boot 应用程序下的非 spring 托管类中配置 Autowired。我在 tomcat 服务器下部署的 Web 应用程序下成功运行了这个。但是当我想在 spring
我对 xmonad 完全陌生,但我想开始使用它来提高我的工作效率。 这是我一直在使用的指南(我使用的是 Apple OS X Snow Leopard) http://xmonad.org/tour.
我试图将Spring Boot指南中的Managing Transactions示例扩展到两个数据源,但是@Transaction注释似乎仅对其中一个数据源有效。 在“Application.java
conEmu 有没有办法默认打开多个不同的选项卡? 我看到这个页面解释了如何使用 splits , 我意识到我可以按 Ctrl + T, 1, Enter,但我希望有一种方法可以自动执行此操作! "%
我正在寻找快速而肮脏的答案。我当时脑子一片空白,盯着屏幕看了 12 个小时以上,我想我中枪了。 我想做一个简单的 SignalR 应用程序作为教程。我找到了这个example ,但我不断收到票证未定义
我正在使用 Azure Powershell cmdlet 来启动/停止 VM。 Start-AzureVM [-ServiceName] [-Name] [ ] Stop-AzureVM [-S
我想使用Powershell脚本代码启动/停止iis和mssql 意味着当我运行ps脚本时,我想启动/停止iis和mssql 我在网上搜索了它,发现了一些代码,但按照我的要求无法正常工作 码: $ii
我在 liferay 工作。我们在我们的项目中使用一个模块来创建 liferay 主题。我使用命令 ant -Ddeploy.war=true 将它部署在服务器中。 war 文件在 liferay 部
我想在已安装 Python 2.7 的 Windows XP 计算机上运行 IPython(版本 0.12)。 我通过 Windows 二进制安装程序安装,但安装后 IPython 没有显示在菜单中,
我从创建了自己的简单图片。 FROM python:2.7.11 RUN mkdir /extra/later/ \ && mkdir /yyy 现在,我可以执行以下步骤: docker run
$(document).ready(function () { setTimeout(function() { window.location.reload(); }, 2000); // 2
我刚刚创建了一个帐户 OpenWeatherMap 我想通过城市 ID API 调用获取当前位置的天气: http://api.openweathermap.org/data/2.5/weather?
我注意到,如果我更改 xcasset 中的图像,启动 Storyboard不会更新。 例如,假设您的启动 Storyboard中有一个 UIImage View ,其中包含一个名为“logo”的蓝色图
我是一名优秀的程序员,十分优秀!