Community discussions

MikroTik App
 
ttaiw
just joined
Topic Author
Posts: 18
Joined: Mon Jun 29, 2009 5:48 pm

Error in container (Pi-hole)

Fri Oct 01, 2021 11:46 am

I was try RouterOS 7 container feature with Pi-hole from https://help.mikrotik.com/docs/display/ROS/Container.
but I got something error.
when I was add regex filter in Blacklist , it got message
" Error, something went wrong! While executing INSERT OT IGNORE: attempt to write a readonly database"

Any step I did was wrong ?
[admin@Ros7] /container> export 
# oct/01/2021 15:31:37 by RouterOS 7.1rc4
# software id = 
#
# model = RB450Gx4
# serial number = 
/container mounts
add dst=/etc/pihole name=pihole src=/pihole
add dst=/etc/dnsmasq.d name=dnsmasq.d src=/dnsmasqd
/container
add dns=1.1.1.1 envlist=pihole file=disk2/pihole.tar hostname=PiHole interface=veth1 logging=yes mounts=dnsmasq.d,pihole root-dir=disk2/Pihole
/container envs
add list=pihole name=TZ value=Asia/......
add list=pihole name=ServerIP value=172.17.0.2
add list=pihole name=WEBPASSWORD value=admin1744
[admin@Ros7] /container> /disk/print 
Flags: M, r - RAID-MEMBER; p - PARTITION
Columns: SLOT, MODEL, SERIAL, INTERFACE, NAME, FS, FREE, SIZE
#    SLOT       MODEL          SERIAL      INTERFACE  NAME   FS    FREE     SIZE   
0    sd1        SA16G 06/2016  0x2687d4e1  SD                               14.4GiB
1 Mp sd1-part1                                        disk2  ext4  13.8GiB  14.4GiB
[admin@Ros7] /container> /file/print 
Columns: NAME, TYPE, SIZE, CREATION-TIME
#  NAME              TYPE             SIZE      CREATION-TIME       
0  dnsmasqd          container store            oct/01/2021 15:29:40
1  pihole            container store            oct/01/2021 15:31:00
2  skins             directory                  jan/01/1970 07:00:11
3  pub               directory                  sep/15/2021 14:04:45
4  Backup_450G.rsc   script           7.4KiB    sep/16/2021 19:46:02
5  SD64              directory                  sep/20/2021 17:23:57
6  disk2             disk                       oct/01/2021 15:15:01
7  disk2/pihole.tar  .tar file        229.3MiB  oct/01/2021 14:27:31
8  disk2/Pihole      container store            oct/01/2021 15:29:40
You do not have the required permissions to view the files attached to this post.
 
User avatar
krafg
Forum Guru
Forum Guru
Posts: 1020
Joined: Sun Jun 28, 2015 7:36 pm

Re: Error in container (Pi-hole)

Mon Oct 04, 2021 1:34 pm

You have problems with file permitions, your database file of Pi-Hole or your container file can't be overwritten.

Regards.
 
ttaiw
just joined
Topic Author
Posts: 18
Joined: Mon Jun 29, 2009 5:48 pm

Re: Error in container (Pi-hole)

Tue Oct 05, 2021 10:41 am

You have problems with file permitions, your database file of Pi-Hole or your container file can't be overwritten.

Regards.
How to allow write permission in RouterOS's container ?
 
nikc
Member Candidate
Member Candidate
Posts: 208
Joined: Wed Jul 13, 2016 6:05 pm

Re: Error in container (Pi-hole)

Sat Oct 29, 2022 3:52 pm

Did you manage to resolve this?
 
User avatar
jvanhambelgium
Forum Veteran
Forum Veteran
Posts: 985
Joined: Thu Jul 14, 2016 9:29 pm
Location: Belgium

Re: Error in container (Pi-hole)

Sat Oct 29, 2022 3:58 pm

I see in your config-extract : RouterOS 7.1rc4
Please upgrade to 7.6 , make an export of Pihole // delete & re-install the container // import config and try again.
In the last 7.x release some fixing was done on permissions etc.

My Pihole is running for quite some time now on my RB5009
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 385
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: Error in container (Pi-hole)

Mon Oct 31, 2022 2:21 pm

there will be fix for similar issue in upcoming versions.
 
User avatar
sirbryan
Member Candidate
Member Candidate
Posts: 298
Joined: Fri May 29, 2020 6:40 pm
Location: Utah
Contact:

Re: Error in container (Pi-hole)

Fri Nov 04, 2022 6:15 pm

My Pihole is running for quite some time now on my RB5009
Are you using USB storage or the 5009's NAND?
 
User avatar
jvanhambelgium
Forum Veteran
Forum Veteran
Posts: 985
Joined: Thu Jul 14, 2016 9:29 pm
Location: Belgium

Re: Error in container (Pi-hole)

Fri Nov 04, 2022 6:18 pm

My Pihole is running for quite some time now on my RB5009
Are you using USB storage or the 5009's NAND?
USB-storage.

Who is online

Users browsing this forum: No registered users and 0 guests