logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 03-06-2020 19:18:54

ousia
Membre
Inscription : 03-06-2020

minidlna

J'ai installé minidlna en suivant le tuto et j’obtiens ceci sur la console :

● minidlna.service - LSB: minidlna server
   Loaded: loaded (/etc/init.d/minidlna; generated)
   Active: active (running) since Wed 2020-06-03 19:43:19 CEST; 1min 23s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8095 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)
    Tasks: 2 (limit: 4915)
   Memory: 10.8M
   CGroup: /system.slice/minidlna.service
           └─8106 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -r

juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "A,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-3/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-musique-1/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "A,/media/bernard-deb/Seagate Expansion Drive/Musique-1/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/Seagate Expansion Drive/Videos-1/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "A,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Musique-5/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-5/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-musique-2/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer minidlna[8095]: [2020/06/03 19:43:18] minidlna.c:631: error: Media directory "V,/media/bernard-deb/2ba1e167-c7c5-4084-8ae4-0f01257a3cb719/Videos/" not accessible [Permission denied]
juin 03 19:43:19 deborah-acer systemd[1]: Started LSB: minidlna server.

Voici mon fichier minidlna.conf :

# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.

# Specify the user name or uid to run as (root by default).
# On Debian system command line option (from /etc/default/minidlna) overrides this.
#user=root
#group=root

# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=A,/media/bernard-deb/876a93f4-ff60-476b-b00c-2db71550fb60/Musique-4/
media_dir=V,/media/bernard-deb/876a93f4-ff60-476b-b00c-2db71550fb60/Videos-4/Films-4/
media_dir=A/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Musique-2/
media_dir=V,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/
media_dir=A,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/
media_dir=V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-3/
media_dir=V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-musique-1/
media_dir=A,/media/bernard-deb/Seagate Expansion Drive/Musique-1/
media_dir=V,/media/bernard-deb/Seagate Expansion Drive/Videos-1/
media_dir=A,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Musique-5/
media_dir=V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-5/
media_dir=V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-musique-2/
media_dir=V,/media/bernard-deb/2ba1e167-c7c5-4084-8ae4-0f01257a3cb719/Videos/

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
#   * "." - standard container
#   * "B" - "Browse Directory"
#   * "M" - "Music"
#   * "P" - "Pictures"
#   * "V" - "Video"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
#network_interface=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
#friendly_name=

# Serial number the server reports to clients.
# Defaults to the MAC address of nework interface.
#serial=

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
#model_number=

# Automatic discovery of new files in the media_dir directory.
#inotify=yes

# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no

# Which method to use for registering in TiVo: 'bonjour' (default) or
# legacy 'beacon'
#tivo_discovery=bonjour

# SSDP notify interval, in seconds.
#notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50

# set this to yes to allow symlinks that point outside user-defined media_dirs.
#wide_links=no

Et voici mon fichier /etc/default/minidnla :

# Defaults for minidlna initscript
# sourced by /etc/init.d/minidlna
# installed at /etc/default/minidlna by the maintainer scripts

# These options can be set to modify the behavior of the minidlna init script.
# The options commented out show the default values.

# Start the daemon if set to "yes"
START_DAEMON="yes"

# Path to the configuration file
#CONFIGFILE="/etc/minidlna.conf"

# Path to the log file
#LOGFILE="/var/log/minidlna.log"

# User and group the daemon should run as
#USER="minidlna"
GROUP="bernard-deb"

# Additional options that are passed to the daemon
# We pass -r option to do soft non-destructive rebuild on every start-up.
# If your systerm restarts often, you might want to remove this.
DAEMON_OPTS="-r"

Les fichiers sont sur des disques externes dans des dossiers appartenant à user:"bernard-deb" groupe:"bernard-deb"
Quelqu'un a-t-il une idée sur ce mystère ? 
Merci d'avance

Hors ligne

#2 04-06-2020 23:01:45

David5647
Membre
Distrib. : Debian Sid
Noyau : 5.15.0-2-amd64
(G)UI : i3wm + des bouts de kde
Inscription : 27-08-2017

Re : minidlna

'soir!

1. Essais d'utiliser les balises codes quand tu postes un code, surtout aussi long ,ça facilitera la lecture de ton poste er donc l'aide approtée
2. Quel tuto?

Sinon,
Je suppose que le possesseur du service minidlna ne dispose pas des droits nécessaires en lecture sur tes répertoires de stockage.
Quand le service est lancé, que renvoie:

