Coder Social home page Coder Social logo

Comments (7)

Roelski avatar Roelski commented on August 19, 2024 2

This happens for me as well. I used that same tutorial to set up my cluster. If you are using a persistent volume as well, use a ssh connection to get to your drive and run these two commands.
ls -l ----> this will show the owner and user of each file they all should be www-data if not run this cmd
sudo chown -R www-data:www-data pihole from the /mnt/ssd directory described in the tutorial. This will allow you to add more whitelists/blacklists/adlists from the web portal.

Is used this to get it running for me. thanx!
Running a shell inside the pihole docker container.
With ls -l /etc/pihole there were different permissions. Some root, some pihole.
Used:
cd /etc
sudo chown -R www-data:www-data pihole

All done inside the container. No reboots required. Worked immediately.
Hope this helps others.

from pihole-kubernetes.

elcid2012 avatar elcid2012 commented on August 19, 2024 1

@MoJo2600 I'm getting this error in the logs on a fresh Docker installation, although everything seems to be working. That is, I just tested adding a domain to the whitelist without issues as alluded to in #39 and blocking/gravity db generation seems to work just as well.

Incidentally, I just checked the logs of my existing Pi-Hole that's been running for months, also Docker, and it's showing the same error.

I am not using the DHCP server feature on either Pi-Hole, so perhaps that's why the error is getting thrown while everything else seems to work correctly?

from pihole-kubernetes.

11jwolfe2 avatar 11jwolfe2 commented on August 19, 2024

This happens for me as well. I used that same tutorial to set up my cluster. If you are using a persistent volume as well, use a ssh connection to get to your drive and run these two commands.
ls -l ----> this will show the owner and user of each file they all should be www-data if not run this cmd
sudo chown -R www-data:www-data pihole from the /mnt/ssd directory described in the tutorial. This will allow you to add more whitelists/blacklists/adlists from the web portal.

from pihole-kubernetes.

plsnotracking avatar plsnotracking commented on August 19, 2024

Seems like I still get the error:

chown: cannot access '': No such file or directory
chmod: cannot access '': No such file or directory

What I did was, as you suggested, unless I missed something.

  • ssh onto my pi.
  • cd to the pi-hole folder within /mnt/ssd
  • run sudo chown -R www-data:www-data pihole from the outside.
  • Output
ls -al ~/mnt/ssd/pihole

total 123800
drwxrwxr-x 4        999 spi             4096 Oct  1 00:01 .
drwxr-xr-x 8 pi pi      4096 Sep 16 03:23 ..
-rw-r--r-- 1 www-data   www-data         118 Aug 15 22:50 adlists.list
drwxrwxr-x 3 pi spi             4096 Sep 30 23:54 backup
-rw-r--r-- 1        999 spi             1681 Aug 16 06:02 dhcp.leases
-rw-r--r-- 1 www-data   www-data         596 Sep 30 23:58 dns-servers.conf
-rw-r--r-- 1 www-data   www-data          18 Sep 30 23:58 GitHubVersions
-rw-rw-r-- 1        999 spi          5029888 Sep 30 23:58 gravity.db
-rw-r--r-- 1 www-data   www-data     1131655 Sep 30 23:58 list.0.raw.githubusercontent.com.domains
-rw-r--r-- 1 www-data   www-data      594616 Aug 15 22:09 list.1.mirror1.malwaredomains.com.domains
-rw-r--r-- 1 www-data   www-data          20 Oct  1 00:00 localbranches
-rw-r--r-- 1 www-data   www-data          41 Sep 30 23:58 local.list
-rw-r--r-- 1 www-data   www-data          41 Oct  1 00:00 localversions
drwxr-xr-x 2 www-data   www-data        4096 Aug 15 22:09 migration_backup
-rw-r--r-- 1        999 spi                0 Aug 15 22:09 pihole-FTL.conf
-rw-r--r-- 1 root       root       119951360 Oct  1 00:01 pihole-FTL.db
-rwxr-xr-x 1 www-data   www-data           0 Aug 15 22:09 regex.list
-rw-r--r-- 1 www-data   www-data         717 Sep 30 23:58 setupVars.conf
-rw-r--r-- 1 www-data   www-data         717 Sep 30 23:58 setupVars.conf.update.bak

Thanks @11jwolfe2

from pihole-kubernetes.

MoJo2600 avatar MoJo2600 commented on August 19, 2024

Does it possibly be the same issue that has been resolved in this issue: #39 Just guessing, as I do not know your exact setup.

from pihole-kubernetes.

MoJo2600 avatar MoJo2600 commented on August 19, 2024

#107 I think this is the same error

from pihole-kubernetes.

MoJo2600 avatar MoJo2600 commented on August 19, 2024

Ok, I'll have to check if I can reproduce this error

from pihole-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.