H
Homarr16mo ago
RedGuy

Can't find config files

I configured homarr to run on docker like below:
docker run \
--name homarr \
--restart unless-stopped \
-p 7575:7575 \
-v /second/homarr/configs:/app/data/configs \
-v /second/homarr/icons:/app/public/icons \
-d ghcr.io/ajnart/homarr:latest
docker run \
--name homarr \
--restart unless-stopped \
-p 7575:7575 \
-v /second/homarr/configs:/app/data/configs \
-v /second/homarr/icons:/app/public/icons \
-d ghcr.io/ajnart/homarr:latest
When I go to my /second directory though I don't see the folders with the config files did I mess a step or where are the configs for things like edit password stored?
21 Replies
Manicraft1001
Manicraft100116mo ago
Hi, thanks for the post. Where there any errors when executing the command? Can you remove -d and start it again?
RedGuy
RedGuyOP16mo ago
There are no errors installing and I can connect to homarr and add widgets etc. When running without the -d just getting some apps missing config options as expected
RedGuy
RedGuyOP16mo ago
No description
Manicraft1001
Manicraft100116mo ago
Okay... Can you do a pwd and ls -lha on your directory, where it should be located? Also, do a pwd where you execute the docker run command
RedGuy
RedGuyOP16mo ago
I did run my docker run command in same dir and get below outputs:
bufiji@fiji-plex:/second$ pwd
/second
bufiji@fiji-plex:/second$ ls -lha
total 153M
drwxrwxr-x 20 plex root 4.0K Aug 24 16:10 .
drwxr-xr-x 21 root root 4.0K Jul 4 21:03 ..
drwxrwxrwx 10 plex bufiji 4.0K Mar 6 2023 bazarr
-rw-rw-rw- 1 plex bufiji 3.6K Mar 3 2023 bazarr.py
-rw-rw-rw- 1 plex bufiji 34M Mar 3 2023 bazarr.zip
drwxrwxrwx 4 plex root 4.0K Mar 6 2023 books
drwxrwxr-x 2 plex bufiji 16K May 11 14:51 CN-Bumps
drwxrwxr-x 2 plex bufiji 36K May 18 16:22 commercials
drwxrwxrwx 8 plex bufiji 4.0K Mar 6 2023 data
drwxrwxr-x 3 plex bufiji 4.0K May 10 15:56 ersatztv
drwxrwxrwx 7 plex root 4.0K Sep 9 16:05 finished
drwxrwxrwx 3 plex bufiji 4.0K Mar 6 2023 finishedbooks
drwxrwxrwx 3 plex bufiji 4.0K Mar 3 2023 frontend
drwxrwxrwx 17 plex root 48K Sep 19 05:44 intermediate
drwxrwxrwx 99 plex bufiji 4.0K Mar 6 2023 libs
drwxrwxrwx 2 plex root 16K Mar 6 2023 lost+found
drwxrwxr-x 4 root media 4.0K Sep 9 16:06 music
drwxrwxrwx 2 plex root 88K Sep 19 05:44 nzbdir
drwxrwxrwx 5 plex root 4.0K Jun 2 22:37 nzbget
-rw-rw-rw- 1 plex root 31M Dec 7 2021 nzbget-latest-bin-linux.run
-rw-rw-rw- 1 bufiji bufiji 8 Sep 10 04:47 nzbget.lock
drwxrwxrwx 7 plex bufiji 32K Feb 25 2023 opt
drwxrwxrwx 2 plex root 528K Sep 19 05:45 queue
-rw-r--r-- 1 root root 89M Aug 20 04:01 Readarr.develop.0.3.3.2171.linux-core-x64.tar.gz
-rw-rw-rw- 1 plex bufiji 61 Mar 3 2023 requirements.txt
drwxrwxrwx 2 plex www-data 4.0K Sep 19 15:38 tmp
-rw-rw-rw- 1 plex bufiji 7 Mar 3 2023 VERSION
bufiji@fiji-plex:/second$
bufiji@fiji-plex:/second$ pwd
/second
bufiji@fiji-plex:/second$ ls -lha
total 153M
drwxrwxr-x 20 plex root 4.0K Aug 24 16:10 .
drwxr-xr-x 21 root root 4.0K Jul 4 21:03 ..
drwxrwxrwx 10 plex bufiji 4.0K Mar 6 2023 bazarr
-rw-rw-rw- 1 plex bufiji 3.6K Mar 3 2023 bazarr.py
-rw-rw-rw- 1 plex bufiji 34M Mar 3 2023 bazarr.zip
drwxrwxrwx 4 plex root 4.0K Mar 6 2023 books
drwxrwxr-x 2 plex bufiji 16K May 11 14:51 CN-Bumps
drwxrwxr-x 2 plex bufiji 36K May 18 16:22 commercials
drwxrwxrwx 8 plex bufiji 4.0K Mar 6 2023 data
drwxrwxr-x 3 plex bufiji 4.0K May 10 15:56 ersatztv
drwxrwxrwx 7 plex root 4.0K Sep 9 16:05 finished
drwxrwxrwx 3 plex bufiji 4.0K Mar 6 2023 finishedbooks
drwxrwxrwx 3 plex bufiji 4.0K Mar 3 2023 frontend
drwxrwxrwx 17 plex root 48K Sep 19 05:44 intermediate
drwxrwxrwx 99 plex bufiji 4.0K Mar 6 2023 libs
drwxrwxrwx 2 plex root 16K Mar 6 2023 lost+found
drwxrwxr-x 4 root media 4.0K Sep 9 16:06 music
drwxrwxrwx 2 plex root 88K Sep 19 05:44 nzbdir
drwxrwxrwx 5 plex root 4.0K Jun 2 22:37 nzbget
-rw-rw-rw- 1 plex root 31M Dec 7 2021 nzbget-latest-bin-linux.run
-rw-rw-rw- 1 bufiji bufiji 8 Sep 10 04:47 nzbget.lock
drwxrwxrwx 7 plex bufiji 32K Feb 25 2023 opt
drwxrwxrwx 2 plex root 528K Sep 19 05:45 queue
-rw-r--r-- 1 root root 89M Aug 20 04:01 Readarr.develop.0.3.3.2171.linux-core-x64.tar.gz
-rw-rw-rw- 1 plex bufiji 61 Mar 3 2023 requirements.txt
drwxrwxrwx 2 plex www-data 4.0K Sep 19 15:38 tmp
-rw-rw-rw- 1 plex bufiji 7 Mar 3 2023 VERSION
bufiji@fiji-plex:/second$
Manicraft1001
Manicraft100116mo ago
Do you run the docker run command as root? Does your user have sufficient permissions?
RedGuy
RedGuyOP16mo ago
I did run docker as sudo yes, I presume that may be what my issue is and should add the docker perms to that user
Manicraft1001
Manicraft100116mo ago
Can you run find / -type d -name "homarr" -print? This might take a few minutes It should let you find the homarr directory. It's most likely mounted somewhere else
RedGuy
RedGuyOP16mo ago
I had tried to other variations of find with no luck, I'll give that one a shot though and let you know Thanks
bufiji@fiji-plex:/second$ sudo find / -type d -name "homarr" -print
find: ‘/media/drobo/videosTemp/Captain.America.3.The.First.Avenger.Civil.War.2016.BD50.#3281’: Input/output error
bufiji@fiji-plex:/second$ sudo find / -type d -name "homarr" -print
find: ‘/media/drobo/videosTemp/Captain.America.3.The.First.Avenger.Civil.War.2016.BD50.#3281’: Input/output error
This was all it gave which is odd
Manicraft1001
Manicraft100116mo ago
And the command completed after that?
RedGuy
RedGuyOP16mo ago
yeah
Manicraft1001
Manicraft100116mo ago
Hmm Okay, before we to troubleshooting, can you open your Homarr and download the config? Warning: It will not download the credentials! Store them somewhere else!!
RedGuy
RedGuyOP16mo ago
I've got a copy already/did prior to what I've tried so far which was mainly deleting old container and remaking it also checked without the / in front of second in case I misunderstood absolute paths
Manicraft1001
Manicraft100116mo ago
Okay. Can you do docker ps? And search for the Homarr container
RedGuy
RedGuyOP16mo ago
bufiji@fiji-plex:/second$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
58935d45c0b1 ghcr.io/ajnart/homarr:dev "docker-entrypoint.s…" 12 minutes ago Up 6 minutes (healthy) 0.0.0.0:7575->7575/tcp, :::7575->7575/tcp homarr
bufiji@fiji-plex:/second$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
58935d45c0b1 ghcr.io/ajnart/homarr:dev "docker-entrypoint.s…" 12 minutes ago Up 6 minutes (healthy) 0.0.0.0:7575->7575/tcp, :::7575->7575/tcp homarr
right now it is only one I'm running
Manicraft1001
Manicraft100116mo ago
Copy it's name and do the following commands: docker container stop <homarr>, docker container rm <homarr, docker image rm ghcr.io/ajnart/homarr:latest. Then re-run the command docker run again. DO NOT DO THIS IF YOU DON'T hAVE A BACKUP
RedGuy
RedGuyOP16mo ago
So it does seem something is weird somewhere, it ran as expected and showed everything removing (ran a docker ps again to check) when reinstalling and running it still had the old config I'm not running anything else on docker would an uninstall of that be a good idea to try? Reinstall of docker resolved the issue and they are there now thanks for the troubleshooting
RedGuy
RedGuyOP16mo ago
How can I go about adding the enviroment variables? I tried adding the -e PASSWORD='password' but container got stuck on starting https://homarr.dev/docs/advanced/docker-configuration
🐳 Docker Configuration | Homarr Docs
Homarr offers a Docker Container, which can be run on any compatible system, such as Unraid, Kubernetes and many more systems! Our Docker container is based on the node:16-alpine image and serves per standard on the port 7575.
Manicraft1001
Manicraft100116mo ago
Sorry for my late reply - I was busy. I'm glad that you were able to solve it - even though reinstalling is a weird solution for it. Perhaps your install was faulty or something went wrong. -e should work as your said. Are there any errors?
Manicraft1001
Manicraft100116mo ago
I would also recommend you to look into https://homarr.dev/docs/advanced/read-only . The current authentication implement is not really considered safe - especially if you plant to expose Homarr to the Web
🔒 Securing Homarr | Homarr Docs
Homarr's initial purpose was, to run it only within your local network.
RedGuy
RedGuyOP16mo ago
I'll make those tweaks thanks, ended up being I put the -e in the wrong place I am already running it on nginx for enabling read only mode once I'm done do I just restart with the flag for read only mode? Sorry for all the maybe semi basic questions docker is fairly new to me still
Want results from more Discord servers?
Add your server