wonsun
07/15/2022, 6:56 AMserver.database.connection_url
or server.database.host
to connecting information for MySQL database, not postgres?Anna Geller
07/15/2022, 9:37 AMwonsun
07/15/2022, 9:40 AMteam_db = Secret('my_strow').get()
But i got the error message like this.
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.
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?? 😟Anna Geller
07/21/2022, 10:45 PMexport PREFECT__CLOUD__USE_LOCAL_SECRETS=false
wonsun
08/22/2022, 6:12 AMValue error : Local Secret was not found.
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 GellerAnna Geller
08/22/2022, 10:39 AMexport PREFECT__CLOUD__USE_LOCAL_SECRETS=false
for Server, you only have local Secrets so you should use:
export PREFECT__CLOUD__USE_LOCAL_SECRETS=true
this will clarify more https://discourse.prefect.io/t/how-to-set-secrets-e-g-github-access-token-on-server/70wonsun
08/22/2022, 10:44 AMexport PREFECT__CLOUD__USE_LOCAL_SECRETS=false
but sometimes it works well and sometimes it doesn't... There is no secret set in local.Anna Geller
08/22/2022, 10:52 AMwonsun
08/22/2022, 10:53 AM