windows service for Thin server not working

Issue #73 resolved
Former user created an issue

using uru with 2 Ruby versions. They are the same exact version/build of Ruby.

Using one of the Ruby's with the proper gems, I am able to start the thin server through command prompt and test the application successfully. When I create a windows service for running the thin server, the service is able to start with no errors, but the application does not load and says "Service Temporarily Unavailable".

Am I doing something wrong?

Comments (2)

  1. Jon repo owner

    I've never tried uru and windows services. That said, since uru is essentially a PATH envar changer, the issue is likely that your service isn't getting a correct PATH for some reason. You may need to tweak the service config to ensure it has the absolute path to your ruby.exe or perhaps your <RUBY_INSTALL_DIR>\bin dir.

    I only use ruby these days for a few legacy projects and do not use thin any more. This may or may not be relevant to your scenario, but when I look at the bundler.bat wrapper created when the bundler gem was installed, I see the following

    ...
    :WinNT
    @"C:\Apps\rubies\ruby-2.2\bin\ruby.exe" "%~dpn0" %*
    

    which calls the bundler ruby script with the "correct" ruby. I suspect your thin.bat wrapper looks the same.

    All of this makes me think PATH config for your windows service is the problem rather than a bug with uru.

  2. Jon repo owner

    Closing as this doesn't appear to be an uru issue. If your testing shows otherwise, feel free to re-open.

  3. Log in to comment