Hi! has anyone faced this error when starting Orio...
# ask-community
j
Hi! has anyone faced this error when starting Orion? the .db file does not exist, it is new.
👋 2
a
if you use the latest Orion version, you shouldn't have to bind the host to 0.0.0.0
Do you run it from within a Docker container?
prefect orion start
should be sufficient when starting Orion locally
j
Yes, using the last one and already tried without host option.
And yes, running within a Docker container.
a
Can you try it locally without Docker? This may be much easier
check this install guide for troubleshooting https://orion-docs.prefect.io/getting-started/installation/
j
Locally works, what I don't understand is why it doesn't work in the container if it used to work without any problem. I just wanted to check if anyone knew about the error and had clues on what may cause it.
a
I'd assume it's because the Docker network works differently than your local network, and Orion has services that need to communicate together, and possibly cannot within a Docker network
@Marvin open "Orion: when running 2.0 within Docker container or Google Cloud Shell users get AttributeError: type object 'ORMInsert' has no attribute 'orm_pre_session_exec'"
j
Thanks, will be following the ticket and if I can find the solution will be posting it here
👍 2
b
Cloud 2.0 is the workaround for me on Google Cloud Shell. Locally on Cloud Shell, I run
python test.py
with a simple flow from the tutorial and get the 'ORMInsert' error. Then I just run
prefect cloud login
and
python test.py
again and it works.
❤️ 1
a
@Benny Warlick I appreciate that you came back here to help another user with the solution that worked for you. Thanks a lot!
for posterity - the issue was with SQLAlchemy that is fixed in the latest release - upgrading should resolve it:
Copy code
pip install -U sqlalchemy
"I reinstalled everything and rebuilt the image after the sqlalchemy fix and everything is working fine running Orion server within Docker container."