wonsun07/15/2022, 6:56 AM
to connecting information for MySQL database, not postgres?
Anna Geller07/15/2022, 9:37 AM
wonsun07/15/2022, 9:40 AM
But i got the error message like this.
team_db = Secret('my_strow').get()
I think that I'm not enough understanding about secret on cloud and local secret. Also weird things, last week i already run this flow code that same method. What am i missing?? 😟
Traceback (most recent call last): File "/home/.prefect/flow.py", line 199, in <module> team_db = Secret('my_strow').get() File "/home/enviorments/test/lib/python3.10/site-packages/prefect/client/secrets.py", line 170, in get raise ValueError( ValueError: Local Secret "my_strow" was not found.
Anna Geller07/21/2022, 10:45 PM
wonsun08/22/2022, 6:12 AM
appears. I want to fundamentally solve this problem, could you please tell me what is wrong? The order in which I execute the prefect (1.0) flow is usually as follows. 1. virtual enviorment activate 2. prefect backend cloud 3. prefect server start 4. prefect agent local start -p <entered specific path> 5. export PREFECT__CLOUD__USE_LOCAL_SECRETS=false Is there something wrong? I hope this error doesn't happen again.. 😞 @Anna Geller
Value error : Local Secret was not found.
Anna Geller08/22/2022, 10:39 AM
for Server, you only have local Secrets so you should use:
this will clarify more https://discourse.prefect.io/t/how-to-set-secrets-e-g-github-access-token-on-server/70
wonsun08/22/2022, 10:44 AM
but sometimes it works well and sometimes it doesn't... There is no secret set in local.
Anna Geller08/22/2022, 10:52 AM
wonsun08/22/2022, 10:53 AM