Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually adding geoip2 crashes docker #62

Closed
juan11perez opened this issue Apr 17, 2020 · 10 comments · Fixed by #63
Closed

Manually adding geoip2 crashes docker #62

juan11perez opened this issue Apr 17, 2020 · 10 comments · Fixed by #63
Assignees

Comments

@juan11perez
Copy link

juan11perez commented Apr 17, 2020

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
Copy link
Member

aptalca commented Apr 17, 2020

We're gonna need more info than docker crashes

@juan11perez
Copy link
Author

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
Copy link
Member

aptalca commented Apr 17, 2020

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
Copy link
Author

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
Copy link
Member

aptalca commented Apr 17, 2020

you need to post a full log

@juan11perez
Copy link
Author

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
Copy link
Member

aptalca commented Apr 17, 2020

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

@juan11perez
Copy link
Author

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
Copy link
Member

aptalca commented Apr 18, 2020

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

@aptalca aptalca self-assigned this Apr 18, 2020
@juan11perez
Copy link
Author

juan11perez commented Apr 18, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants