Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
kodi can't open database in docker
Post Body

Hello,

I try to run a central database in docker on a raspberrypi4 in my home network. I think the issue is somewhere how I set it up.

On the device which runs kodi I start a browser and can browse to phpmyadmin with the MYSQL_USER username and password which is in the advancedsettings.xml. I can create and write data in the database. So it can be reached and the user has the necessary permission. I think. Or the problem is somewhere else.

I'm also a little bit confused because the error says "SqliteDatabase: cant't open" Shouldn't it be MySQL Database?

Error in kodi.log

2022-10-02 11:39:52.443 T:11552    INFO <general>: Running database version Addons33
2022-10-02 11:39:52.444 T:11552    INFO <general>: Running database version ViewModes6
2022-10-02 11:39:52.444 T:11552    INFO <general>: Running database version Textures13
2022-10-02 11:39:52.445 T:11552    INFO <general>: Running database version MyMusic82
2022-10-02 11:39:52.445 T:11552   FATAL <general>: SqliteDatabase: can't open 192.168.2.22/MyVideos119.db

docker-compose with network mode bridge

101   KodiDatabase:
102     image: lscr.io/linuxserver/mariadb:10.5.17-alpine
103     container_name: kodiDatabase
104     environment:
105       - PUID=1000
106       - PGID=1000
107       - MYSQL_ROOT_PASSWORD=ROOTPASSWORD
108       - TZ=Europe/London
109       - MYSQL_DATABASE=kodiDatabase
110       - MYSQL_USER=USERNAME
111       - MYSQL_PASSWORD=USERPASSWORD
112       - REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql
113     volumes:
114       - /media/Data/KodiDB:/config
115     ports:
116       - 3306:3306
117     dns:
118       - 192.168.2.1
119     networks:
120       dNet:
121         ipv4_address: 172.20.0.10
122     restart: always

advancedsettings.xml

<advancedsettings>
  <videodatabase>
    <type>MariaDB</type>
    <host>192.168.2.22</host>
    <port>3306</port>
    <user>USERNAME</user>
    <pass>USERPASSWORD</pass>
  </videodatabase>
</advancedsettings>

Author
Account Strength
100%
Account Age
3 years
Verified Email
Yes
Verified Flair
Yes
Total Karma
2,867
Link Karma
180
Comment Karma
2,671
Profile updated: 5 days ago
Posts updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago