You are not logged in.
Pages: 1
Hey everybody,
My arch installation is for a headless box in a dark room, serving my household needs. Up to now it was hosting my music collection for Sonos, serving video files for my smartTV for my toddler and more. I wanted to try out subsonic to have access to my music from work so this saturday, as I usually do when I start working on my arch box, I updated everything pacman -Syu. Afterwards I installed and successfully installed and configured subsonic. However I noticed my Sonos system and my minidlna server weren't working anymore.
I tried looking at Samba (hosting the music files) and minidlna (populating and sharing the video files), everything was working fine and dandy last week, but after looking at minidlna.conf and smb.conf for hours now I'm at my wit's end.
Here are a few bits of info that might be useful.
I installed minidlna in September about two months ago.
I use my Sonos system almost daily, so something definitely broke when I fiddled with the system on saturday. Be it when I installed subsonic (which I somehow doubt since it should be standalone) or (most-likely) when I upgraded everything with pacman -Syu, something broke then.
Sonos seems to use the SMB protocol to get its files but it's telling me access is denied. However, I can log in just fine with windows explorer and read/write to and from the share.
File permissions on /home/sonos and on /var/cache for the appropriate users are set, and haven't changed from the time these services worked.
If anyone has a thought on the matter, has any major firewallish or securityish features been added in the last month or two that may have broken this... please help!
Here are (I think) relevant parts of the config files, lines I didn't put in are as they would be in smb.conf.default or some such :
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8201# specify the user account name or uid to run as
user=minidlna# set this to the directory you want scanned.
# * if you want multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to specific content types, you
# can prepend the types, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
# + "PV" for pictures and video (eg. media_dir=PV,/home/jmaggard/digital_camera)
media_dir=APV,/home/sonos# set this to merge all media_dir base contents into the root container
# note: the default is no
merge_media_dirs=no# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=no
#======================= Global Settings =====================================
[global]# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.1. 192.168.2. 127.# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
# printcap name = /etc/printcap
# load printers = yes#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes[musicshare]
browseable = yes
comment = Raph Music Share
path = /home/sonos/music
valid users = sonos
writable = yes
Last edited by Chlikaflok (2016-11-01 18:21:53)
Offline
Please change your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post
Then, paste journal entries for the failed services. See How To Ask Questions The Smart Way
Moving to NC...
Offline
I modified the title to something else, though I'm not sure how I should title it since I only know minidlna and sonos aren't working anymore...
As for the journal entries, I posted .conf files if that's what you meant, the logs in /var/log are not helpful or empty
Offline
Use code, not quote, tags when pasting to the booster boards.
Presumably, you are running these as services, so there will be journal entries...
Offline
I will try to make another thread using the guidelines you mentionned, please close this one for now. Thank you!
Offline
I will try to make another thread using the guidelines you mentionned, please close this one for now.
Don't do that; you have a thread, there is no need to start another.
Offline
I don't know anything about Sonos but pretty sure minidlna doesn't require samba to serve music, video, and pictures to dlna devices. I've had better success with Mediatomb (vs minidlna) but don't know how or if it interacts with Sonos. Mediatomb occasionally has to be reset (maybe because of operator though and not flaws in the app). MT works very well with Google smart tv, also Windows pc's on the home network. For samba, what does
testparm -Iproduce? or
smbtree -d3, or
# smbstatus∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞
Offline
I kind of fixed everything in the end, I don't know what I did to my minidlna, but here's the current config file (for archive purposes). I also made sure to reset the permissions to 644 and 755 where applicable on the files and folders for the share :
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8201
# network interfaces to serve, comma delimited
#network_interface=eth0
# specify the user account name or uid to run as
user=minidlna
# set this to the directory you want scanned.
# * if you want multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to specific content types, you
# can prepend the types, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
# + "PV" for pictures and video (eg. media_dir=PV,/home/jmaggard/digital_camera)
media_dir=APV,/home/sonos
#media_dir=V,/home/sonos/videos
# set this to merge all media_dir base contents into the root container
# note: the default is no
merge_media_dirs=no
# set this if you want to customize the name that shows up on your clients
friendly_name=SonoServant
# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna
# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log
# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=no
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no
# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no
# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php
# notify interval in seconds. default is 895 seconds.
notify_interval=900
# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1
# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock
# use different container as root of the tree
# possible values:
# + "." - use standard container (this is the default)
# + "B" - "Browse Directory"
# + "M" - "Music"
# + "V" - "Video"
# + "P" - "Pictures"
# + Or, you can specify the ObjectID of your desired root container (eg. 1$F for Music/Playlists)
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
# always force SortCriteria to this value, regardless of the SortCriteria passed by the client
#force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
#max_connections=50As for samba, it's a Sonos problem on their end having to do with a new bug in their software. It somehow broke their Samba login ability, so having the share auto-login a read only state worked. Here's the relevant lines I'm using :
[musicshare]
path =/home/sonos/music
browsable = yes
guest ok = yes
read only = no
read list = guest nobody
write list = sonosOffline
Pages: 1