question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a --no-cache option to prefect server start command

See original GitHub issue

Description

I’m deploying the Prefect Server on a remote Docker Host. I therefore change the address for server.ui.graphql_url in config.toml to reflect this. However this isn’t reflected in UI, which keeps referring to localhost. It does show in the deployment logs though. image image

Expected Behavior

I expected the address to be replaced.

Reproduction

  1. set DOCKER_HOST to use remote Docker. In my case I have called it srvdocker01
  2. use the following config.toml
backend = "server"

[server]
host = "http://srvdocker01"
port = "4200"
host_port = "4200"
endpoint = "${server.host}:${server.port}"
	
   [server.graphql]
    host = "srvdocker01"

	[server.ui]
    host = "http://srvdocker01"
    port = "8081"
    host_port = "8081"
    endpoint = "${server.ui.host}:${server.ui.port}"
    graphql_url = "http://srvdocker01:4200/graphql"
  1. run prefect server start
  2. go to http://srvdocker01:8081

Environment

>prefect diagnostics
{
  "config_overrides": {
    "backend": true,
    "server": {
      "endpoint": true,
      "graphql": {
        "host": true
      },
      "host": true,
      "host_port": true,
      "port": true,
      "ui": {
        "endpoint": true,
        "graphql_url": true,
        "host": true,
        "host_port": true,
        "port": true
      }
    }
  },
  "env_vars": [],
  "system_information": {
    "platform": "Windows-10-10.0.18362-SP0",
    "prefect_version": "0.11.5",
    "python_version": "3.7.0"
  }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
thomasfrederikhoeckcommented, Jun 12, 2020

Running docker system prune -a solved it. However though I would expect when I run prefect server start and it says that it is using the setting from my config.toml it should also do it to avoid confusion.

1reaction
thomasfrederikhoeckcommented, Jun 15, 2020

Does this means it is fixed, or that is deemed unnecessary to fix ? A simple fix would be to at a --no-cache option to prefect server start that would be given to docker-compose up such that the user doesn’t have to do the cleaning themselfs in Docker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

server - Prefect Docs
start. This command spins up all infrastructure and services for the Prefect Core server Options: --version, -v TEXT The server image versions to...
Read more >
Can we concatenate several RUN instructions with --no-cache ...
FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /usr/local/bin COPY --from=build /go/src/github.com/you/project/app . CMD ...
Read more >
rclone command man page - ManKier
There are a few command line options to consider when starting an rclone Docker container from the rclone image. You need to mount...
Read more >
Dependency Pre-Bundling - Vite
Pre-bundling dependencies: react react-dom (this will be run only when your ... restart the dev server with the --force command line option for...
Read more >
rclone(1) — Arch manual pages
Install. Rclone is a Go program and comes as a single binary file. ... There are a few command line options to consider...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found