bigretromike / nakamori

Nakamori is Kodi addon that use Shoko (known as Japanese Media Manager (JMM)) Server as back-end for metadata information.
https://shokunin.monogatari.pl/nakamori/
49 stars 5 forks source link

Nakamori is not working in docker #325

Closed Blackdixxa closed 5 years ago

Blackdixxa commented 5 years ago

I'm actually on a Manjaro 18.0.4 with a simple kodi install.

sudo pacman -s kodi

When I'm trying to connect to my shoko on docker I have this issue. shoko_error

To create my docker I've used docker-compose, you need to create a docker-compose.yml file and use this command where the file is located.

docker-compose up -d

this is my docker-compose.yml

version: "3.6"
services:
    shoko_server:
        container_name: shokoserver
        image: cazzar/shokoserver:daily
        restart: unless-stopped
        networks:
            - net1
        ports:
            - 8111:8111
        environment:
            TZ: Europe/Paris
            PUID: 0
            PGID: 0
        volumes:
            - /docker/shoko/conf_root:/root/.shoko
            - /docker/shoko/webui:/usr/src/app/build/webui 
            - /mnt/nas/Mangas:/anime
            - /mnt/download/complete/:/import

networks:
  net1:
    external: true
    name: net1

the vm hosting this docker shoko is an alpine with obviosuly mounted share here is my fstab :

UUID=7e1e909e-a6dd-470c-a74d-f554837be774       /       ext4    rw,relatime,data=ordered 0 1
UUID=889866d7-ba4a-4d8c-94cb-45b982265e68       /boot   ext4    rw,relatime,data=ordered 0 2
UUID=d21fd546-2226-468f-8ad0-0b41ad7ff00c       swap    swap    defaults        0 0
/dev/cdrom      /media/cdrom    iso9660 noauto,ro 0 0
/dev/usbdisk    /media/usb      vfat    noauto  0 0

10.0.0.2:/Videos /mnt/nas/  nfs auto,noatime,_netdev 0 0
10.0.0.2:/Download  /mnt/download/  nfs auto,noatime,_netdev 0 0
10.0.0.2:/Music /mnt/Music nfs auto,noatime,_netdev 0 0
10.0.0.2:/Software /mnt/Software/  nfs auto,noatime,_netdev 0 0

installing alpine is really simple you can follow this video guide. https://www.youtube.com/watch?v=axlAUkKzbx8

bigretromike commented 5 years ago

the Docker host is on Alpine Linux

Blackdixxa commented 5 years ago

Yeah Alpine Linux 4.19.41-0-virt

bigretromike commented 5 years ago

Standard or Extended Installer?

Blackdixxa commented 5 years ago

standard

Blackdixxa commented 5 years ago

I've tried the nakamori script addon in kodi > addons > programs > installation integrity and received a nice Screenshot_20190520_211918

bigretromike commented 5 years ago

those looks like a translation strings, probably conversion from WIN to LINUX, you can ignore any strings.po errors.

bigretromike commented 5 years ago

did you Isolate containers with a user namespace ?

bigretromike commented 5 years ago

With using only WEBUI Wizard everything throw INTERNAL ERROR 500 with exception of INIT.

bigretromike commented 5 years ago

OK, I have same issue. I can access webui (with tons or errors but it looks like the init worked) and now can't enter nakamori.

bigretromike commented 5 years ago

@da3dsoul

{"errors":{"tagfilter":["The value '0' is invalid."]},"title":"One or more validation errors occurred.","status":400,"traceId":"0HLMTR0DPRMDL:00000001"}

This is the error from docker

bigretromike commented 5 years ago

@da3dsoul as point out I shouldn't fix it this way, so until he fix docker for you here is the modification you need to do to one file to make it work for you.

I would suggest doing this on stable because each dev update will with your modification (and its more frequent than stable updates)

https://github.com/bigretromike/nakamori.lib/commit/f19746512f5f7c21541e85de326f9b86abf6bc62#diff-8de7793982327d10322ba8f17c870619