c

    Christian

    2 years ago
    Hi all. I currently try to test
    prefect core server
    . I have an instance of prefect server () and an agent running on a remote machine (via a VPN connection). Then I set
    export PREFECT__CLOUD__API=<http://myserver.edu:4200>
    Finally, I run my dummy flow which contains a flow.register() at the end... The output on the command is:
    Result Handler check: OK                                                                       │
    Flow: <http://localhost:8080/flow/17b029f0-fb9d-4ac5-bc54-fc4102a44631>
    Is this OK? The task does not show up on the UI. Anything I'm missing? Do I have to configure something else for this? My local laptops' diagnostic:
    {
      "config_overrides": {},
      "env_vars": [
        "PREFECT__CLOUD__API"
      ],
      "system_information": {
        "platform": "macOS-10.14.6-x86_64-i386-64bit",
        "prefect_version": "0.10.2",
        "python_version": "3.8.2"
      }
    }
    And the servers' diagnostic:
    {
      "config_overrides": {},
      "env_vars": [],
      "system_information": {
        "platform": "Linux-5.3.0-40-generic-x86_64-with-glibc2.29",
        "prefect_version": "0.10.2",
        "python_version": "3.8.2"
      }
    }
    Cheers, C
    Kyle Moon-Wright

    Kyle Moon-Wright

    2 years ago
    Hello @Christian, At first glance, this is most likely a networking issue that has been discussed here. Several users have found a workaround that you may be able to utilize.
    c

    Christian

    2 years ago
    Ah thanks... will check it out. I am/ was a bit confused since I've seen localhost mentioned after
    prefect diagnostics
    quite a bit. I also cannot find a config.toml in my prefect location locally (not sure if this is optional)?
    Kyle Moon-Wright

    Kyle Moon-Wright

    2 years ago
    Hmm, optional custom configuration files loaded on top of the default values can be stored as
    $HOME/.prefect/config.toml
    . The default toml could be in your python site-packages, however it is not recommended to change these settings.
    c

    Christian

    2 years ago
    ok. will try to read up on this... I was just browsing over the config.toml file on GitHub and am a bit confused which entries (if any) are necessary to set/ overwrite for me to send a task to a remote prefect server... https://github.com/PrefectHQ/prefect/blob/master/server/src/prefect_server/config.toml