其他 Unable to write PID file

sihaiyunyou · 2011年11月23日 · 最后由 sihaiyunyou 回复于 2012年02月04日 · 4142 次阅读

./script/resque start :public is no longer used to avoid overloading Module#public, use :public_folder instead from /home/adolph/ruby-china/vendor/bundle/ruby/1.9.1/gems/resque-1.19.0/lib/resque/server.rb:12:in `class:Server'

Unable to write PID file to /home/adolph/ruby-china/tmp/pids/resque_workers.pid

这是什么原因阿?

没有那个目录,或者没有权限

我运行./script/resque start 这个命令启动不了,但是运行./script/rails s 这个命令就启动了,哈哈,和官网的程序一样

图片可以上传,但是显示不了 Routing Error

No route matches [GET] "/file/photo/7a73c9fb73d13d6041dd7d73ffd5f0b8.jpg"

Rendered vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)

Started GET "/file/photo/e1bd92cd2d1a5efa0ab8626c4bda2df8.jpg" for 127.0.0.1 at 2011-11-23 22:49:33 +0800

ActionController::RoutingError (No route matches [GET] "/file/photo/e1bd92cd2d1a5efa0ab8626c4bda2df8.jpg"):

Rendered vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/file/photo/7a73c9fb73d13d6041dd7d73ffd5f0b8.jpg" for 127.0.0.1 at 2011-11-23 22:49:33 +0800

ActionController::RoutingError (No route matches [GET] "/file/photo/7a73c9fb73d13d6041dd7d73ffd5f0b8.jpg"):

Rendered vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)

Started GET "/file/photo/7a73c9fb73d13d6041dd7d73ffd5f0b8.jpg" for 127.0.0.1 at 2011-11-23 22:49:52 +0800

ActionController::RoutingError (No route matches [GET] "/file/photo/7a73c9fb73d13d6041dd7d73ffd5f0b8.jpg"):

Rendered vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

Started GET "/favicon.ico" for 127.0.0.1 at 2011-11-23 22:49:53 +0800

ActionController::RoutingError (No route matches [GET] "/favicon.ico"):

Rendered vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.9ms)

这种情况你先看看/file/photo 目录下面有没有那个文件,要是没有就说明上传有问题,要是有就比较奇怪了

启动不了就别管了,不用启动都可以的,现在暂时没用它

#5 楼 @cqpx 现在这个版本不是把图片保存到 MongoDB 数据库了么?/file/photo 这个目录存在与哪里,跟目录下还是哪个目录下,手工创建还是自动创建?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号