chenqingyu / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

run as service on windows fails #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the auto-sub binary, configure auto-sub.
2. Restart auto-sub binary => everything works
3. Run auto-sub as a service with srvman, firedaemon, w/e.
It fails with whatever settings I try. Starting up the normal binary and works 
again.

What is the expected output? What do you see instead?
Running the binary normally (expected): 
[18/Jan/2013:15:06:48] ENGINE Serving on 0.0.0.0:8083

Run as a service (what i get): 
[18/Jan/2013:15:16:04] ENGINE Serving on 0.0.0.0:8083
[18/Jan/2013:15:16:06] HTTP 
Request Headers:
  HOST: localhost:8083
  CONNECTION: Keep-Alive
  Remote-Addr: 127.0.0.1
  ACCEPT: text/html, application/xhtml+xml, */*
  USER-AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
  ACCEPT-ENCODING: gzip, deflate
[18/Jan/2013:15:16:06] HTTP Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 656, in respond
  File "cherrypy\lib\encoding.pyo", line 188, in __call__
  File "cherrypy\_cpdispatch.pyo", line 34, in __call__
  File "autosub\WebServer.pyo", line 257, in index
  File "Cheetah\Template.pyo", line 1259, in __init__
  File "Cheetah\Template.pyo", line 1546, in _compile
  File "genericpath.pyo", line 54, in getmtime
WindowsError: [Error 3] The system cannot find the path specified: 
'C:\\Windows\\system32\\interface\\templates\\home.tmpl'

What version of the product are you using? On what operating system?
auto-sub.Beta.0.5.6.Windows
Windows 2008 R2 SP1 x64

Please provide any additional information below.
Thank for this lovely tool.
Kind regards

Original issue reported on code.google.com by obscu...@backfi.re on 18 Jan 2013 at 2:19

GoogleCodeExporter commented 9 years ago
Looks like the same problem as issue 167, your auto-sub path is not configured 
correctly.

Make sure your path is configured correctly, it needs to point to the auto-sub 
folder.
Currently it's set to C:\Windows\system32 it seems...

[config]
path = C:\path\to\auto-sub

Original comment by Donny.va...@gmail.com on 19 Jan 2013 at 12:15

GoogleCodeExporter commented 9 years ago
My path is configured correctly.

Original comment by obscu...@backfi.re on 19 Jan 2013 at 6:32

GoogleCodeExporter commented 9 years ago
You'll probably swapped the path with your rootpath.
Remove the config file and check if it runs normally. If it does, your path was 
incorrect. Upload you config to reopen this issue.

Original comment by romke.va...@gmail.com on 7 Feb 2013 at 11:54

GoogleCodeExporter commented 9 years ago
That's what i tought too but it's not working. I checked and double checked 
everything, even started from scratch.
So here is my config.

Original comment by obscu...@backfi.re on 8 Feb 2013 at 2:51

Attachments:

GoogleCodeExporter commented 9 years ago
Auto-sub isnt reading your config file. In service with srvman, firedaemon, 
w/e. you have to tell it where the config file of auto-sub is located. This is 
not a bug in auto-sub. There is probably a community around for those tools.

Original comment by romke.va...@gmail.com on 15 Feb 2013 at 6:45

GoogleCodeExporter commented 9 years ago
There are no options to provide config files in any of these tools. Also I use 
SrvMan with SickBeard, SABnzbd, Headphones, µTorrent, ZNC, etc without any 
issues. So this actually is a bug.

Kind Regards

Original comment by obscu...@backfi.re on 19 Feb 2013 at 12:08