MAC address switching/"Connection refused"

Hi,

I installed the Pi-Hole on a brand new Pi with Raspbian Jessie multiple times, to iron some bugs and to gain some experience with the platform (I've never used a Pi before). The Pi-Hole works fine some times, but two issues have stuck with me

-The Pi keeps switching the MAC address, while the IP address stays as designated.

-After powering up, the interface/SSH is accessible. But after refreshing this 2-3 times, I always get a "connection refused" error. SSH isn't available at this point. Only power cycling addresses this issue.

Is there a solution for this?

Sorry if this topic was already posted, the search function didn't yield any satisfying results.

Thank you.

SSH is inaccessible to me too as of this afternoon. Powercycled a number of times and no luck. The admin webpage partially loads - .ie the text all fills in but the numbers/stats are all missing. Since I cannot login I don't know how to fix this. Any ideas? Pi-hole Version v2.6.2 Web Interface Version v1.2

And now it is back - weird. Any ideas?

I had this problem occur as well. Only reinstalling the OS helped here. This always happened if I used "apt-get upgrade", before pushing the Pi-Hole script multiple times to ensure everything installed without error. For example, if the dnsmasq part failed to install and I used "apt-get upgrade", it wasn't overwritten by the Pi-Hole script.

This could be the same issue you're seeing on your side. But please be aware that I'm only basing this on my experience with the unit so far.

Seems this is repeated in the logs ...

240.566074] INFO: task kworker/u2:0:6 blocked for more than 120 seconds.
[ 240.566113] Not tainted 4.1.19+ #858
[ 240.566127] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 240.566142] kworker/u2:0 D c0534afc 0 6 2 0x00000000
[ 240.566204] Workqueue: kmmcd mmc_rescan
[ 240.566253] [] (__schedule) from [] (schedule+0x4c/0xa4)
[ 240.566292] [] (schedule) from [] (__mmc_claim_host+0x98/0x1ec)
[ 240.566327] [] (__mmc_claim_host) from [] (mmc_get_card+0x20/0x24)
[ 240.566357] [] (mmc_get_card) from [] (mmc_sd_detect+0x2c/0x80)
[ 240.566387] [] (mmc_sd_detect) from [] (mmc_rescan+0xdc/0x41c)
[ 240.566427] [] (mmc_rescan) from [] (process_one_work+0x11c/0x394)
[ 240.566460] [] (process_one_work) from [] (worker_thread+0x40/0x4d4)
[ 240.566495] [] (worker_thread) from [] (kthread+0xdc/0xf8)
[ 240.566537] [] (kthread) from [] (ret_from_fork+0x14/0x3c)

One thing I forgot to mention: None of the MAC-addresses after installation included the serial number. I've read this indicates both addresses are wrong?

I've tried to change the Mac address with a script as mentioned here (networking - Problems with changing mac-address of Raspberry Pi - Raspberry Pi Stack Exchange). Now the Pi switches between the configured and one of the two initial adresses. Is this a Pi-Hole or a OS/hardware issue?

Thanks for your help

I've never heard of this issue before... Run pihole -d and pastebin the log it creates at /var/log/pihole_debug.log. That will show if Pi-hole is running into problems or if it's just an OS/hardware issue.

Thank you very much for your post. I'll try to catch the phenomenon properly in the logs, when it occurs again.

One thing I'd like to add: While only using Pi-Hole only with my cable Ethernet for a few hours, no problems occurred whatsoever. But when I configured my W-LAN access point to use the Pi-Hole as the DNS-server, some issues came to light:
While some Android devices have no problem with this new configuration (2 tablets), my current smartphone (Nexus 5X) can't seem to establish a connection to the internet. This never occurs when the router is used as the DNS-server.

Update: After multiple tries to get things running smoothly, I've changed the static IP address.

The Pi-Hole is now extremely stale and seems to work efficiently in blocking ads (with some strange exceptions on Android devices) and some domains. It seems my router (AVM Fritz!Box 7360) recognizes another device at the old IP-address (while I can guarantee that there is no device, since I setup the whole network) and this interfered with the Pi.

Thank you very much for your support and please excuse the inconvenience.

Is it possible to delete my last post? I didn't find a option to do this.