mini DLNA Server Error Issue

Hi Everyone

I keep getting this error with the mini DLNA Server.

Does my video folder have a content size limit? As the server goes offline with so many videos in the video folder.

If I delete a couple of videos them restart the service the server comes back online.

How do I fix it?

Thanks :slight_smile:

Hi,

do you have any output on journalctl -u minidlna.

As well pls avoid doing screen prints. If possible, copy the output from your SSH terminal.

journalctl -u minidlna Output

root@DietPi:~# journalctl -u minidlna
-- Logs begin at Thu 2019-02-14 10:11:58 GMT, end at Thu 2021-06-24 12:18:08 BST. --
Jun 20 19:56:45 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 20 19:56:46 DietPi minidlnad[554]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 20 19:56:46 DietPi minidlnad[554]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 20 19:56:46 DietPi minidlnad[554]: minidlna.c:1101: warn: HTTP listening on port 8200
Jun 20 19:56:46 DietPi minidlnad[554]: playlist.c:135: warn: Parsing playlists...
Jun 20 19:56:46 DietPi minidlnad[554]: playlist.c:269: warn: Finished parsing playlists.
Jun 20 19:56:47 DietPi minidlnad[554]: monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [6] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
Jun 20 23:54:11 DietPi minidlnad[554]: minidlna.c:155: warn: received signal 15, good-bye
Jun 20 23:54:11 DietPi systemd[1]: Stopping MiniDLNA (DietPi)...
Jun 20 23:54:11 DietPi systemd[1]: minidlna.service: Succeeded.
Jun 20 23:54:11 DietPi systemd[1]: Stopped MiniDLNA (DietPi).
Jun 20 23:54:11 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 20 23:54:11 DietPi minidlnad[4267]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 20 23:54:11 DietPi minidlnad[4267]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:11 DietPi minidlnad[4267]: pragma default_cache_size = 8192;
Jun 20 23:54:11 DietPi minidlnad[4267]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 20 23:54:11 DietPi minidlnad[4267]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:11 DietPi minidlnad[4267]: pragma default_cache_size = 8192;
Jun 20 23:54:11 DietPi minidlnad[4267]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:11 DietPi minidlnad[4267]: CREATE TABLE OBJECTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
Jun 20 23:54:11 DietPi minidlnad[4267]: scanner.c:618: error: Error creating SQLite3 database!
Jun 20 23:54:11 DietPi minidlnad[4267]: minidlna.c:371: fatal: ERROR: Failed to create sqlite database!  Exiting...
Jun 20 23:54:11 DietPi systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 20 23:54:11 DietPi systemd[1]: minidlna.service: Failed with result 'exit-code'.
Jun 20 23:54:40 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 20 23:54:40 DietPi minidlnad[4277]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 20 23:54:40 DietPi minidlnad[4277]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:40 DietPi minidlnad[4277]: pragma default_cache_size = 8192;
Jun 20 23:54:40 DietPi minidlnad[4277]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 20 23:54:40 DietPi minidlnad[4277]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:40 DietPi minidlnad[4277]: pragma default_cache_size = 8192;
Jun 20 23:54:40 DietPi minidlnad[4277]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 20 23:54:40 DietPi minidlnad[4277]: CREATE TABLE OBJECTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
Jun 20 23:54:40 DietPi minidlnad[4277]: scanner.c:618: error: Error creating SQLite3 database!
Jun 20 23:54:40 DietPi minidlnad[4277]: minidlna.c:371: fatal: ERROR: Failed to create sqlite database!  Exiting...
Jun 20 23:54:40 DietPi systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 20 23:54:40 DietPi systemd[1]: minidlna.service: Failed with result 'exit-code'.
Jun 21 00:22:20 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 00:22:20 DietPi minidlnad[4548]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 00:22:20 DietPi minidlnad[4548]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:22:20 DietPi minidlnad[4548]: pragma default_cache_size = 8192;
Jun 21 00:22:20 DietPi minidlnad[4548]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 00:22:20 DietPi minidlnad[4548]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:22:20 DietPi minidlnad[4548]: pragma default_cache_size = 8192;
Jun 21 00:22:20 DietPi minidlnad[4548]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:22:20 DietPi minidlnad[4548]: CREATE TABLE OBJECTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
Jun 21 00:22:20 DietPi minidlnad[4548]: scanner.c:618: error: Error creating SQLite3 database!
Jun 21 00:22:20 DietPi minidlnad[4548]: minidlna.c:371: fatal: ERROR: Failed to create sqlite database!  Exiting...
Jun 21 00:22:20 DietPi systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 21 00:22:20 DietPi systemd[1]: minidlna.service: Failed with result 'exit-code'.
Jun 21 00:24:12 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 00:24:12 DietPi minidlnad[4597]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 00:24:12 DietPi minidlnad[4597]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:24:12 DietPi minidlnad[4597]: pragma default_cache_size = 8192;
Jun 21 00:24:12 DietPi minidlnad[4597]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 00:24:12 DietPi minidlnad[4597]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:24:12 DietPi minidlnad[4597]: pragma default_cache_size = 8192;
Jun 21 00:24:12 DietPi minidlnad[4597]: sql.c:41: error: SQL ERROR 13 [database or disk is full]
Jun 21 00:24:12 DietPi minidlnad[4597]: CREATE TABLE OBJECTS (ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
Jun 21 00:24:12 DietPi minidlnad[4597]: scanner.c:618: error: Error creating SQLite3 database!
Jun 21 00:24:12 DietPi minidlnad[4597]: minidlna.c:371: fatal: ERROR: Failed to create sqlite database!  Exiting...
Jun 21 00:24:12 DietPi systemd[1]: minidlna.service: Main process exited, code=exited, status=255/EXCEPTION
Jun 21 00:24:12 DietPi systemd[1]: minidlna.service: Failed with result 'exit-code'.
Jun 21 00:25:10 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 00:25:11 DietPi minidlnad[4652]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 00:25:11 DietPi minidlnad[4652]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 00:25:11 DietPi minidlnad[4652]: minidlna.c:1101: warn: HTTP listening on port 8200
Jun 21 00:25:12 DietPi minidlnad[4652]: playlist.c:135: warn: Parsing playlists...
Jun 21 00:25:12 DietPi minidlnad[4652]: playlist.c:269: warn: Finished parsing playlists.
Jun 21 00:25:13 DietPi minidlnad[4652]: monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [12] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
Jun 21 14:02:32 DietPi minidlnad[4652]: minidlna.c:155: warn: received signal 15, good-bye
Jun 21 14:02:32 DietPi systemd[1]: Stopping MiniDLNA (DietPi)...
Jun 21 14:02:32 DietPi systemd[1]: minidlna.service: Succeeded.
Jun 21 14:02:32 DietPi systemd[1]: Stopped MiniDLNA (DietPi).
Jun 21 14:18:15 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 14:18:17 DietPi minidlnad[13499]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 14:18:17 DietPi minidlnad[13499]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 14:18:17 DietPi minidlnad[13499]: minidlna.c:1101: warn: HTTP listening on port 8200
Jun 21 14:18:19 DietPi minidlnad[13499]: playlist.c:135: warn: Parsing playlists...
Jun 21 14:18:19 DietPi minidlnad[13499]: playlist.c:269: warn: Finished parsing playlists.
Jun 21 14:18:20 DietPi minidlnad[13499]: monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [12] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
Jun 21 18:13:47 DietPi minidlnad[13499]: minidlna.c:155: warn: received signal 15, good-bye
Jun 21 18:13:47 DietPi systemd[1]: Stopping MiniDLNA (DietPi)...
Jun 21 18:13:48 DietPi systemd[1]: minidlna.service: Succeeded.
Jun 21 18:13:48 DietPi systemd[1]: Stopped MiniDLNA (DietPi).
Jun 21 18:13:48 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 18:13:48 DietPi minidlnad[15721]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 18:13:48 DietPi minidlnad[15721]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 18:13:48 DietPi minidlnad[15721]: minidlna.c:1101: warn: HTTP listening on port 8200
Jun 21 18:13:50 DietPi minidlnad[15721]: playlist.c:135: warn: Parsing playlists...
Jun 21 18:13:50 DietPi minidlnad[15721]: playlist.c:269: warn: Finished parsing playlists.
Jun 21 18:13:50 DietPi minidlnad[15721]: monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [12] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
Jun 21 20:48:30 DietPi minidlnad[15721]: minidlna.c:155: warn: received signal 15, good-bye
Jun 21 20:48:30 DietPi systemd[1]: Stopping MiniDLNA (DietPi)...
Jun 21 20:48:30 DietPi systemd[1]: minidlna.service: Succeeded.
Jun 21 20:48:30 DietPi systemd[1]: Stopped MiniDLNA (DietPi).
Jun 21 20:48:30 DietPi systemd[1]: Started MiniDLNA (DietPi).
Jun 21 20:48:30 DietPi minidlnad[17143]: minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
Jun 21 20:48:30 DietPi minidlnad[17143]: minidlna.c:355: warn: Creating new database at /mnt/dietpi_userdata/.MiniDLNA_Cache/files.db
Jun 21 20:48:30 DietPi minidlnad[17143]: minidlna.c:1101: warn: HTTP listening on port 8200
Jun 21 20:48:32 DietPi minidlnad[17143]: playlist.c:135: warn: Parsing playlists...
Jun 21 20:48:32 DietPi minidlnad[17143]: playlist.c:269: warn: Finished parsing playlists.
Jun 21 20:48:32 DietPi minidlnad[17143]: monitor.c:218: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [12] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
Jun 21 22:44:36 DietPi minidlnad[17143]: upnphttp.c:2020: warn: Specified range was invalid!
Jun 22 07:55:29 DietPi minidlnad[17143]: upnpsoap.c:2193: warn: SoapMethod: Unknown: AddPortMapping
Jun 22 07:55:29 DietPi minidlnad[17143]: upnpsoap.c:123: warn: Returning UPnPError 401: Invalid Action
Jun 22 07:55:48 DietPi minidlnad[17143]: upnpsoap.c:2193: warn: SoapMethod: Unknown: GetGenericPortMappingEntry
Jun 22 07:55:48 DietPi minidlnad[17143]: upnpsoap.c:123: warn: Returning UPnPError 401: Invalid Action
Jun 22 07:55:48 DietPi minidlnad[17143]: upnpsoap.c:2193: warn: SoapMethod: Unknown: DeletePortMapping
Jun 22 07:55:48 DietPi minidlnad[17143]: upnpsoap.c:123: warn: Returning UPnPError 401: Invalid Action

Well it seems you have a full disk

Jun 20 23:54:40 DietPi minidlnad[4277]: sql.c:41: error: SQL ERROR 13 [database or disk is full]

this would explain why deleting stuff will get your server back online.

Once you stuck again, you could verify disk space usage using df -h

Can I not move the Pictures, Movies & Music directories to the 2TB hard drive, I have connected to the Pi?

Thanks
Screenshot 2021-06-27 141649.png

you could transfer the entire diretory /mnt/dietpi_userdata/ to the external HDD using dietpi-drive_manager

I will give transfering the directory over a go.

Thanks

It Worked. Thanks Joulinar

thx for feedback

I have also an issue with starting MiniDLNA…

Somehow you are missing the log directory

mkdir -p /var/log/minidlna
chown minidlna:dietpi /var/log/minidlna
chmod 755 /var/log/minidlna
systemctl restart minidlna.service