https://prefect.io logo
#prefect-community
Title
# prefect-community
j

Jose Daniel Posada Montoya

03/31/2022, 5:43 PM
Hi! has anyone faced this error when starting Orion? the .db file does not exist, it is new.
👋 2
a

Anna Geller

03/31/2022, 5:49 PM
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

Jose Daniel Posada Montoya

03/31/2022, 6:55 PM
Yes, using the last one and already tried without host option.
And yes, running within a Docker container.
a

Anna Geller

03/31/2022, 7:50 PM
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

Jose Daniel Posada Montoya

03/31/2022, 7:54 PM
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

Anna Geller

03/31/2022, 8:17 PM
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

Jose Daniel Posada Montoya

03/31/2022, 10:14 PM
Thanks, will be following the ticket and if I can find the solution will be posting it here
👍 2
b

Benny Warlick

04/01/2022, 1:10 AM
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

Anna Geller

04/01/2022, 11:30 AM
@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."
10 Views