ps -aux | grep minidlna


et

ls -l chemin/du/repertoire/des/médias/

?

Hors ligne

#3 05-06-2020 12:34:08

ousia
Membre
Inscription : 03-06-2020

Re : minidlna

J'ai utilisé le tuto de ce site (très clair au demeurant).

Pour ce tu me demande voici ce que j'obtiens :

bernard-deb@deborah-acer:~$ ls -l /media/bernard-deb/
total 108
drwx------ 2 root        root        4096 mars  23 09:57  2ba1e167-c7c5-4084-8ae4-0f01257a3cb7
drwx------ 2 root        root        4096 mars  23 10:02  2ba1e167-c7c5-4084-8ae4-0f01257a3cb71
drwx------ 2 root        root        4096 avril  2 16:37  2ba1e167-c7c5-4084-8ae4-0f01257a3cb710
drwx------ 2 root        root        4096 avril  4 16:17  2ba1e167-c7c5-4084-8ae4-0f01257a3cb711
drwx------ 2 root        root        4096 avril 22 00:09  2ba1e167-c7c5-4084-8ae4-0f01257a3cb712
drwx------ 2 root        root        4096 avril 28 18:07  2ba1e167-c7c5-4084-8ae4-0f01257a3cb713
drwx------ 2 root        root        4096 mai    3 17:50  2ba1e167-c7c5-4084-8ae4-0f01257a3cb714
drwx------ 2 root        root        4096 mai   16 16:11  2ba1e167-c7c5-4084-8ae4-0f01257a3cb715
drwx------ 2 root        root        4096 mai   19 12:38  2ba1e167-c7c5-4084-8ae4-0f01257a3cb716
drwx------ 2 root        root        4096 mai   23 19:21  2ba1e167-c7c5-4084-8ae4-0f01257a3cb717
drwx------ 2 root        root        4096 mai   26 10:33  2ba1e167-c7c5-4084-8ae4-0f01257a3cb718
drwxrwxr-x 6 bernard-deb bernard-deb 4096 janv. 22 23:03  2ba1e167-c7c5-4084-8ae4-0f01257a3cb719
drwx------ 2 root        root        4096 mars  23 10:07  2ba1e167-c7c5-4084-8ae4-0f01257a3cb72
drwx------ 2 root        root        4096 mars  23 10:15  2ba1e167-c7c5-4084-8ae4-0f01257a3cb73
drwx------ 2 root        root        4096 mars  25 17:28  2ba1e167-c7c5-4084-8ae4-0f01257a3cb74
drwx------ 2 root        root        4096 mars  25 17:34  2ba1e167-c7c5-4084-8ae4-0f01257a3cb75
drwx------ 2 root        root        4096 mars  26 08:18  2ba1e167-c7c5-4084-8ae4-0f01257a3cb76
drwx------ 2 root        root        4096 mars  26 08:22  2ba1e167-c7c5-4084-8ae4-0f01257a3cb77
drwx------ 2 root        root        4096 mars  28 15:30  2ba1e167-c7c5-4084-8ae4-0f01257a3cb78
drwx------ 2 root        root        4096 avril  2 16:32  2ba1e167-c7c5-4084-8ae4-0f01257a3cb79
drwx------ 2 root        root        4096 mars  31 13:16  3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c
drwxrwxr-x 8 bernard-deb bernard-deb 4096 janv. 23 00:50  3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1
drwxrwxr-x 6 bernard-deb bernard-deb 4096 mai   25  2019  876a93f4-ff60-476b-b00c-2db71550fb60
drwxrwxr-x 5 bernard-deb bernard-deb 4096 mai   17 11:48  9c4998ce-0c23-4bf9-a7fe-249d53acc198
drwxrwxr-x 8 bernard-deb bernard-deb 4096 mai   25  2019  d625057d-64ed-4c0a-a425-65e53d599d6c
drwxrwxr-x 5 bernard-deb bernard-deb 4096 avril  9  2018  ff4d3eba-0938-4797-b92f-4f35d7e02374
drwxrwxrwx 1 bernard-deb bernard-deb 4096 juin  19  2019 'Seagate Expansion Drive'
bernard-deb@deborah-acer:~$ ps -aux | grep minidlna
minidlna  1213  0.0  0.1 253336  8368 ?        Ssl  11:29   0:00 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -r
bernard+  5942  0.0  0.0   6224   888 pts/2    S+   12:58   0:00 grep minidlna
 



