Project

General

Profile

Problem with Rate_Plugin

Added by Terence Mill about 14 years ago

I have file access problem with rate plugin. It wanna write somewhere, but i don't know where and why? Which rights are needed and where?


Errno::EACCES (Permission denied - ./.sid-repo_14441_redmine_1287066126_863145_646260544.lck):
  lockfile (1.4.3) lib/lockfile.rb:500:in `initialize'
  lockfile (1.4.3) lib/lockfile.rb:500:in `open'
  lockfile (1.4.3) lib/lockfile.rb:500:in `create'
  lockfile (1.4.3) lib/lockfile.rb:432:in `create_tmplock'
  lockfile (1.4.3) lib/lockfile.rb:213:in `lock'
  lockfile (1.4.3) lib/lockfile.rb:539:in `attempt'
  lockfile (1.4.3) lib/lockfile.rb:539:in `catch'
  lockfile (1.4.3) lib/lockfile.rb:539:in `attempt'
  lockfile (1.4.3) lib/lockfile.rb:539:in `loop'
  lockfile (1.4.3) lib/lockfile.rb:539:in `attempt'
  lockfile (1.4.3) lib/lockfile.rb:210:in `lock'
  lockfile (1.4.3) lib/lockfile.rb:199:in `initialize'
  lockfile (1.4.3) lib/lockfile.rb:559:in `new'
  lockfile (1.4.3) lib/lockfile.rb:559:in `Lockfile'
  vendor/plugins/redmine_rate/app/models/rate.rb:148:in `with_common_lockfile'
  vendor/plugins/redmine_rate/app/models/rate.rb:75:in `update_all_time_entries_with_missing_cost'
  vendor/plugins/redmine_rate/app/controllers/rate_caches_controller.rb:26:in `update'
  passenger (2.2.14) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
  passenger (2.2.14) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
  passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:441:in `start_request_handler'
  passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:381:in `handle_spawn_application'
  passenger (2.2.14) lib/phusion_passenger/utils.rb:252:in `safe_fork'
  passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:377:in `handle_spawn_application'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:163:in `start'
  passenger (2.2.14) lib/phusion_passenger/railz/application_spawner.rb:222:in `start'
  passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
  passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
  passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
  passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
  passenger (2.2.14) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
  passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
  passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
  passenger (2.2.14) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
  passenger (2.2.14) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Replies (3)

RE: Problem with Rate_Plugin - Added by Eric Davis about 14 years ago

It's creating a lockfile in the root of Redmine. You're using bleeding edge code that I wrote just last week so there isn't any documentation for it yet.

Eric Davis

RE: Problem with Rate_Plugin - Added by Terence Mill about 14 years ago

Is it ok to use redmine root for temporary file creation? I would have to give write rights to www-root user (same as ruby executor) to be able to write into that folder. Isn't that a security flaw?

RE: Problem with Rate_Plugin - Added by Eric Davis about 14 years ago

Terence Mill wrote:

Is it ok to use redmine root for temporary file creation?

Not sure yet. Like I said, it's really new code that hasn't been tested in production yet.

Isn't that a security flaw?

No, it's just how your environment is setup. My Redmines are owned and run by a redmine only user.

Eric Davis

    (1-3/3)