thieman / dagobah

Simple DAG-based job scheduler in Python
Do What The F*ck You Want To Public License
755 stars 160 forks source link

Updating config file, changes not reflected #185

Open thieman opened 6 years ago

thieman commented 6 years ago

Greg Waldman asks:

Hi Travis - I just started using Dagobah. It's a great, simple, useful app. Just running into one issue: I can't see to change any of the config settings. I can find the dagobad.yml file, but even just changing the port from 9000 to 8000 does not seem to work (it still runs on 9000). I want to change the port, and add email report functionality, but I am not able to because it is just working with the default settings. I now even deleted the config file, and it still runs fine, but with all the original settings. This is all on Ubuntu. Any help would be great.

thieman commented 6 years ago

Where is the dagobahd.yml file you're updating located? Per the README, on first run Dagobah should create a copy of its templated config file at ~/.dagobahd.yml. You will need to update the file there, not the template inside the Dagobah source directory, for your changes to be reflected.

gwaldmantoast commented 6 years ago

this doesn't seem to be working either. i am using Anaconda Python. does that make a difference? the source directory is located at /home/ubuntu/anaconda2/lib/python2.7/site-packages/dagobah

thieman commented 6 years ago

I've got no experience with Anaconda specifically, but I'd be surprised if it was a factor here.

Is dagobahd logging anything interesting when you start it up?

gwaldmantoast commented 6 years ago

Logging output to /home/ubuntu/anaconda2/lib/python2.7/site-packages/dagobah/dae mon/dagobah.log Logger initialized at level INFO Package pysqlite has version 2.8.2 which is later than specified version 2.6.0. If you experience issues, try downgrading to version 2.6.0. Package sqlalchemy has version 1.1.13 which is later than specified version 0.9. 4. If you experience issues, try downgrading to version 0.9.4. Package alembic has version 0.9.5 which is later than specified version 0.6.4. I f you experience issues, try downgrading to version 0.6.4. INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. WARNI [root] Email.auth_required is True but Email.user is None. Emailing of rep orts will be disabled. WARNI [root] SSH config doesn't exist, no remote hosts will be listed Starting app on 127.0.0.1:9000

^is what it says, but I don't even know where it is getting the port from. I can delete any config files and it still starts up fine.

thieman commented 6 years ago

Could you please link a pastebin or something with the contents of /home/ubuntu/.dagobahd.yml? Be careful to strip out any sensitive information (passwords or whatever) first

thieman commented 6 years ago

Also is there anything in /home/ubuntu/anaconda2/lib/python2.7/site-packages/dagobah/daemon/dagobah.log that wasn't logged to console when you started up?