Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Sebastien Perret
Hi All,

I have exactly the same problem : mongrel keeps restarting the ruby
process.
I have installed the patch_for_mongrel.rb proposed by Jonathan. I have
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
My version of Gem is 1.3.7. Here is the result of my command :

U:\mongrel_rails start -e production -p 3001 -a 10.0.5.201 -l
mongrel.log -P mongrel.pid -c D:/wamp/www/redmine -t 0 -r public
-n 1024
** Starting Mongrel listening at 10.0.5.201:3001
** Starting Rails with production environment...
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:
Gem::Dependency#version_requirements is deprecated and will be remo
ved on or after August 2010.  Use #requirement
d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 74,
col 21: `authentication: : login' (ArgumentError)
from d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
from d:/Ruby187/lib/ruby/1.8/yaml.rb:144:in `load_file'
from d:/Ruby187/lib/ruby/1.8/yaml.rb:143:in `open'
from d:/Ruby187/lib/ruby/1.8/yaml.rb:143:in `load_file'
from D:/wamp/www/redmine/config/initializers/40-email.rb:6
from
D:/wamp/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`load_without_new_constant_marking'
from
D:/wamp/www/redmine/vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
`load'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:622:in
`load_application_initializers'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:621:in
`each'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:621:in
`load_application_initializers'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:176:in
`process'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in
`send'
from
D:/wamp/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in
`run'
from D:/wamp/www/redmine/config/environment.rb:20
from
d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
d:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/rails.rb:147:in
`rails'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:113:in
`cloaker_'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:149:in
`call'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:149:in
`listener'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:99:in
`cloaker_'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:50:in
`call'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:50:in
`initialize'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:84:in
`new'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:84:in
`run'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/command.rb:212:in
`run'
from
d:/Ruby187/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281
from d:/Ruby187/bin/mongrel_rails:19:in `load'
from d:/Ruby187/bin/mongrel_rails:19

Any Idea ?

-- 
Posted via http://www.ruby-forum.com/.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Luis Lavena
On Mon, Dec 13, 2010 at 8:24 AM, Sebastien Perret li...@ruby-forum.com wrote:
 Hi All,

 I have exactly the same problem : mongrel keeps restarting the ruby
 process.
 I have installed the patch_for_mongrel.rb proposed by Jonathan. I have
 ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
 My version of Gem is 1.3.7. Here is the result of my command :

 U:\mongrel_rails start -e production -p 3001 -a 10.0.5.201 -l
 mongrel.log -P mongrel.pid -c D:/wamp/www/redmine -t 0 -r public
 -n 1024
 ** Starting Mongrel listening at 10.0.5.201:3001
 ** Starting Rails with production environment...
 D:/wamp/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning:
 Gem::Dependency#version_requirements is deprecated and will be remo
 ved on or after August 2010.  Use #requirement
 d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 74,
 col 21: `    authentication: : login' (ArgumentError)
        from d:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'

 Any Idea ?


Yes, please read the exception: syntax error on line 74, ... that is
reading a YAML file, check there is no tab or incorrect indentation in
that file.

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Sebastien Perret
I have checked the .yml file. See attached to my post. The error refers 
to a comment line. Nothing before the line 74 looks wrong. No tabulation 
reached.
I have moved the yml file and install again ruby with the installer.exe. 
The old yml file and the new one matches, no différence found. Pretty 
strange ...

Attachments:
http://www.ruby-forum.com/attachment/5544/yaml.rb


-- 
Posted via http://www.ruby-forum.com/.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Luis Lavena
On Mon, Dec 13, 2010 at 10:20 AM, Sebastien Perret li...@ruby-forum.com wrote:
 I have checked the .yml file. See attached to my post. The error refers
 to a comment line. Nothing before the line 74 looks wrong. No tabulation
 reached.

You attached the ruby file from YAML, but if you look at the reference
in the output:

 `load': syntax error on line 74,
col 21: `authentication: : login'

You have a YAML file that contains a : login that is not a symbol.
There should not be spaces for symbols.

Please check your yaml files, not the YAML parser.

 I have moved the yml file and install again ruby with the installer.exe.
 The old yml file and the new one matches, no différence found. Pretty
 strange ...

This has nothing to do with the YAML parser or Ruby, is one of your
configuration files.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Luis Lavena
On Mon, Dec 13, 2010 at 10:30 AM, Sebastien Perret li...@ruby-forum.com wrote:
 Sorry, I have found many tabulation in this file replaced them with
 space caracter but the problem remained.


Can you pastie the file that contains the authentication line I
mentioned before? There must be a syntax error there you're not
seeing.

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel service keeps re-starting ruby

2010-12-13 Thread Sebastien Perret
You solved my problem ! It was amazing for a php devlopper like me to 
see the starting ruby service was parsing a yml file I edited one week 
ago in the redmine application whereas redmine was still working fine 
yesterday. Anyway thanks a lot for your help Luis, I would not think 
about searching in my redmine directory the solution. regards.

-- 
Posted via http://www.ruby-forum.com/.
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users