package bzip2: missing file /Alt-F/usr/bin/bzcatpackage bzip2: missing file /Alt-F/usr/bin/bunzip2package python: missing file /Alt-F/usr/lib/python2.7/Makefilepackage python: missing file /Alt-F/usr/lib/python2.7/pyconfig.h
#!/bin/sh
for j in $(ipkg -V0 list_installed | cut -d" " -f1); do for i in $(ipkg -V0 files $j | grep ^/Alt-F); do if ! readlink -f $i >/dev/null ; then echo package $j: missing file $i fi done done
Greetings!
As a Noob, I've not yet gotten the script to run. I copied it to a text file (under Windows)
and saved it as check-pkgs.sh. I copied the script file to the DNS-323 B1 Volume_2 root and telenet in with putty as follows:
[root@DNS-323]# cd /mnt/Volume_2[root@DNS-323]# chmod +x check-pkgs.sh[root@DNS-323]# ./check-pkgs.sh-sh: ./check-pkgs.sh: not found[root@DNS-323]# /mnt/Volume_2/check-pkgs.sh-sh: /mnt/Volume_2/check-pkgs.sh: not found[root@DNS-323]#Chmod seems to execute okay? Not sure why it's not found?I also note that forked daapd is shutting down on it's own.
I start it and it seems to be doing a media scan but when I check later it's stopped on it's own. I have a large mp3 library of over 17000 tracks.
Greetings!
I figured it was something like that. Thank you, Teacher João. File converted:
login as: root
COLUMNS=80;LINES=24;export COLUMNS LINES;
[root@DNS-323]# dos2unix check-pkgs.shdos2unix: can't open 'check-pkgs.sh': No such file or directory
[root@DNS-323]# cd /mnt/Volume_2[root@DNS-323]# dos2unix check-pkgs.sh
[root@DNS-323]# chmod +x check-pkgs.sh[root@DNS-323]# ./check-pkgs.sh
package avahi: missing file /Alt-F/etc/avahi/services/rsync.service-package avahi: missing file /Alt-F/etc/avahi/services/printer.service-package avahi: missing file /Alt-F/etc/avahi/services/http.service-package avahi: missing file /Alt-F/etc/avahi/services/ssh.service-package avahi: missing file /Alt-F/etc/avahi/services/ftp.service-package avahi: missing file /Alt-F/etc/avahi/services/smb.service-package avahi: missing file /Alt-F/etc/avahi/services/sftp-ssh.service-package avahi: missing file /Alt-F/etc/avahi/services/telnet.service-
package bzip2: missing file /Alt-F/usr/bin/bzcatpackage bzip2: missing file /Alt-F/usr/bin/bunzip2package python: missing file /Alt-F/usr/lib/python2.7/Makefilepackage python: missing file /Alt-F/usr/lib/python2.7/pyconfig.h
package vsftpd: missing file /Alt-F/etc/vsftpd.conf[root@DNS-323]#Looks like AVAHI is pretty hosed.
I expect that could be the root of my problems.Because of the dependencies with forked_daapd and mpd I can't remove it without removing those. What is your suggestion on how I should proceed? Should I nuke all three and start over?
[2014/07/08 11:23:37] minidlna.c:1014: warn: Starting MiniDLNA version 1.1.3. [2014/07/08 11:23:37] minidlna.c:355: warn: Creating new database at /var/lib/minidlna/files.db [2014/07/08 11:23:38] minidlna.c:1053: warn: HTTP listening on port 8200 [2014/07/08 11:23:38] scanner.c:736: warn: Error scanning /mnt/Volume_2/Public/RW/My_Videos [2014/07/08 11:23:38] scanner.c:736: warn: Error scanning /mnt/Volume_2/Public/RW/Pictures [2014/07/08 11:23:39] scanner.c:736: warn: Error scanning /mnt/Volume_2/Public/RW/My_Music [2014/07/08 11:23:39] playlist.c:125: warn: Parsing playlists... [2014/07/08 11:23:39] playlist.c:259: warn: Finished parsing playlists. [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/My_Videos) [Permission denied] [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/Pictures) [Permission denied] [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/My_Music) [Permission denied] [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/My_Videos) [Permission denied] [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/Pictures) [Permission denied] [2014/07/08 11:23:40] inotify.c:92: error: inotify_add_watch(/mnt/Volume_2/Public/RW/My_Music) [Permission denied]
After a recent reboot the problem with the forked daapd service stopping has not occurred again. Neither forked daapd or minidlna are working though. Looking at the logs, it looks like a permission problem remains.[2014/07/08 11:23:37] minidlna.c:1014: warn: Starting MiniDLNA version 1.1.3. [2014/07/08 11:23:37] minidlna.c:355: warn: Creating new database at /var/lib/minidlna/files.db [2014/07/08 11:23:38] minidlna.c:1053: warn: HTTP listening on port 8200 [2014/07/08 11:23:38] scanner.c:736: warn: Error scanning /mnt/Volume_2/Public/RW/My_Videos
minidlna runs (when called through its initscript 'rcminidlna' or through the webUI) as user 'minidlna' and group 'multimedia'.
Just like a normal user it has to have permissions to read files and browse folders in the folders and sub-folders that it is going to scan.
The default Public folder has such permissions, don't know what permissions and ownership Public/RW/My_Videos (and its files and sub-folders) have.
Greetings!minidlna runs (when called through its initscript 'rcminidlna' or through the webUI) as user 'minidlna' and group 'multimedia'.Should I see the User 'minidlna'
and the group 'multimedia'
in the webui 'Users and Groups Setup' section (Setup/Users)? They aren't there.
I would like only those in the User group to have access to public folders. I don't want the access open so I did make changes.
The log for forked daapd is similar with permission denied showing as well. I can post that log but figured the problem is related so a solution for one will no doubt lead to a solution with the other.
and the group 'multimedia'
Yes
in the webui 'Users and Groups Setup' section (Setup/Users)? They aren't there.
Perhaps a migration issue?
I would like only those in the User group to have access to public folders. I don't want the access open so I did make changes.
That was not designed to be that way. Instead, users who could have access to multimedia files should be added to the multimedia group.
And multimedia files and folders should belong to group multimedia. Folders must have (at least) read/browse group permission and files (at least) read permission. Ownership don't need to be multimedia, can/shall be a real user. E.g.:
# ls -la /Public/RO/Music/Sarah\ Vaughan/JazzTime/
drwxr-x--- 2 jcard multimed 1024 May 7 16:06 .
drwxr-x--- 3 jcard multimed 1024 May 7 15:51 ..
-rwxr----- 1 jcard multimed 4132675 Jan 10 2010 01 Lover Man.mp3
-rwxr----- 1 jcard multimed 4860448 Jan 10 2010 16 That's All.mp3
I'm the owner, jcard, can do whatever I want; to the group (multimedia) I only gave "ear" and browse permissions.
But you are right, minidlna is faulty in this respect. It accepts a '-u user' command line argument, so it will run as that user (minidlna), *but* it does not runs as the group (multimedia) of that user.
So, I have to fix that. (add a ticket, please)
Meanwhile, try the following (can you read it? a '-' means a line is removed, a '+' a line is added, other lines will be unchanged and used as other lines location context:
--- /etc/init.d/S80minidlna.orig
+++ /etc/init.d/S80minidlna
@@ -14,7 +14,7 @@
RC_DESC="minidlna daemon"
RC_PIDFILE=/var/run/$NAME/$NAME.pid
-MINIDLNA_ARGS="-u $RC_USER "
+MINIDLNA_ARGS=""
. /etc/init.d/common
@@ -51,12 +51,14 @@
exit 1
}
-check_user $CONF_MINIDLNA /var/lib/$RC_USER
+touch /var/log/minidlna.log
+mkdir -p /var/run/minidlna
+check_user $CONF_MINIDLNA /var/lib/$RC_USER /var/run/minidlna /var/log/minidlna.log
case "$1" in
start)
check_shares
- start $NAME -- $RESCAN $MINIDLNA_ARGS
+ start $NAME --chuid $RC_USER:$RC_GROUP -- $RESCAN $MINIDLNA_ARGS
;;
stop) stop $NAME ;;
Did it work?
(...)
The log for forked daapd is similar with permission denied showing as well. I can post that log but figured the problem is related so a solution for one will no doubt lead to a solution with the other.
Try a similar solution
In any case this should be in a different thread, such as "minidlna/forked_daapd permission denied to access multimedia files"
Greetings!I have a few questions...
I'm pretty sure that I have extensively replied to this post, but it doesn't show-up... and I just don't want to do it again, sorry :-)
It looks like "good-practices" are not followed by everyone anymore.
So you, Kevin, humble Alt-F user, feel free to make it run the easiest way for you, not the correct way :-(
I'm pretty sure that I have extensively replied to this post, but it doesn't show-up... and I just don't want to do it again, sorry :-)I'm dependent on your consideration or lack of it to help sort out my problems with the new firmware. I understand your frustration with spending the time and effort to construct a reply to only have it go missing but if you won't (re-)answer about the specifics of the problem, I don't see how I can open a ticket as you've suggested. I wouldn't know what to put in it.
It looks like "good-practices" are not followed by everyone anymore.
So you, Kevin, humble Alt-F user, feel free to make it run the easiest way for you, not the correct way :-(If it wasn't for the problem I've encountered with moving to RC4, I would be blissfully ignorant of such things. Unfortunately, even if I wanted to follow your recommended practices,
MINIDLNA_ARGS="-u $RC_USER " # replace this
MINIDLNA_ARGS="-u joe " # with this
the missing multimedia group would make that difficult/impossible from the webui?
cat /etc/passwd # don't be afraid, no password will be shown
cat /etc/group
I found that vi was present and I also installed the vim package and looked at it so I was able to figure out the editing of the file on my own. Can't say I saw a lot of difference between the two editors at least for what I needed to accomplish?
Considering your last somewhat unfriendly reply, it seems you're no longer assisting me with this issue so I'm not sure how to proceed?
When I hit the submit button, I got a "something error, reload!". And the post vanished after doing that!Having web-based apps like Google Groups is like having a disk with intermittent failures and not being able to replace it!
The easy solution for you is to change permissions on your media folder, so anyone (minidlna) can read and browse through it.
But remember to apply the changes to files and subfolder also! If permissions are wide open your shouldn't have minidlna errors. This worked in RC2 for you, will work for RC4 and will works on all unixes. That is (one of the things) what I call bad pratices, but sometimes we are in a hurry.
Also remember that the log is appended, so the log of a new start of minidlna will be at the end.
My_Videos | root | users | rwxrwsrwx |
Pictures | root | users | rwxrwsrwx |
Another solution is to start minidlna on behalf of a user that can currently browse and read the files.
This involves editing the /etc/init.d/S80minidlna initscript and will make things more complex in the future. Essencially replace $RC_USER with the username of an user than can currently browse the folder, such as 'joe' (the user must exists)
MINIDLNA_ARGS="-u $RC_USER " # replace this
MINIDLNA_ARGS="-u joe " # with this
But first: do you have a multimedia group? What is the content of /etc/groups and /etc/passwd?
cat /etc/passwd # don't be afraid, no password will be shown
cat /etc/group
login as: rootroot-192.168.1.109's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;
[root@DNS-323]# cat /etc/passwdroot:x:0:0:root:/root:/bin/shdaemon:x:1:1:daemon:/usr/sbin:/bin/shbin:x:2:2:bin:/bin:/bin/shsys:x:3:3:sys:/dev:/bin/shsync:x:4:100:sync:/bin:/bin/syncat:x:5:8:at Daemon:/home/at:/bin/sh#dbus 6ftp:x:7:7:FTP User:/var/run/vsftpd:/bin/shmail:x:8:8:mail:/var/spool/mail:/bin/sh#cups 9#ushare 10#minidlna 11#fuppes 12#transmission 13#mediatomb 14#mt-daapd 15#forked-daapd 16#automatic 17www-data:x:33:33:www-data:/var/www:/bin/shbackup:x:34:34:backup:/var/backups:/bin/shsshd:x:67:67:SSHD User:/var:/bin/sh#avahi 68#ups 69nobody:x:99:98:nobody:/home:/bin/shSabertooth:x:1000:100:Sabertooth:/home/Sabertooth:/bin/shVibo:x:1001:100:Vivian:/home/Vivian:/bin/shMajorEvent:x:1002:100:MajorEvent:/home/MajorEvent:/bin/shBD-670:x:1003:100:BD-670:/home/BD-670:/bin/shBoss:x:1004:100:Boss:/home/Boss:/bin/shSandman:x:1005:100:Sandman:/home/Sandman:/bin/shdbus:x:6:3:DBUS Daemon:/var/lib/dbus:/bin/falseavahi:x:68:68:avahi daemon:/var/run/avahi-daemon:/bin/falsedaapd:x:16:80:forked-daapd user:/var/lib/daapd:/bin/falsempd:x:23:80:MPD user:/var/lib/mpd:/bin/falseminidlna:x:11:80:minidlna daemon:/var/lib/minidlna:/bin/falsetransmission:x:13:201:Transmission daemon:/var/lib/transmission:/bin/falselighttpd:x:35:81:Lighttpd daemon:/var/lib/lighttpd:/bin/false[root@DNS-323]# cat /etc/grouproot:x:0:daemon:x:1:bin:x:2:sys:x:3:dbusadm:x:4:tty:x:5:disk:x:6:ftp:x:7:at:x:8:backup:x:34:Sabertooth,Bossutmp:x:43:sshd:x:67#avahi 68#multimedia 80#network 81netdev:x:82:#nut 84nobody:x:98:nogroup:x:99:users:x:100:Sabertooth,Vibo,BD-670,Boss,Sandman,MajorEventavahi:x:68:avahimultimedia:x:80:daapd,minidlna,mediatomb,mpd,ushareBT:x:201:transmission,Sabertooth,Bossnetwork:x:81:lighttpd[root@DNS-323]#
Try 'nano', it's more (in the MS-DOS sense) friendly.
I was frustrated by the vanished post (which took a lot of time to write) and by the bad-practices of the opensuse minidlna packager (to be fair, it is not openSUSE fault, but PacMan fault, as I downloaded minidlna from an alternative package feeder).
As you can see I have not giveup on you, it just happens that I'm on holidays and things might took a bit more time to solve.
I understand that you just want a solution, but I hate to give recipes ;-)
login as: rootroot-192.168.1.109's password:
COLUMNS=80;LINES=24;export COLUMNS LINES;
[root@DNS-323]# vim /etc/init.d/S80minidlna#!/bin/sh -e
NAME=minidlnaDESC="MiniDLNA is a DLNA/UPnP-AV server."TYPE=userNEED_ALTF_DIR=1
CONF_MINIDLNA=/etc/$NAME.conf
RC_USER=$NAMERC_USERN=11RC_GROUP=multimediaRC_GROUPN=80RC_DESC="minidlna daemon"
RC_PIDFILE=/var/run/$NAME/$NAME.pidMINIDLNA_ARGS=""
. /etc/init.d/common
check_shares() { if test -r "$CONF_MINIDLNA"; then if grep -q '^#force_rescan=yes' $CONF_MINIDLNA; then RESCAN="-R" fi MDLNA_DIR="$(awk -F= '/^media_dir/{printf "%s;", $2}' $CONF_MINIDLNA)" OIFS="$IFS"; IFS=";" for i in $MDLNA_DIR; do if echo $i | grep -q ^/ ; then mdir=$i else mdir=${i:2} fi
if ! test -d "$mdir"; then echo "$NAME: Share $mdir does not exists." exit 1 #sed -i 's|^media_dir='$i'|# directory not found: &|' $CONF_MINIDLNA else conf_ok="yes" fi done IFS="$OIFS" if test -z "$conf_ok"; then echo "$NAME: can't be started, no shares are configured." exit 1 fi return 0 fi echo "$NAME: Configuration file does not exists." exit 1}
touch /var/log/minidlna.logmkdir -p /var/run/minidlnacheck_user $CONF_MINIDLNA /var/lib/$RC_USER /var/run/minidlna /var/log/minidlna.
log
case "$1" in start) check_shares
start $NAME --chuid $RC_USER:$RC_GROUP -- $RESCAN $MINIDLNA_ARGS
;;
stop) stop $NAME ;;
status) status $NAME ;; reload) reload $NAME 1 ;; restart) restart $NAME ;; *) echo "Usage: $0 {start|stop|status|reload|restart}" exit 1 ;;esac[root@DNS-323]#
Greetings!
Better start new threads, with a clear Subject, and start *summarizing* the issues.
Better start new threads, with a clear Subject, and start *summarizing* the issues.Did you want me to do this with my next reply?