Hi ,Hope you all are doing well . Need help from ...
# prefect-ui
p
Hi ,Hope you all are doing well . Need help from your end to access prefect dashbaord i ran prefect server start _ _ _ _ _ _ _____ | _ \ _ \ __| __| __/ _| _| | _/ / _|| _|| | (_ | | |_| |_|_\___|_| |___\___| |_| Configure Prefect to communicate with the server with: prefect config set PREFECT_API_URL=http://127.0.0.1:4200/api View the API reference documentation at http://127.0.0.1:4200/docs The dashboard is not built. It looks like you're on a development version. See
prefect dev
for development commands. http://127.0.0.1:4200 : Getting response as {"detail":"Not Found"} could anyone help me to fix this issue
z
How did you install Prefect?
As it notes there, you’re using a development version so the UI isn’t prebuilt. You’d need to run
prefect dev build-ui
p
Thank you for replying
i ran prefect dev build-ui in linux enviorment prefect/ui/node_modules/vite/bin/vite.js:7 await import('source-map-support').then((r) => r.default.install()) ^^^^^ SyntaxError: Unexpected reserved word at Loader.moduleStrategy (internal/modules/esm/translators.js13318) at async link (internal/modules/esm/module_job.js4221) Traceback (most recent call last): File "/home/edisonai/mandole/prefect/prefect/src/prefect/cli/_utilities.py", line 41, in wrapper return fn(*args, **kwargs) File "/home/edisonai/mandole/prefect/prefect/src/prefect/cli/dev.py", line 162, in build_ui subprocess.check_output( File "/usr/lib/python3.10/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['npm', 'run', 'build']' returned non-zero exit status 1. An exception occurred.
Also when i ran prefect server start i am getting SSL certification issue : _ _ _ _ _ _ _____ | _ \ _ \ __| __| __/ _| _| | _/ / _|| _|| | (_ | | |_| |_|_\___|_| |___\___| |_| Configure Prefect to communicate with the server with: prefect config set PREFECT_API_URL=http://127.0.0.0:4200/api View the API reference documentation at http://127.0.0.0:4200/docs The dashboard is not built. It looks like you're on a development version. See
prefect dev
for development commands. 144606.563 | ERROR | prefect.server.services.telemetry - Failed to send telemetry: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) Shutting down telemetry service...
Please let me know how can i fix this issue and able to access prefect ui
?
z
Sounds like you’re not using the correct npm version
or node, perhaps.
p
okay . what is correct version i should install
i tried to upgrade npm but it didnt worked
Which node version are you using?
p
v12.22.9
z
We require
v16.5.0
p
okay will try to install v16.5.0
Also could you please tell me how can i solve this prefect.server.services.telemetry - Failed to send telemetry: [SSL: CERTIFICATE_VERIFY_FAILED] error
z
You can disable telemetry or fix your local SSL configuration
I’m not sure what’s going on with your SSL setup
You can also just ignore it
p
okay , i am updating node version once it is done will run and connect with you again if i see any issue in accessing prefect ui
prefect dev start Running: uvicorn --factory prefect.server.api.server:create_app --host 127.0.0.0 --port 4200 --log-level debug Installing npm packages... npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'rollup@3.15.0', npm WARN EBADENGINE required: { node: '>=14.18.0', npm: '>=8.0.0' }, npm WARN EBADENGINE current: { node: 'v16.5.0', npm: '7.19.1' } npm WARN EBADENGINE } Starting UI development server... Creating hot-reloading agent process...
@prefecthq/ui@2.8.0 serve
vite --host
VITE v4.1.2 ready in 345 ms ➜ Local: http://localhost:5173/ ➜ Network: http://10.177.160.151:5173/ ➜ Network: http://172.17.0.1:5173/ ➜ Network: http://172.18.0.1:5173/ Starting v2.8.2+15.g62c8a59e4.dirty agent connected to http://127.0.0.0:4200/api... _ _ _ _ _ _ _____ _ _ _ _ _ _____ | _ \ _ \ __| __| __/ _| _| /_\ / __| _| \| | _| | _/ / _|| _|| | (_ | | / _ \ (_ | _|| .` | | | |_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_| Agent started! Looking for work from queue(s): default... 233526.962 | ERROR | prefect.server.services.telemetry - Failed to send telemetry: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) Shutting down telemetry service...
while installing Prefect on Linux need to configure SSL certificate https://docs.prefect.io/getting-started/installation/
As I don't want to configure SSL certificate now , as per documentation PREFECT_API_TLS_INSECURE_SKIP_VERIFY need to set True
could you please where exactly i need to set this variable as True
z
As an environment variable or with the prefect config cli
p
okay
prefect agent Local start --env PREFECT_API_TLS_INSECURE_SKIP_VERIFY= True this is crct way to set env variable right
?
Hi Michael , Could you please share command to set enviorment variable
Hi Team , Could anyone help me to understand how Prefect flow execution happens from backend , do we use any container or how this flows get stored and accessed . Simply wants to understand flow,agent execution process from prefect end. if you any idea please do share
where to mounts prefect flows in kubernetes cluster and execute script inside cluster without creating any image ?