Project

General

Profile

Errno::ENOENT No such file or directory ( Redmine-gitosis )

Added by Andre Silva almost 14 years ago

Hello,

I have a problem with save project with redmine-gitosis installed

Processing ProjectsController#list_files (for 187.25.170.217 at 2008-10-03 02:02:43) [GET]
Parameters: {"action"=>"list_files", "id"=>"customer-hiper", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/list_files
Completed in 39ms (View: 28, DB: 2) | 200 OK [http://redmine.eximbiz.com.br/projects/customer-hiper/files]

Processing RepositoriesController#show (for 187.25.170.217 at 2008-10-03 02:02:46) [GET]
Parameters: {"action"=>"show", "id"=>"customer-hiper", "controller"=>"repositories"}
The revision '' has a wrong format

Errno::ENOENT (No such file or directory - /tmp/redmine-gitosis-1223010166/gitosis/gitosis.conf):
inifile (0.3.0) lib/inifile.rb:67:in `initialize'
inifile (0.3.0) lib/inifile.rb:67:in `open'
inifile (0.3.0) lib/inifile.rb:67:in `write'
/usr/lib/ruby/1.8/lockfile.rb:284:in `lock'
/usr/lib/ruby/1.8/lockfile.rb:539:in `attempt'
/usr/lib/ruby/1.8/lockfile.rb:539:in `catch'
/usr/lib/ruby/1.8/lockfile.rb:539:in `attempt'
/usr/lib/ruby/1.8/lockfile.rb:539:in `loop'
/usr/lib/ruby/1.8/lockfile.rb:539:in `attempt'
/usr/lib/ruby/1.8/lockfile.rb:210:in `lock'
/usr/lib/ruby/1.8/lockfile.rb:199:in `initialize'
/usr/lib/ruby/1.8/lockfile.rb:559:in `new'
/usr/lib/ruby/1.8/lockfile.rb:559:in `Lockfile'
vendor/plugins/redmine_gitosis/app/models/gitosis_observer.rb:21:in `update_repositories'
vendor/plugins/redmine_gitosis/app/models/gitosis_observer.rb:13:in `after_save'
/usr/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/usr/lib/ruby/1.8/observer.rb:184:in `each'
/usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'
app/models/repository.rb:42:in `scm'
app/models/repository.rb:75:in `default_branch'
app/controllers/repositories_controller.rb:206:in `find_repository'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

Rendering /home/railsapps/redmine.eximbiz.com.br/public/500.html (500 Internal Server Error)


Replies (5)

RE: Errno::ENOENT No such file or directory ( Redmine-gitosis ) - Added by Lars De Richter almost 14 years ago

I have got the exact same problem. Have you already found a solution for this?

RE: Errno::ENOENT No such file or directory ( Redmine-gitosis ) - Added by Franck Bret almost 14 years ago

Hi
I'm just facing the exactly same problem on ubuntu server 10.04...

The redmine-gitosis-xxx folder in /tmp/ exist but remains empty when trying to create a new redmine project with gitosis plugin activated.

I'm just new with ruby so any hints on how to debug this kind of error is welcome.

thanks in advance

RE: Errno::ENOENT No such file or directory ( Redmine-gitosis ) - Added by Andrey L over 13 years ago

follow these simple steps to resolve this issue (at least, it helped me):

  1. temporary enable shell for user that runs redmine (in my case it is redmine)
  2. sudo -u redmine -i
  3. ssh git@your_git_server

and here is the tricky moment! ssh asks you if you want to add your_git_server to the known hosts.
type 'yes' (without quotes) and you're done!
logout and disable the shell for redmine account again.

HTH,
Andrey

RE: Errno::ENOENT No such file or directory ( Redmine-gitosis ) - Added by Andrey L over 13 years ago

oh, just found one branch of redmine_gitosis plugin with cool fixes!
here it is: http://github.com/ericpaulbishop/redmine_gitosis

with this version installed there's no need for that ugly hacks i've described in the previous post!!

RE: Errno::ENOENT No such file or directory ( Redmine-gitosis ) - Added by jeho Sung almost 12 years ago

ok, have you try check your auth.log?

i found this,

--------------------------------------------------------------------------------------------
Jun 26 07:27:14 debian sshd [2320]: Failed password for git from 127.0.0.1 port 33977 ssh2
Jun 26 07:27:14 debian sshd [2320]: Failed password for git from 127.0.0.1 port 33977 ssh2
Jun 26 07:27:14 debian sshd [2320]: Failed password for git from 127.0.0.1 port 33977 ssh2
--------------------------------------------------------------------------------------------

it seems something relate this one.

if i try login with 'redmine',

----------------------------------------------------------------
redmine@debian:/usr/share/redmine/log$ ssh -T git@localhost
ERROR:gitosis.serve.main:Need SSH_ORIGINAL_COMMAND in environment.
----------------------------------------------------------------

Jun 26 07:29:51 debian su [2440]: pam_unix(su:session): session opened for user redmine by root(uid=0)
Jun 26 07:29:57 debian sshd [2458]: Accepted publickey for git from 127.0.0.1 port 33978 ssh2
Jun 26 07:29:57 debian sshd [2458]: pam_unix(sshd:session): session opened for user git by (uid=0)
Jun 26 07:29:57 debian sshd [2460]: Received disconnect from 127.0.0.1: 11: disconnected by user
Jun 26 07:29:57 debian sshd [2458]: pam_unix(sshd:session): session closed for user git
----------------------------------------------------------------

    (1-5/5)