linuxserver / docker-nginx

GNU General Public License v3.0
148 stars 46 forks source link

Manually adding geoip2 crashes docker #62

Closed juan11perez closed 4 years ago

juan11perez commented 4 years ago

Followed instruction "Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please manually download/update the GeoIP2 db and save as /config/geoip2db/GeoLite2-City.mmdb"

After manually adding the db in the instructed directory, the docker crashes. No logs created

Environment

Unraid

Command used to create docker container

Sample docker-compose

aptalca commented 4 years ago

We're gonna need more info than docker crashes

juan11perez commented 4 years ago

thank you. It just doesnt start. Without the db it starts. If I load the db it doesnt start. I also run a "clean" install. i.e didnt add any configuration files. All I did was add the db and the same persisted. The docker doesnt start.

aptalca commented 4 years ago

I don't follow. Describe load the db and doesn't start. What exactly are you doing? You just need to save a file inside the config folder. That has nothing to do with the container starting or not

juan11perez commented 4 years ago

I initiate the docker following the docker compose sample:

  nginx:
    container_name: nginx
    image: linuxserver/nginx
    restart: unless-stopped
    network_mode: bridge
    volumes:
    - /mnt/cache/appdata/nginx:/config
    environment:
    - TZ=Asia/Dubai
    - PGID=100
    - PUID=99
    ports:
    - 180:80
    - 1443:443
    labels:
    - "com.centurylinklabs.watchtower.enable=true" 

it initiates without any errors. in the log i get the message regarding "Starting 2019/12/30, GeoIP2 .." I go into maxmind, signup, etc and download GeoLite2-City.mmdb stop the container I then add the file into /config/geoip2db/ restart the container. it doesnt restart. it terminates with the error "exit kill........"

aptalca commented 4 years ago

you need to post a full log

juan11perez commented 4 years ago

thank you. This is the log

[cont-init.d] 20-config: executing... ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing... ,
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-config: executing... ,
[cont-init.d] 40-config: exited 1.,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    99,
User gid:    100,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 20-config: executing... ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing... ,
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-config: executing... ,
[cont-init.d] 40-config: exited 1.,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    99,
User gid:    100,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 20-config: executing... ,
[cont-init.d] 20-config: exited 0.,
[cont-init.d] 30-keygen: executing... ,
using keys found in /config/keys,
[cont-init.d] 30-keygen: exited 0.,
[cont-init.d] 40-config: executing... ,
[cont-init.d] 40-config: exited 1.,
[cont-finish.d] executing container finish scripts...,
[cont-finish.d] done.,
[s6-finish] waiting for services.,
[s6-finish] sending all processes the TERM signal.,
[s6-finish] sending all processes the KILL signal and exiting.,
aptalca commented 4 years ago

on the host, do ls -al /mnt/cache/appdata/nginx/geoip2db

juan11perez commented 4 years ago

thank you

root@Tower:~# ls -al /mnt/cache/appdata/nginx/geoip2db
total 62300
drwxrwxrwx 2 nobody users       32 Apr 18 08:27 ./
drwxr-xr-x 8 nobody users       80 Apr 15 10:00 ../
-rw-r--r-- 1 nobody users 63792403 Apr 15 03:31 GeoLite2-City.mmdb
aptalca commented 4 years ago

Thanks, I was able to reproduce, but have no idea what could be causing it. Very weird. I'll have to run some tests over the weekend

juan11perez commented 4 years ago

Thank you very much for your time and prompt response. As a side note, until a week ago I was using the linuxserver/letsencrypt docker, which had the database installed as I had installed it before the maxmind policy change and it runs fine.