Je te remets, mis en forme, ce que donne la demande du status de minidlna :

root@deborah-acer:~# service minidlna status
● minidlna.service - LSB: minidlna server
   Loaded: loaded (/etc/init.d/minidlna; generated)
   Active: active (running) since Fri 2020-06-05 11:29:40 CEST; 1h 40min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 2 (limit: 4915)
   Memory: 24.3M
   CGroup: /system.slice/minidlna.service
           └─1213 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -r

juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "A,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-3/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-musique-1/" not accessible [Permission de
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "A,/media/bernard-deb/Seagate Expansion Drive/Musique-1/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/Seagate Expansion Drive/Videos-1/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "A,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Musique-5/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-5/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-musique-2/" not accessible [Permission d
juin 05 11:29:40 deborah-acer minidlna[832]: [2020/06/05 11:29:40] minidlna.c:631: error: Media directory "V,/media/bernard-deb/2ba1e167-c7c5-4084-8ae4-0f01257a3cb719/Videos/" not accessible [Permission denied]
juin 05 11:29:40 deborah-acer systemd[1]: Started LSB: minidlna server.



ainsi que mon fichier minidlna.conf :

# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Unless otherwise noted, the commented out options show their default value.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.

# Specify the user name or uid to run as (root by default).
# On Debian system command line option (from /etc/default/minidlna) overrides this.
#user=root
#group=root

# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
#   * "A" for audio    (eg. media_dir=A,/var/lib/minidlna/music)
#   * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
#   * "V" for video    (eg. media_dir=V,/var/lib/minidlna/videos)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=A,/media/bernard-deb/876a93f4-ff60-476b-b00c-2db71550fb60/Musique-4/
media_dir=V,/media/bernard-deb/876a93f4-ff60-476b-b00c-2db71550fb60/Videos-4/Films-4/
media_dir=A/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Musique-2/
media_dir=V,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/
media_dir=A,/media/bernard-deb/ff4d3eba-0938-4797-b92f-4f35d7e02374/Videos-2/
media_dir=V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-3/
media_dir=V,/media/bernard-deb/d625057d-64ed-4c0a-a425-65e53d599d6c/Videos-musique-1/
media_dir=A,/media/bernard-deb/Seagate Expansion Drive/Musique-1/
media_dir=V,/media/bernard-deb/Seagate Expansion Drive/Videos-1/
media_dir=A,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Musique-5/
media_dir=V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-5/
media_dir=V,/media/bernard-deb/3c6b897e-3fe3-453e-9f4d-3ce6dd6eeb2c1/Videos-musique-2/
media_dir=V,/media/bernard-deb/2ba1e167-c7c5-4084-8ae4-0f01257a3cb719/Videos/

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
#log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
#   * "." - standard container
#   * "B" - "Browse Directory"
#   * "M" - "Music"
#   * "P" - "Pictures"
#   * "V" - "Video"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the client device is audio-only then "Music/Folders"
# will be used as root.
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
#network_interface=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=8200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
#friendly_name=

# Serial number the server reports to clients.
# Defaults to the MAC address of nework interface.
#serial=

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
#model_number=

# Automatic discovery of new files in the media_dir directory.
#inotify=yes

# List of file names to look for when searching for album art.
# Names should be delimited with a forward slash ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
#strict_dlna=no

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no

# Which method to use for registering in TiVo: 'bonjour' (default) or
# legacy 'beacon'
#tivo_discovery=bonjour

# SSDP notify interval, in seconds.
#notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50

# set this to yes to allow symlinks that point outside user-defined media_dirs.
#wide_links=no
 



Et encore merci.

Hors ligne

#4 05-06-2020 23:19:35

David5647
Membre
Distrib. : Debian Sid
Noyau : 5.15.0-2-amd64
(G)UI : i3wm + des bouts de kde
Inscription : 27-08-2017

Re : minidlna

Ce tuto? https://debian-facile.org/doc:reseau:minidlna

Bon, c'est pas très simple à lire tout ça, avec de tel nom dans l'arborescence smile
mais si je lis bien,
Les fichiers devraient appartenir (être accessibles en lecture tout du moins) (edit : je sais pas trop si c'est suffisant)
    * au groupe bernard-deb (si dans la config : GROUP="bernard-deb") ou groupe minidlna par défaut je pense
    * ou à l'utilisateur minidlna (ps -aux)

Il faut donc vérifier que l'un ou l'autre ai [url=https://debian-facile.org/doc:systeme:droits-unix?s[]=permission]les droits[/url] de lecture sur ces fichiers et les répertoires et tout au long du chemin. On peut vérifier ces permissions avec

ls -l chemin/du/repertoire/des/médias/



chmod pour changer les droits :
https://debian-facile.org/doc:systeme:chmod
chown pour changer le propriétaire du fichier
https://debian-facile.org/doc:systeme:chown

Essaie de voir, si tu te débrouilles avec ça, teste sur un répertoire, si ça marche tu appliques aux autres, (un peu difficile d'explorer tout d'ici, à distance...)

Dernière modification par David5647 (06-06-2020 21:03:18)

Hors ligne

#5 11-06-2020 15:53:59

Slyfox
Membre
Distrib. : Linux pop-os
Noyau : Linux 6.2.6-76060206-generic
(G)UI : GNOME
Inscription : 15-12-2013

Re : minidlna

Bonjour,

@ ousia

Sur le tuto regarde si tu as bien fait la section "Configuration de l'utilisateur et groupe"

D'après ce que je vois il semble que tu utilises un disque externe et je ne peux qu'appuyer ce que dit David5647 fais d'abord un test avec un seul répertoire par exemple /home puis rajoute au fur et à mesure des répertoires.

Pour rappel il faut attendre un peu pour que tout soit mis à jour (notify_interval=60 --> 60 secondes avant recherche de nouveaux fichiers)

Si tu as des répertoires sur un disque externe, regarde le wiki chapitre "Disque dur externe"

A plus

Edit
J'ai mis à jour le wiki en rajoutant un script d'installation: Configuration simplifiée et graphique

Dernière modification par Slyfox (12-06-2020 15:51:24)

Hors ligne

#6 16-07-2020 14:24:05

ousia
Membre
Inscription : 03-06-2020

Re : minidlna

Le problème d’accès  aux fichiers est résolu (dans le fichier /usr/default/minidla je me suis défini comme USER). Ce qui donne:

root@deborah-acer:~# service minidlna status
● minidlna.service - LSB: minidlna server
   Loaded: loaded (/etc/init.d/minidlna; generated)
   Active: active (exited) since Thu 2020-07-16 14:46:46 CEST; 19min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 18036 ExecStart=/etc/init.d/minidlna start (code=exited, status=0/SUCCESS)

juil. 16 14:46:46 deborah-acer systemd[1]: Stopped LSB: minidlna server.
juil. 16 14:46:46 deborah-acer systemd[1]: Starting LSB: minidlna server...
juil. 16 14:46:46 deborah-acer systemd[1]: Started LSB: minidlna server.



Par contre ma TV, mon ampli, smartphone et tablette renvoient 'No Serveur'.
Le fichier files.db dans /var/cache/minidlna/ a comme propriétaire "minidlna" avec les droits d'écriture et de lecture et moi comme groupe avec droits d'écriture et de lecture.
Le fichier log de minidlna donne ceci:

tail -f /var/log/minidlna.log
[2020/07/15 16:07:47] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
[2020/07/15 16:07:47] minidlna.c:292: fatal: ERROR: Failed to open sqlite database!  Exiting...
[2020/07/16 14:40:15] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
[2020/07/16 14:40:16] minidlna.c:292: fatal: ERROR: Failed to open sqlite database!  Exiting...
[2020/07/16 14:42:56] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
[2020/07/16 14:42:56] minidlna.c:292: fatal: ERROR: Failed to open sqlite database!  Exiting...
[2020/07/16 14:46:41] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
[2020/07/16 14:46:41] minidlna.c:292: fatal: ERROR: Failed to open sqlite database!  Exiting...
[2020/07/16 14:46:46] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1.
[2020/07/16 14:46:46] minidlna.c:292: fatal: ERROR: Failed to open sqlite database!  Exiting...


Sur mon ancien PC cela fonctionnait à merveille !! Là..? Si quelqu’un a une idée... je lui en serais reconnaissant jusqu'à  la septième génération... (si,si)

Dernière modification par ousia (17-07-2020 14:24:50)

Hors ligne

#7 16-07-2020 16:39:10

seb95
Membre
Distrib. : openSUSE Tumbleweed et Debian 12
(G)UI : GNOME, Xfce et KDE
Inscription : 19-02-2017
Site Web

Re : minidlna

As tu ouvert les port 1900 en UDP et le port 8200 (dans la config mais qui doit être changé) en TCP et UDP?

Hors ligne

Pied de page des forums