Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundExecutionError: Could not locate a bind configured on mapper Mapper|User|users, SQL expression or this Session #4

Open
Mstrodl opened this issue Dec 16, 2015 · 10 comments

Comments

@Mstrodl
Copy link

Mstrodl commented Dec 16, 2015

I get an error when I use Factored with nginx and type in a username to the google authenticator form. When I enter it and hit next, I am brought to a page saying

Internal Server Error

The server encountered an unexpected internal server error

(generated by waitress)

I don't know if it's something wrong with my nginx vhost or my Factored config. Judging by the logs, I tried adding an sqlite database named "test.db" in my Factored installation (without anything in it. I just ran sqlite3 and did .save test)

@vangheem
Copy link
Contributor

Did you initialize the db?

/bin/factored_initializedb develop.ini

https://factored.readthedocs.org/en/latest/install.html

@Mstrodl
Copy link
Author

Mstrodl commented Dec 16, 2015

Yes, I did. I figured out that I shouldn't do that every time to start it however :). I initialized it and added my user but no dice. I can see that the user is shown when I run ./bin/factored_listusers

@Mstrodl
Copy link
Author

Mstrodl commented Dec 18, 2015

I forgot to mention that it didn't do this the first time I installed it. I didn't do anything different from the first time other than copying my old develop.ini instead of editing it by hand.

@DarkSun144
Copy link

Same issue here. How did you solve this problem? I run the server with the default sample config. bin/factored_initializedb develop.ini
bin/factored_adduser --username test develop.ini
bin/pserve develop.ini

bin/factored_listusers develop.ini works without any issues.

@vangheem
Copy link
Contributor

I can't reproduce. Might help if you send the full traceback along of the error.

@DarkSun144
Copy link

Ok, enclosed the traceback.

traceback.txt

@vangheem
Copy link
Contributor

What does your bin/pserve file look like? Did you follow the instructions for installation?

@DarkSun144
Copy link

Yes, i followed the instructions. Ok, i don't rename the downloaded folder but i think that's not the problem.
pserve.txt

@DarkSun144
Copy link

grmbl, I just installed it on another machine. Now everything seems working very well. I'll try to reinstall it maybe something went wrong during installation.

@DarkSun144
Copy link

Ok, got it. I've forgot to run sudo apt-get install python-dev on Ubuntu 14.04 so somehting failed during installation.
Nevertheless, thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants