![]() |
Where is the config.json file on Windows? - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Where is the config.json file on Windows? (/t-where-is-the-config-json-file-on-windows) |
RE: Where is the config.json file on Windows? - 4r5hw45twh - 2025-01-21 (2025-01-21, 12:38 AM)TheDreadPirate Wrote: Check that the user running the container can read the file. Try clearing your browser cache. Also try rebuilding the container. How would I do that first part? The user for everything is the one I originally made when setting up Ubuntu. I do, however, need to use "sudo" before commands and whatnot, though, so how do I make the permissions proper if they weren't by default? I did a copy command earlier to copy config.json from the Docker container to my host and it did have a lock on it and when I double-clicked it, it opened it in my browser and said I didn't have access or something. But I could open it with sudo nano. RE: Where is the config.json file on Windows? - TheDreadPirate - 2025-01-21 Did you provide a user ID in the docker compose config? If not, then root is running the container and shouldn't have any restrictions. If you did provide a user ID, that user needs access to web-config.json and all the folders leading to it. If you had to use sudo to open it, Docker probably can't read it. Meaning only root could open it. RE: Where is the config.json file on Windows? - 4r5hw45twh - 2025-01-21 (2025-01-21, 03:32 PM)TheDreadPirate Wrote: Did you provide a user ID in the docker compose config? If not, then root is running the container and shouldn't have any restrictions. If you did provide a user ID, that user needs access to web-config.json and all the folders leading to it. The docker compose config for Jellyfin? It is set to "1000:1000". Should I just remove that line and re-run the compose.yml file? The user stuff is all default how it came out of Ubuntu. I assumed when it asked me to name the account being made, I'd have full access to everything at anytime 9which is what I want). Typing "sudo" for most stuff is annoying. So, how would I make myself (the current and only user that'll ever be on the PC) sudo/root/whatever? On the host, I can access the folder directory fine because I created the folders myself. Just not the config.json file it copied from Docker. RE: Where is the config.json file on Windows? - TheDreadPirate - 2025-01-21 1000:1000 is fine. It is better to run containers as a less priviliged user instead of root. BTW, 1000 is the ID for your user. So if you had to sudo to open the file in nano, then your container can't access it. So you will need to chown and/or chmod the file and folders config.json so that your user doesn't need to use sudo to open it. The user you create during setup is not a "super user". Root is the only super user on the system and you cannot make your user a permanent super user. This is by design. You can temporarily run as root by typing "sudo su". This will elevate you to root's shell, but it is best practice to only do this when you have to. RE: Where is the config.json file on Windows? - 4r5hw45twh - 2025-01-21 Ok, so this is where I get lost. You said, "So if you had to sudo to open the file in nano, then your container can't access it" but isn't it the other way around or no? I just let Docker do whatever it does. But when I copied the config.json from wherever it was in Docker and it had a lock on it, doesn't that mean I can't access it from my host and not the other way around? (2025-01-21, 04:56 PM)TheDreadPirate Wrote: So you will need to chown and/or chmod the file and folders config.json so that your user doesn't need to use sudo to open it. This is where I'm lost. How do I go about doing this? My web-config.json file is located at: /home/username/Dockers/Jellyfin/Config And since I made those directories and web-config.json myself, it doesn't lock those out or anything. Only locked file was when I copied regular config.json from Docker to my Documents area. RE: Where is the config.json file on Windows? - TheDreadPirate - 2025-01-21 Just to verify how this works, I added a custom config.json to my test setup. My docker compose. Code: services: Ownership of the folders and file. User ID 1002 from my docker compose corresponds to the "jellyfin" user. Code: chris@rat-trap:/docker/containers$ ll -d jellyfin-stable-data/ jellyfin-stable-data/web/ The contents of config.json Code: chris@rat-trap:/docker/containers$ cat jellyfin-stable-data/web/config.json And it appeared as expected. So let's check the ownership of your config.json, since everything else you shared appears to be in order. Code: ls -ld /home/username /home/username/Dockers /home/username/Dockers/Jellyfin /home/username/Dockers/Jellyfin/Config RE: Where is the config.json file on Windows? - 4r5hw45twh - 2025-01-21 (2025-01-21, 06:29 PM)TheDreadPirate Wrote: So let's check the ownership of your config.json, since everything else you shared appears to be in order. The first command gives me: ![]() And wait a minute, I don't see you using a path for "web-config.json", just "config.json". Is that intentional, or is the guide page wrong, or? Because in the guide it says to do (which I followed) : "/mypath/to/config/web-config.json:/jellyfin/jellyfin-web/config.json" https://jellyfin.org/docs/general/clients/web-config/#docker Oh, and for the second command, I get this: ![]() RE: Where is the config.json file on Windows? - TheDreadPirate - 2025-01-21 I don't think it matters what you call the file on the host side. I kept the files names the same for simplicity. I see the problem. You put web-config.json within a folder you've already added to the container. You are trying to, essentially, map the file twice. It needs to be in a separate folder. Not nested within an existing folder. /home/username/Docker/Jellyfin/web/ or something like that. RE: Where is the config.json file on Windows? - 4r5hw45twh - 2025-01-21 (2025-01-21, 08:15 PM)TheDreadPirate Wrote: I don't think it matters what you call the file on the host side. I kept the files names the same for simplicity. Oh, I thought the left side of the path line was host and right was Docker? And oh, ok, I will try that real quick. I tried to keep it in Config so that if I ever need to migrate/backup JF, everything is either in /cache or /config folders. RE: Where is the config.json file on Windows? - TheDreadPirate - 2025-01-21 (2025-01-21, 08:25 PM)4r5hw45twh Wrote: Oh, I thought the left side of the path line was host and right was Docker? That's right, but you put web-config.json in a folder on the host that is already mapped to /config in the container. Meaning you can't then map a specific file in that to another place in the container. |