Closed TobiSan5 closed 7 months ago
The traceback you've provided indicates that there is a PermissionError
occurring when the Dagster process is trying to clean up a temporary directory. This error is happening because the process does not have the necessary permissions to delete a file or directory, or because the file or directory is being used by another process.
Here are a few steps you can take to troubleshoot this issue:
Check Permissions: Ensure that the user running the Dagster process has the necessary permissions to delete files and directories in the specified location.
Check for Open Files: Make sure that no other processes are using the files or directories that Dagster is trying to delete. This can happen if you have a file open in an editor, or if another process is accessing the file.
Path in Use: The error message "Prosessen får ikke tilgang til filen fordi den brukes av en annen prosess" translates to "The process cannot access the file because it is being used by another process." This suggests that the directory or file Dagster is trying to remove is locked because it's in use. You can try closing any applications that might be using the files or directories in question.
Temporary Directory on Network Drive: If the temporary directory is located on a network drive or a synchronized folder (like Dropbox), there might be synchronization issues that prevent the deletion. Try setting the temporary directory to a local path that is not being synchronized or monitored by other services.
Restart the System: In some cases, simply restarting the system can free up the locked files or directories and resolve the issue.
Yes, the problem could very well be caused by the file in question being on a syncronized folder. My project folder is within my Dropbox folder. Dropbox came up with a notification about a file being removed from Dropbox. I later followed the tutorial on docs.dagster.io, and ran the web UI with the command dagster dev, and no such error occured.
fre. 22. mars 2024 kl. 14:31 skrev Gareth Brickman @.***
:
The traceback you've provided indicates that there is a PermissionError occurring when the Dagster process is trying to clean up a temporary directory. This error is happening because the process does not have the necessary permissions to delete a file or directory, or because the file or directory is being used by another process.
Here are a few steps you can take to troubleshoot this issue:
1.
Check Permissions: Ensure that the user running the Dagster process has the necessary permissions to delete files and directories in the specified location. 2.
Check for Open Files: Make sure that no other processes are using the files or directories that Dagster is trying to delete. This can happen if you have a file open in an editor, or if another process is accessing the file. 3.
Path in Use: The error message "Prosessen får ikke tilgang til filen fordi den brukes av en annen prosess" translates to "The process cannot access the file because it is being used by another process." This suggests that the directory or file Dagster is trying to remove is locked because it's in use. You can try closing any applications that might be using the files or directories in question. 4.
Temporary Directory on Network Drive: If the temporary directory is located on a network drive or a synchronized folder (like Dropbox), there might be synchronization issues that prevent the deletion. Try setting the temporary directory to a local path that is not being synchronized or monitored by other services. 5.
Restart the System: In some cases, simply restarting the system can free up the locked files or directories and resolve the issue.
— Reply to this email directly, view it on GitHub https://github.com/dagster-io/dagster/issues/20654#issuecomment-2015106324, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY7TYSEMJYLN7UK3J6K55DYZQXEXAVCNFSM6AAAAABFC5NB7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVGEYDMMZSGQ . You are receiving this because you authored the thread.Message ID: @.***>
-- Med hilsen / With regards from,
Torbjørn Wikestad +47 41 26 41 07
Dagster version
dagster, version 1.6.11
What's the issue?
I just installed dagster and dagit to a project environment (using conda/conda-forge) based on python 3.11. When I tried to start the webserver with the dagit script on the command line, the following error occured.
What did you expect to happen?
I haven't implemented any dagster elements in the code base, but I wanted to see how the web interface looked like. I didn't expect it to fail immediately. Also, the error message indicates that the error was caused by faulty file handling by dagster_webserver, since the traceback shows a conflict between differentent process trying to access a temporary file created by dagster_webserver.
How to reproduce?
Deployment type
None
Deployment details
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.