question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] Running QHub within home directory will delete files in home directory

See original GitHub issue

Describe the bug

If a user runs the typical install process from their home directory.

conda create -n qhub -c conda-forge qhub==0.3.12
conda activate qhub

qhub init ...
qhub deploy ...

This will delete file within the home folder. This is due to the logic in https://github.com/Quansight/qhub/blob/744060aeaf19c194d39fd418c9834790c21f9f00/qhub/render/__init__.py#L139.

Acceptance Criterial

  • remove all os.remove and shutil.rmtree logic in QHub this is too much of a risk for qhub.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
toonarmycaptaincommented, Sep 9, 2021

@iameskild cheers 😃 Good practice to just run it from inside the correct directory anyway, which works fine for me.

1reaction
iameskildcommented, Sep 2, 2021

@costrouc @tylerpotts PR submitted. (apologies for the delay, client work has consumed most of the past week)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to delete a user & its home folder safely? - Ask Ubuntu
Removing the home directory and mail spool can be achieved using the --remove-home option. The --remove-all-files option removes all files on the system...
Read more >
Linux how to remove all files from a directory (or ... - YouTube
How to remove all files from current directory in Linux Ubuntu with RM command (or shred files completely)00:00 How to Delete All Files...
Read more >
permissions - Unable to delete file, even when running as root
Check the permissions of the directory. To delete a file inside it, it should be writable by you chmod ugo+w .
Read more >
Linux essentials: How to create and delete files and directories
The basic syntax for using this command is mkdir {dir} (replace {dir} with the desired name of your directory). Before creating any directory...
Read more >
How to Delete User Accounts with Home Directory in Linux
The directives inside the configuration file for deluser and userdel commands determine how this it will handle all user files and directory ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found