Ruslan
01/15/2021, 1:47 PMBenedikt Maria Beckermann
01/15/2021, 2:47 PMRuslan
01/15/2021, 7:36 PMTadas
01/15/2021, 10:05 PMmerlin
01/20/2021, 12:28 AMRobert Bastian
01/20/2021, 7:10 PM[2021-01-20 18:57:29,015] INFO - agent | Deploying flow run 0ed795b0-8eb3-4086-bf40-c19a54792a7b
'NoneType' object has no attribute 'setup'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.8/site-packages/prefect/__main__.py", line 4, in <module>
cli()
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/prefect/cli/execute.py", line 90, in flow_run
raise exc
File "/usr/local/lib/python3.8/site-packages/prefect/cli/execute.py", line 75, in flow_run
environment.setup(flow)
AttributeError: 'NoneType' object has no attribute 'setup'
[2021-01-20 18:58:11,469] INFO - agent | Process PID 188 returned non-zero exit code
However, I can run it locally using flow.run() without issue. I can see in the code that environment is not set, but I don’t understand what I’m doing wrong… Thanks in advance!Dee M
01/20/2021, 7:48 PMParameter validation failed: Invalid type for parameter containerDefinitions[0].logConfiguration.options.awslogs-create-group, value: True, type: <class 'bool'>, valid types: <class 'str'>
SK
01/20/2021, 9:34 PMPedro Martins
01/20/2021, 10:24 PMjack
01/21/2021, 7:21 PMmerlin
01/21/2021, 7:50 PMflow.storage
assignment in the file based storage discussion:
flow.storage = GitHub(
repo="org/repo", # name of repo
path="flows/my_flow.py", # location of flow
Josh Greenhalgh
01/21/2021, 10:27 PMprefect server create-tenant ...
it errors every time because its trying to connect to localhost:4200
rather than myserver_ip:4200
- how do I configure it to use the correct hostname?SK
01/21/2021, 11:29 PMJosh Greenhalgh
01/22/2021, 10:00 AMGarret Cook
01/22/2021, 4:57 PMAdrian
01/22/2021, 9:32 PMAdrian
01/22/2021, 9:53 PMShyam Meduri
01/26/2021, 9:11 AMJosh Greenhalgh
01/26/2021, 12:46 PMagent:
# enabled determines if the Prefect Kubernetes agent is deployed
enabled: true
prefectLabels: ['prefect-agent']
ui:
apolloApiUrl: <http://prefect-apollo.prefect:4200/graphql>
The UI just gives me the following error;
Oops! It looks like something went wrong when trying to connect; make sure Prefect Server is running at the URL above and try again.
However if I start a shell on the UI pod and run curl against that URL it connects as expected to the api;
# curl <http://prefect-apollo.prefect:4200/graphql>
GET query missing.#
The reason I am even trying this is because if I use the public IP of the apollo server I always end up getting very slow UI and occasionally complete disconnects from the graphql server.Josh Greenhalgh
01/26/2021, 5:30 PMNate Lambeth
01/26/2021, 10:16 PMdef main():
# Schedule for every day @ 4AM ET / 9AM UTC
today = datetime.now(timezone.utc)
start = datetime(
int(today.year),
int(today.month),
int(today.day+1),
hour=int(START_TIME.hour),
minute=int(START_TIME.minute),
tzinfo=timezone.utc
)
schedule = IntervalClock(
start_date=start,
interval=timedelta(days=1),
)
with Flow(schedule=schedule):
.........
when i try to register this flow, i get the following:
<snip>
TypeError: not all arguments converted during string formatting
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "register_flows.py", line 7, in <module>
dev_flow.register()
File "/usr/local/bin/ddiqa-aws/ddiqa_aws/flows/dev_flow.py", line 234, in register
main()
File "/usr/local/bin/ddiqa-aws/ddiqa_aws/flows/dev_flow.py", line 227, in main
flow.register(
File "/home/nlambeth/.local/lib/python3.8/site-packages/prefect/core/flow.py", line 1668, in register
registered_flow = client.register(
File "/home/nlambeth/.local/lib/python3.8/site-packages/prefect/client/client.py", line 802, in register
raise ValueError(
ValueError: Flow could not be deserialized successfully. Error was: TypeError('not all arguments converted during string formatting')
this flow registers and runs 100% ok if i don't pass schedule
in to Flow(). i can't seem to find any relevant bug reports out there.Josh Greenhalgh
01/27/2021, 5:27 PMprefect-agent-55775d5684-qml7k 1/1 Running 0 5h21m
prefect-apollo-b5d9c4cd8-82txc 1/1 Running 1 28h
prefect-graphql-5f77cd4674-wmfbj 0/1 Running 21 22h
prefect-hasura-bf4dd5d95-z2j8x 0/1 Running 24 28h
prefect-job-e63a7de9-nwrxg 1/1 Running 0 20m
prefect-postgresql-0 1/1 Running 0 28h
prefect-towel-5dc84cb477-zx2rg 1/1 Running 0 28h
prefect-ui-8bd5ff9f8-2scsz 1/1 Running 0 22h
They keep on restarting and going into CrashLoopBackOff
with errors like;
Warning Unhealthy 9m39s (x45 over 22h) kubelet Readiness probe failed: Get <http://10.40.14.208:4201/health>: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Warning Unhealthy 9m37s (x41 over 22h) kubelet Liveness probe failed: Get <http://10.40.14.208:4201/health>: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Warning Unhealthy 5m18s (x35 over 109m) kubelet Liveness probe failed: Get <http://10.40.14.208:4201/health>: dial tcp 10.40.14.208:4201: connect: connection refused
Has anybody had similar problems and did they manage to solve them?Marco Petrazzoli
01/27/2021, 7:53 PMERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
Exception caught; killing services (press ctrl-C to force)
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
Traceback (most recent call last):
File "/home/ubuntu/prefect/lib/python3.8/site-packages/prefect/cli/server.py", line 346, in start
subprocess.check_call(
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['docker-compose', 'pull']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/prefect/bin/prefect", line 8, in <module>
sys.exit(cli())
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/ubuntu/prefect/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/ubuntu/prefect/lib/python3.8/site-packages/prefect/cli/server.py", line 384, in start
subprocess.check_output(
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker-compose', 'down']' returned non-zero exit status 1.
Seems like docker-compose.yml is missingDavid Kuda
01/27/2021, 9:46 PM1) create table a
, 2) create table b
and 3) join data from tables a and b
. We want to use the dask executor, because there are numerous more tasks. What is the recommended way to have task 1
and task 2
run simultaneously, but have task 3
wait for tasks 1 and 2? The dask executor would create a DAG where it would run tasks 1, 2 and 3 together, but that will fail, since task 3 is depending on tasks 1 and 2. The Python code however, has no dependency.
I have few ideas, and I am excited to see your opinion on that question. I hope that I could express myself clearly. Best regards from Berlin, David.Peyton Runyan
01/28/2021, 2:14 PMprefect server start --use-volume
then navigate to <http://0.0.0.0:4200/>
to access the graphql gui, and then input
mutation {
set_secret(input: { name: "app_pw", value: "values_of_password" }) {
success
}
}
per this documentation https://docs.prefect.io/orchestration/concepts/secrets.html#graphql
and I get back an error
{
"error": {
"errors": [
{
"message": "Cannot query field \"set_secret\" on type \"Mutation\".",
"locations": [
{
"line": 2,
"column": 3
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED"
}
}
]
}
}
I get a similar error trying
query {
secret(order_by: { name: asc }) {
name
}
}
Marc Lipoff
01/28/2021, 2:31 PMLukas N.
01/28/2021, 2:56 PM0.13.19
to 0.14.4
. Kubernetes agent creates job specifications with wrong command.Jakub Vedral
01/29/2021, 8:20 AMJakub Vedral
01/29/2021, 12:54 PMFailed to load and execute Flow's environment: ModuleNotFoundError("No module named 'C'")
Can anybody tell me some hint where to look for a cause? googling did not help... 😞
More details in thread.Sagun Garg
01/31/2021, 5:16 PM2021-02-01 01:06:15{"severity": "DEBUG", "name": "prefect-server.ZombieKiller", "message": "Sleeping for 120.0 seconds..."}
2021-02-01 01:04:48{"severity": "ERROR", "name": "prefect-server.Lazarus", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}
2021-02-01 01:04:48{"severity": "DEBUG", "name": "prefect-server.Lazarus", "message": "Sleeping for 600.0 seconds..."}
2021-02-01 01:04:25{"severity": "ERROR", "name": "prefect-server.Scheduler", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}
2021-02-01 01:04:25{"severity": "DEBUG", "name": "prefect-server.Scheduler", "message": "Sleeping for 300.0 seconds..."}
2021-02-01 01:04:15{"severity": "ERROR", "name": "prefect-server.ZombieKiller", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}
Sagun Garg
01/31/2021, 5:16 PM2021-02-01 01:06:15{"severity": "DEBUG", "name": "prefect-server.ZombieKiller", "message": "Sleeping for 120.0 seconds..."}
2021-02-01 01:04:48{"severity": "ERROR", "name": "prefect-server.Lazarus", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}
2021-02-01 01:04:48{"severity": "DEBUG", "name": "prefect-server.Lazarus", "message": "Sleeping for 600.0 seconds..."}
2021-02-01 01:04:25{"severity": "ERROR", "name": "prefect-server.Scheduler", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}
2021-02-01 01:04:25{"severity": "DEBUG", "name": "prefect-server.Scheduler", "message": "Sleeping for 300.0 seconds..."}
2021-02-01 01:04:15{"severity": "ERROR", "name": "prefect-server.ZombieKiller", "message": "Unexpected error: ConnectError(gaierror(-2, 'Name or service not known'))"}