Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under OctoPrint 1.10, ArcWelder deletes original .gcode file from filesystem, but OctoPrint UI folder still shows the file. #266

Open
jimmiedave opened this issue May 2, 2024 · 0 comments

Comments

@jimmiedave
Copy link

jimmiedave commented May 2, 2024

I have ArcWelder set to convert a file, then delete the original.

Since upgrading OctoPrint to 1.10, I've noticed that files I send from ORCA via the API appear in the OctoPrint folder specified, ArcWelder automatically processes them, and deletes the original .gcode file from the Linux filesystem, but leaves the representation of the file in the OctoPrint UI.

No amount of attempting to delete the OctoPrint representation using the OctoPrint UI will get it to go away. The solution is to log into the Linux machine, touch the filesystem in the appropriate folder with the exact filename featured in the OctoPrint UI. That means there's now a (0-byte) file that can be deleted. Then in OctoPrint UI, I can delete the file I've created with touch.

The error message from OctoPrint is: "Failed to remove entry. Could not remove entry. Please check octoprint.log for possible reasons."

Running a Raspberry Pi 4 with 4GB RAM, and the OctoPi distribution 1.0.0 with camera stack from 5/2023, upgraded with OctoPrint 1.10, latest Linux updates.

    OctoPrint 1.10.0 Python 3.9.2 OctoPi* 1.0.0cam (build 2023.10.09.154319)

"feels" like a race condition: like the file gets deleted from the filesystem by ArcWelder before OctoPrint knows there's a file to delete or something.

FYI, I've been working with a "small" file today while this has been occurring. The gcode is 2.2MB before ArcWelder processing. The small file might trigger a race, where a large one might not. That again, is just a guess.

Update: More interesting, it appears you might be able to "cut" the nonexistent file, while you can't "delete" it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant