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

Invalid cross-device link on Linux #710

Closed
dattas opened this issue Jan 9, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@dattas
Copy link
Contributor

commented Jan 9, 2015

  1. What were you doing?
    Uploading a .stl file on a linux filesystem which has a separate /tmp filesystem, this appears to only occur in Centos and Archlinux and not the *buntu and *bian systems
  2. What did you expect to happen?
    File would show up in the file manager so that it can be edited later
  3. What happened instead?
    The slicing UI comes up, but if you dismiss it or go to try to slice the .stl file, it doesn't show up in the file manager. File does exist on filesystem in the correct location.
  4. Branch & Commit or Version:
    Version: 1.2.0-dev-383-g3d5fdf2 (devel branch)
  5. Printer model & used firmware incl. version
    N/A
  6. Link to octoprint.log on gist.github.com or pastebin.com:
    https://gist.github.com/dattas/2d5ec98b0ef936604036
  7. Link to contents of terminal tab on gist.github.com or pastebin.com:
    N/A

I love cookies and so I think perhaps there should be a tmp directory in the .octoprint directory instead of writing the temp files in /tmp. This should prevent most of the Cross-device link errors

@Renha

This comment has been minimized.

Copy link
Contributor

commented Jan 13, 2015

maybe shutil.move must be used instead of os.rename
os.rename should be ok for ones who had /tmp on same FS

EDIT: yep, it works

@derpicknicker1

This comment has been minimized.

Copy link
Contributor

commented Jan 18, 2015

Pls close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.