Forum: Mongrel Using mongrel_rails: Can't install Redmine as win2003 service

Posted by Anton Andriyevskyy (Guest)
on 2009-11-21 23:26
(Received via mailing list)
Hello everyone.

After stugging 3+ hours installing redmine I got success but still
can't install redmine as service (windows 2003).

So here is my problem. I successfully installed redmine and mapped it
to mysql, created database and initialized it with default values.
Last thing I'm trying to do is to install it as service on windows
2003, and for this I'm running in cmd mode this instruction:

mongrel_rails service::install -N Redmine -c [your redmine folder] -p
[portno] -e production

and I get this error:
C:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.7.0-x86-mswin32-60/lib/
win32/service.rb:282:in `initialize': no options provided
(ArgumentError)

When I try without params:
mongrel_rails service::install
... it just says that name (-N) is obligatory.

But when I try with name only (-N), I get the same error.

Any help appreciated.
Thanks,
Anton
Posted by Luis Lavena (luislavena)
on 2009-11-21 23:57
(Received via mailing list)
On Sat, Nov 21, 2009 at 7:20 PM, Anton Andriyevskyy <x.meglio@gmail.com> 
wrote:
> mongrel_rails service::install -N Redmine -c [your redmine folder] -p
>
> But when I try with name only (-N), I get the same error.
>

Please uninstall win32-service 0.7.0

mongrel_service has been linked to an specific version of
win32-service due API changes.

gem install win32-service -v 0.5.2

--
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
Posted by Anton Andriyevskyy (Guest)
on 2009-11-22 01:12
(Received via mailing list)
Hi Luis. Thanks for help, it worked with old version of win32-service.

Does this mean I'll be not able to run both win32-service versions 
together
to keep another ruby-applications working which requires win32-service 
0.6+
?

Anton
Posted by Luis Lavena (luislavena)
on 2009-11-22 01:57
(Received via mailing list)
On Sat, Nov 21, 2009 at 8:58 PM, Anton Andriyevskyy <x.meglio@gmail.com> 
wrote:
> Hi Luis. Thanks for help, it worked with old version of win32-service.
> Does this mean I'll be not able to run both win32-service versions together
> to keep another ruby-applications working which requires win32-service 0.6+
> ?

mongrel_service uses "gem" method to lock to one specific version of
win32-service.

Seems is not working as expected, which could be due an old RubyGems 
version.

Please update to latest RubyGems 1.3.5.

I don't have too much time now to update mongrel_service, but if you
want make it API compatible with latest win32-service, I'll happily
apply the patches and make a new release.

The repository is here:

http://github.com/fauna/mongrel_service
--
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
Posted by Anton Andriyevskyy (Guest)
on 2009-11-22 02:29
(Received via mailing list)
Luis, thanks for your comments.

Unfortunately i'm not ror coder and i'm zero familiar with it, so i'm
not able to fix. I just needet it for redmine, and finally it worked.

Thanks for help!

Kind Regards,
Anton

2009/11/22, Luis Lavena <luislavena@gmail.com>:
> win32-service.
> The repository is here:
> Mongrel-users mailing list
> Mongrel-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
>

--
Надіслано з мого мобільного пристрою

Anton
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.