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

Solving OSerror Issues in a WSL Environment during the megahit step. #90

Open
Key-man-fromArchive opened this issue Mar 23, 2023 · 2 comments

Comments

@Key-man-fromArchive
Copy link

When installing Hecatomb in a WSL environment, there are cases where an OSerror occurs during the Megahit step. Even after reinstalling WSL several times, the issue persists and cannot be resolved.

It seems that the OSerror occurs and prevents file writing when MEGAHIT creates a temp folder in the working directory, which may be the cause of the issue.

When creating a folder and moving files using Windows Explorer, the owner and group of the created file or folder are often determined as "Root".

However, Hecatomb process running on WSL operates under the "user id" and only has the permissions of the "user id".

Therefore, it seems that Hecatomb and Megahit, which have the permissions of the "user id", are unable to properly create or handle the temp folder at this moment.

The solution is simple. You can change the owner and group of the working directory to "user id" using the chown command to resolve the issue.

I struggled due to a sudden OSerror issue for three days. Now that I have found the answer, I am sharing this experience. Thank you.

@Key-man-fromArchive Key-man-fromArchive changed the title inform everyone who uses the fantastic 'hecatomb' related to OSError on Windows' WSL or WSL2 inform everyone who uses the 'hecatomb' related to OSError on Windows' WSL or WSL2 Mar 23, 2023
@Key-man-fromArchive Key-man-fromArchive changed the title inform everyone who uses the 'hecatomb' related to OSError on Windows' WSL or WSL2 Solving OSerror Issues in a WSL Environment during the megahit step. Mar 23, 2023
@beardymcjohnface
Copy link
Collaborator

Thank you very much for this insight. Being able to run on WSL would be very useful for anyone with a beefy windows pc but no convenient access to a linux server. I had not thought to check if it indeed ran on WSL. I'm curious, does this error occur if you sudo hecatomb run ... ?

@Key-man-fromArchive
Copy link
Author

Yes, I have already tried it. When I enter 'sudo hecatomb run', it displays an error message 'command not found'

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

2 participants