Michael Eggert
08/19/2021, 4:12 AMAmanda Wee
08/19/2021, 4:16 AMprefect server backend
, what happens if you run prefect server start
?Amanda Wee
08/19/2021, 4:17 AMprefect backend server
Kevin Kho
prefect server backend
and prefect server start
like Amanda mentioned to spin up Server. Just also want to mention that Prefect Cloud has 10000 task runs for free per month if you don’t want to spin up Server (some users are not aware).
There are also more docs hereMichael Eggert
08/19/2021, 2:25 PMadmin@host:~$ prefect backend server
Backend switched to server
admin@host:~$ prefect server start
ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.prefect-server value Additional properties are not allowed ('name' was unexpected)
services.apollo.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.graphql.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.hasura.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.postgres.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
Exception caught; killing services (press ctrl-C to force)
ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.prefect-server value Additional properties are not allowed ('name' was unexpected)
services.apollo.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.graphql.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.hasura.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
services.postgres.healthcheck value Additional properties are not allowed ('start_period' was unexpected)
Traceback (most recent call last):
File "/home/admin/.local/lib/python3.7/site-packages/prefect/cli/server.py", line 609, in start
["docker-compose", "pull"], cwd=compose_dir_path, env=env
File "/usr/lib/python3.7/subprocess.py", line 363, 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/admin/.local/bin/prefect", line 8, in <module>
sys.exit(cli())
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 829, in _call_
return self.main(*args, **kwargs)
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/admin/.local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/admin/.local/lib/python3.7/site-packages/prefect/cli/server.py", line 650, in start
["docker-compose", "down"], cwd=compose_dir_path, env=env
File "/usr/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker-compose', 'down']' returned non-zero exit status 1.
Zanie
1.18.0
Michael Eggert
08/19/2021, 11:14 PMTraceback (most recent call last):
File "urllib3/connectionpool.py", line 677, in urlopen
File "urllib3/connectionpool.py", line 392, in _make_request
File "http/client.py", line 1277, in request
File "http/client.py", line 1323, in _send_request
File "http/client.py", line 1272, in endheaders
File "http/client.py", line 1032, in _send_output
File "http/client.py", line 972, in send
File "docker/transport/unixconn.py", line 43, in connect
PermissionError: [Errno 13] Permission denied
Thought I saw someone had this issue before in a google search, but not finding it at the momentMichael Eggert
08/19/2021, 11:15 PMKevin Kho
docker run hello-world
?Michael Eggert
08/20/2021, 2:20 AMKevin Kho
docker run hello-world
works without sudo
), you should be good to run prefect server start