barbequesauce / Watcher3

Fork of nosmokingbandit/Watcher3 as the original seems inactive. PRs welcome, support is community based.
Other
69 stars 18 forks source link

Can't start Watcher on Windows #143

Closed buddhaCode closed 4 years ago

buddhaCode commented 4 years ago

Hi folks, I am trying to start a fresh watcher install on Windows 10 using Python 3.7. It is creating the DB and config file, but that's it. It is exiting right after start. The log file in emtpy :( Any ideas?

C:\Users\arne\Downloads\Watcher3>C:\Users\arne\AppData\Local\Programs\Python\Python37-32\python.exe watcher.py
Connected to database sqlite:///C:\Users\arne\Downloads\Watcher3\userdata\watcher.sqlite
Config file found, merging any new options.
Clearing Mako cache.

Trying to open localhost:9090 show host not reachable.

barbequesauce commented 4 years ago

Can you try to start it with the --stdout switch please?

C:\Users\arne\Downloads\Watcher3>C:\Users\arne\AppData\Local\Programs\Python\Python37-32\python.exe watcher.py --stdout

That should put a bit more in the console, hopefully telling us where it's getting hung up.

buddhaCode commented 4 years ago

I guess he is not realy talkative :( For a fresh start, I removed all the userdata files.

C:\Users\arne\Downloads\Watcher3>py -3 watcher.py --stdout
Creating database file C:\Users\arne\Downloads\Watcher3\userdata\watcher.sqlite
Creating tables.
Connected to database sqlite:///C:\Users\arne\Downloads\Watcher3\userdata\watcher.sqlite
## Config file not found. Creating new basic config C:\Users\arne\Downloads\Watcher3\userdata\config.cfg. Please review settings. 
Clearing Mako cache.

C:\Users\arne\Downloads\Watcher3>

Maybe I am missing some dependencies? But I didn't found a requirements.txt file. Or is this just python2 world? I am from the php ecosystem. I am not so much familiar with python.

barbequesauce commented 4 years ago

Dependencies wouldnt be a concern, as we bundle them all in the source tree.

Not sure what else is going on here. Are you using any python tools like pyenv or venv?

I just spun up a new Win10 machine and installed 3.7.6 off the website, then cloned and this was the output (as expected). I have to think there is something going on within your environment - maybe security or Windows Defender?

C:\Users\bbq\Watcher3>python watcher.py --stdout
Creating database file C:\Users\bbq\Watcher3\userdata\watcher.sqlite
Creating tables.
Connected to database sqlite:///C:\Users\bbq\Watcher3\userdata\watcher.sqlite
## Config file not found. Creating new basic config C:\Users\bbq\Watcher3\userdata\config.cfg. Please review settings. 
Clearing Mako cache.
DEBUG [2020-04-13 20:49:04,396] core.version.__init__.182: Setting updater to Git.
DEBUG [2020-04-13 20:49:04,396] core.version.get_current_hash.130: Retreiving local commit hash.
DEBUG [2020-04-13 20:49:04,396] core.version.runner.95: Executing Git command: ['git', 'rev-parse', 'HEAD']
INFO [2020-04-13 20:49:04,506] core.version.update_check.31: Checking for updates.
DEBUG [2020-04-13 20:49:04,506] core.version.available.151: Checking Git execution permission.
DEBUG [2020-04-13 20:49:04,506] core.version.runner.95: Executing Git command: ['git', 'version']
DEBUG [2020-04-13 20:49:04,600] core.version.fetch.163: Fetching latest Git info.
DEBUG [2020-04-13 20:49:04,600] core.version.runner.95: Executing Git command: ['git', 'fetch']
INFO [2020-04-13 20:49:05,146] core.version._update_check.265: Current local hash: dd354f5ad59721e60786aaf6d12e59750811a135
DEBUG [2020-04-13 20:49:05,146] core.version.get_commit_hash_history.140: Retreiving commit hash history.
DEBUG [2020-04-13 20:49:05,146] core.version.runner.95: Executing Git command: ['git', 'rev-list', '@{u}']
DEBUG [2020-04-13 20:49:05,240] core.version._update_check.282: Watcher is up to date.
INFO [2020-04-13 20:49:05,271] core.scheduler.create_plugin.28: Initializing scheduler plugin.
DEBUG [2020-04-13 20:49:05,271] core.sqldb.execute.166: Executing SQL command: ['SELECT * FROM TASKS']
DEBUG [2020-04-13 20:49:05,271] core.sqldb.row_exists.655: Checking if name="Movie Search" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,271] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Movie Search" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,271] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,271] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Movie Search']]
DEBUG [2020-04-13 20:49:05,287] core.sqldb.row_exists.655: Checking if name="Update Checker" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,287] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Update Checker" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,287] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,287] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Update Checker']]
DEBUG [2020-04-13 20:49:05,303] core.sqldb.row_exists.655: Checking if name="IMDB Sync" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,303] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="IMDB Sync" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,318] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,318] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'IMDB Sync']]
DEBUG [2020-04-13 20:49:05,334] core.sqldb.row_exists.655: Checking if name="Metadata Update" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,334] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Metadata Update" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,350] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,350] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Metadata Update']]
DEBUG [2020-04-13 20:49:05,365] core.sqldb.row_exists.655: Checking if name="PopularMovies Sync" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,365] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="PopularMovies Sync" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,365] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,365] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'PopularMovies Sync']]
DEBUG [2020-04-13 20:49:05,365] core.sqldb.row_exists.655: Checking if name="PostProcessing Scan" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,381] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="PostProcessing Scan" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,397] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,397] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'PostProcessing Scan']]
DEBUG [2020-04-13 20:49:05,397] core.sqldb.row_exists.655: Checking if name="Trakt Sync" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,397] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Trakt Sync" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,412] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,412] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Trakt Sync']]
DEBUG [2020-04-13 20:49:05,412] core.sqldb.row_exists.655: Checking if name="Missing Files Scan" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,412] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Missing Files Scan" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,428] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,428] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Missing Files Scan']]
DEBUG [2020-04-13 20:49:05,443] core.sqldb.row_exists.655: Checking if name="Postprocessed Paths Scan" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,443] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Postprocessed Paths Scan" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,459] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,475] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Postprocessed Paths Scan']]
DEBUG [2020-04-13 20:49:05,475] core.sqldb.row_exists.655: Checking if name="Torrents Status Check" exists in database table TASKS
DEBUG [2020-04-13 20:49:05,475] core.sqldb.execute.166: Executing SQL command: ['SELECT 1 FROM TASKS WHERE name="Torrents Status Check" COLLATE NOCASE']
DEBUG [2020-04-13 20:49:05,506] core.sqldb.write.193: Writing data to TASKS.
DEBUG [2020-04-13 20:49:05,506] core.sqldb.execute.166: Executing SQL command: ['INSERT INTO TASKS ( last_execution, name ) VALUES ( ?, ? )', ['2020-04-13 20:49:05', 'Torrents Status Check']]
[13/Apr/2020:20:49:05] ENGINE Listening for SIGTERM.
INFO [2020-04-13 20:49:05,537] cherrypy.error.error.219: [13/Apr/2020:20:49:05] ENGINE Listening for SIGTERM.
[13/Apr/2020:20:49:05] ENGINE Bus STARTING
INFO [2020-04-13 20:49:05,553] cherrypy.error.error.219: [13/Apr/2020:20:49:05] ENGINE Bus STARTING
[13/Apr/2020:20:49:05] ENGINE Serving on http://0.0.0.0:9090
INFO [2020-04-13 20:49:05,944] cherrypy.error.error.219: [13/Apr/2020:20:49:05] ENGINE Serving on http://0.0.0.0:9090
[13/Apr/2020:20:49:05] ENGINE Bus STARTED
INFO [2020-04-13 20:49:05,944] cherrypy.error.error.219: [13/Apr/2020:20:49:05] ENGINE Bus STARTED
buddhaCode commented 4 years ago

Hmmm I see. That's odd. The next step in your output would be be setting up the git updater. Since I used the tar ball download, I now tried cloning the repo with git. But that doesn't change anything. Maybe something with my git installalation is wrong. You mentioned my security or windows defender setup. I am not aware, that a changed something from the default settings. What so ever. I tried the docker contrainer. That's works pretty fine. I think a can life with that :) If you do not wish to go into further details, you can close this and I stick with docker. Thanks for your support so far!

barbequesauce commented 4 years ago

Glad you got it working!

The container automatically gets rebuilt when we make changes, so that's really no different than a git install...