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

[Question] I get Error opening file with mode 'w' #324

Open
dranas85 opened this issue Jul 23, 2022 · 6 comments
Open

[Question] I get Error opening file with mode 'w' #324

dranas85 opened this issue Jul 23, 2022 · 6 comments
Labels
general question Question about Mango and how to use it

Comments

@dranas85
Copy link

I get this on every manga. Error opening file with mode 'w': '/mnt/share/manga/1-Nen A-Gumi No Monster/info.json': Permission denied

the name of the manga changes, but the error is still the same. The credentials I use on the shared device are set for R/W permissions, so I am at a loss for how to fix it.

@dranas85 dranas85 added the general question Question about Mango and how to use it label Jul 23, 2022
@hkalexling
Copy link
Member

I guess the user owning the Mango process doesn't have write access to the file. Assuming you are using any UNIX system you can try the followings

  1. Find out the user that started the Mango process: ps -ef | grep mango
  2. List the permissions on the JSON file: ls -l /path/to/info.json

@dranas85
Copy link
Author

it states it doesn't exist. I checked the directory my self and it doesn't exist. How can I make them?

@hkalexling
Copy link
Member

Ah so Mango was trying to create the file with w mode but failed, and that's why you got the error. Can you check the folder's owner and permissions using ls -l /path/to/folder? To be able to create files in it Mango needs both the write and execute permissions on the folder, so it should be something like rwx.

@dranas85
Copy link
Author

I checked the permissions, they have rwx but its root, not my user that has them

@hkalexling
Copy link
Member

Then your library folder is owned by root. You might want to check why that happens. It could be that you were using sudo when creating the folder or mounting an external drive. You can change the owner back to your user using chown -R

@dranas85
Copy link
Author

dranas85 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general question Question about Mango and how to use it
Projects
None yet
Development

No branches or pull requests

2 participants