<@ULVA73B9P> how do I fix this? I'm on Prefect ver...
# ask-marvin
s
@Marvin how do I fix this? I'm on Prefect version 2.14.20. These are logs from my 'process' workpool worker on my ec2 instance. tail -f worker.log import prefect.settings File "/home/ec2-user/.local/lib/python3.10/site-packages/prefect/settings.py", line 93, in module from prefect._internal.compatibility.deprecated import generate_deprecation_message File "/home/ec2-user/.local/lib/python3.10/site-packages/prefect/_internal/compatibility/deprecated.py", line 26, in module from prefect.utilities.callables import get_call_parameters File "/home/ec2-user/.local/lib/python3.10/site-packages/prefect/utilities/callables.py", line 23, in module from griffe.dataclasses import Docstring ModuleNotFoundError: No module named 'griffe.dataclasses' 004409.462 | ERROR | prefect.flow_runs.worker - Process 20202 exited with status code: 1 004409.875 | INFO | prefect.flow_runs.worker - Reported flow run '4ee854a3-4c96-47f7-bcda-c9b69e2c6c73' as crashed: Flow run infrastructure exited with non-zero status code 1. File "/home/ec2-user/.local/lib/python3.10/site-packages/prefect/utilities/callables.py", line 23, in module from griffe.dataclasses import Docstring ModuleNotFoundError: No module named 'griffe.dataclasses' 160247.434 | ERROR | prefect.flow_runs.worker - Process 17221 exited with status code: 1 160247.849 | INFO | prefect.flow_runs.worker - Reported flow run '3b17271c-78d9-48c8-b034-7b721cc8b32c' as crashed: Flow run infrastructure exited with non-zero status code 1.
m
Your message was too long by 437 tokens...
The error you're encountering is due to a recent breaking change in the
griffe
library, which Prefect depends on. The
griffe
library has updated its module names in version 1.0.0, causing the
ModuleNotFoundError
you're seeing. To resolve this issue, you should pin the
griffe
library to a version that is compatible with your Prefect installation, specifically a version prior to 1.0.0. You can do this by running:
Copy code
bash
pip install griffe<1.0.0
This will ensure that you have a compatible version of
griffe
installed. For more context, you can refer to these GitHub issues discussing the problem: - Issue 14978 - Issue 14975 If you have any further questions or issues, feel free to ask.
s
@Marvin okay it worked! I'm getting GET http://localhost:8265/api/grafana_health 500 (Internal Server Error) TypeError: Cannot read properties of undefined (reading 'split') TypeError: Cannot read properties of undefined (reading 'split') GET http://localhost:8265/api/serve/applications/ 501 (Not Implemented) Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split') GET http://localhost:8265/api/prometheus_health 500 (Cannot connect to host localhost:9090 ssl:default [Connect call failed ('127.0.0.1', 9090)]) when I try to access my dashboard from the browser
m
The errors you're encountering when accessing your Prefect dashboard seem to be related to configuration issues or missing services. Here's a breakdown: 1. 500 Internal Server Error: This typically indicates a server-side issue. It might be due to incorrect configurations or missing dependencies on your server. 2. 501 Not Implemented: This suggests that the feature or endpoint you're trying to access isn't implemented. It could be a misconfiguration or an attempt to access a non-existent endpoint. 3. TypeError: Cannot read properties of undefined (reading 'split'): This error often occurs when the code is trying to access a property of an undefined object. It might be due to missing configuration values or incorrect environment settings. 4. Connection Issues to localhost:9090: This error indicates that the service expected to be running on port 9090 (likely Prometheus) isn't available. Ensure that the required services are running and accessible. To address these issues, consider the following steps: - Check Configuration: Verify that your Prefect server and any related services (like Prometheus) are correctly configured and running. - Service Availability: Ensure that all necessary services are up and running. You might need to start services like Prometheus if they're part of your setup. - Environment Variables: Double-check any environment variables or configuration files for missing or incorrect values. If these steps don't resolve the issues, you might need to consult Prefect's official documentation or their community forums for more specific guidance related to your setup.
s
@Marvin okay where can I see dashboard logs on the ray head node server?
m
The Prefect documentation does not explicitly mention where to find dashboard logs on a Ray head node server. However, typically, logs for services running on a server can be found in standard logging directories or specified log files. Here are some general steps you can take to locate the logs: 1. Standard Log Directories: Check common log directories such as
/var/log/
on your server. Services often log to files in these directories by default. 2. Ray Logs: If Ray is managing the Prefect dashboard, you can check Ray's logs. These are typically found in the directory where Ray is running, often under a
logs
subdirectory. 3. Service Configuration: If you have access to the configuration files for your Prefect or Ray setup, check for any specified log file paths. 4. Environment Variables: Sometimes, log locations are set via environment variables. Ensure that any relevant variables are correctly configured. If these steps do not help, you may need to consult the specific configuration or deployment documentation for your setup.