2010-08-27, 19:39
Oh. Ok! I see what you are talking about. It is a problem with mythicalSetup making extra dirs which go unused. I'll take care of that tonight.
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/mythicalLibrarian-
MOVE DIR:/home/media-server/Videos/TV-Recorded- USING SHOWNAME AS FOLDER:Disabled-
FAILSAFE MODE:Disabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/home/media-server/Videos/TV-Recorded-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Enabled DEBUG MODE:Enabled-
INPUT SHOW NAME:Family Guy- LOCAL SHOW NAME TRANSLATION:- ShowName:Family Guy
DATABASE UPDATED:- TVDB LAST UPDATED:1283810478- CURRENT:9999999-
RESOLVED SERIES ID:75978- RESOVED SHOW NAME:Family Guy-
INPUT EPISODE NAME:No Chris Left Behind- ABSOLOUTE EPISODE NUMBER:161- RESOLVED EPISODE NAME:No Chris Left Behind-
SEASON:S05- EPISODE:E16- SYMLINK MODE:LINK- FILESIZE: 0kB-
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:5695860kB- WORKINGDIR:1 FREE:5695860kB-
[b]MOVEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVEDIR:0- FREE:kB-[/b]
PRIMARYSHOWDIRWRITABLE:1- FREE:5695860kB-ALTERNATESHOWDIRWRITABLE:1- FREE:5695860kB-
PRIMARYMOVIEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVIEDIR:0- FREE:5695860kB-
DATABASE TYPE:schedulesdirect1-
RECSTART:2010-09-05 18:30:00- MOVIE YEAR:- ORIGINAL SERIES DATE:2007-05-06-
PROGRAMID:EP002960010098- CHANNEL ID:1009- CATEGORY:Sitcom- GOFORDOOVER:1-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:296001- MATCHED TVDB SERIES ID:75978-
PLOT: The family enrolls Chris in a snooty boarding school; the chicken returns to pick a fight with Peter.
####################END OF DEBUG LOG#####################
CREATING FOLDER: /home/media-server/Videos/TV-Recorded
COULD NOT CREATE /home/media-server/Videos/TV-Recorded/Family Guy
##########################################################
#############FAILSAFE MODE HAS BEEN ACTIVATED#############
##########################################################
FAILSAFE FLAG WAS SET CHECK PERMISSIONS AND FOLDERS
@@@@@@@@@@@NEW SEARCH INITIATED AT Sun Sep 5 16:18:05 CDT 2010@@@@@@@@@@@@@@
Revision 552 Fri Sep 3 14:46:06 CDT 2010 on Linux
sudo mythicalLibrarian --update #to create the setup dir.
cd ~/.mythicalLibrarian/mythicalSetup
sudo mythicalLibrarian --update
mythicalLibrarian --doMaintenance
checkpermissions () {
TMoveDirWritable=0
if [ "$2" != "" ] && [ "$1" != "" ] && [ $1 -lt $2 ]; then
echo "Testing write permission on $3">$3/arbitraryfile.ext
if [ -f "$3/arbitraryfile.ext" -a -s "$3/arbitraryfile.ext" ]; then
rm -f "$3/arbitraryfile.ext"
test ! -f "$3/arbitraryfile.ext" && TMoveDirWritable=1 || TMoveDirWritable=0
else
TMoveDirWritable=0
echo "CHECK PERMISSIONS ON $MoveDir"
fi
elif [ -z "$2" ] || [ $1 -ge $2 ]; then
TMoveDirWritable=0
echo "UNUSABLE SPACE-CHECK:$3"
fi
return 0
}
checkpermissions () {
TMoveDirWritable=0
###DEBUG Increase logging level
if [ "$2" != "" ]; then
if [ "$1" != "" ]; then
if [ -d "$3" ]; then
if [ $1 -lt $2 ]; then
echo "Testing write permission on $3">$3/arbitraryfile.ext
if [ -f "$3/arbitraryfile.ext" ] ; then
if [ -s "$3/arbitraryfile.ext" ]; then
rm -f "$3/arbitraryfile.ext"
test ! -f "$3/arbitraryfile.ext" && TMoveDirWritable=1 || TMoveDirWritable=0
else
TMoveDirWritable=0
echo "CREATED $3/arbitraryfile.ext BUT COULD NOT WRITE DATA INTO THE FILE"
echo "CREATED $3/arbitraryfile.ext BUT COULD NOT WRITE DATA INTO THE FILE">"$mythicalLibrarian/output.log"
fi
else
echo "$MyUserName TRIED TO WRITE TO $3 --FAILED"
test ! -r "$3" && echo "QUICK FIX: sudo chmod a+r \"$3\""
test ! -w "$3" && echo "QUICK FIX: sudo chmod a+w \"$3\""
echo "QUICK FIX: sudo chown $MyUserName \"$3\""
echo "$MyUserName TRIED TO WRITE TO $3 --FAILED">"$mythicalLibrarian/output.log"
test ! -r "$3" && echo "QUICK FIX: sudo chmod a+r \"$3\"">"$mythicalLibrarian/output.log"
test ! -w "$3" && echo "QUICK FIX: sudo chmod a+w \"$3\"">"$mythicalLibrarian/output.log"
echo "QUICK FIX: sudo chown $MyUserName \"$3\"">"$mythicalLibrarian/output.log"
fi
elif [ -z "$2" ] || [ $1 -ge $2 ]; then
TMoveDirWritable=0
echo "INSUFFICIENT FREE SPACE ON $3"
echo "QUICK FIX: Remove unnecessary files"
echo "INSUFFICIENT FREE SPACE ON $3">"$mythicalLibrarian/output.log"
echo "QUICK FIX: Remove unnecessary files">"$mythicalLibrarian/output.log"
fi
else
echo "FOLDER DOES NOT EXIST: $3"
echo "QUICK FIX: mkdir \"$3\""
echo "FOLDER DOES NOT EXIST: $3">"$mythicalLibrarian/output.log"
echo "QUICK FIX: mkdir \"$3\"">"$mythicalLibrarian/output.log"
fi
else
echo "COULD NOT READ FILESIZE ON $InputPath"
echo "QUICK FIX: chmod -R 666 \"$InputPath\""
echo "COULD NOT READ FILESIZE ON $InputPath">"$mythicalLibrarian/output.log"
echo "QUICK FIX: chmod -R 666 \"$InputPath\"">"$mythicalLibrarian/output.log"
fi
else
echo "COULD NOT READ FREE SPACE on \"$originaldirname\""
echo "QUICK FIX: chmod -R 666 \"$originaldirname\""
echo "COULD NOT READ FREE SPACE on \"$originaldirname\"">"$mythicalLibrarian/output.log"
echo "QUICK FIX: chmod -R 666 \"$originaldirname\"">"$mythicalLibrarian/output.log"
fi
return 0
}
QUICK FIX: chmod -R 666 "/var/lib/mythtv/recordings"
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/.mythicalLibrarian-
MOVE DIR:/home/media-server/Videos/TV-Recorded- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/home/media-server/Videos/TV-Recorded-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Enabled
INPUT SHOW NAME:The National Parks: America's Best Idea- LOCAL SHOW NAME TRANSLATION:- ShowName:The National Parks: America's Best Idea
DATABASE UPDATED:- TVDB LAST UPDATED:1283856183- CURRENT:1283799558-
RESOLVED SERIES ID:116171- RESOVED SHOW NAME:The National Parks: America's Best Idea-
INPUT EPISODE NAME:The Empire of Grandeur (1915-1919)- ABSOLOUTE EPISODE NUMBER:9- RESOLVED EPISODE NAME:The Empire of Grandeur (1915-1919)-
SEASON:S01- EPISODE:E03- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:9273908kB- WORKINGDIR:1 FREE:9273908kB-
MOVEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVEDIR:0- FREE:kB-
PRIMARYSHOWDIRWRITABLE:0- FREE:kB-ALTERNATESHOWDIRWRITABLE:0- FREE:kB-
PRIMARYMOVIEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVIEDIR:0- FREE:9273908kB-
DATABASE TYPE:schedulesdirect1-
RECSTART:2010-09-06 12:50:00- MOVIE YEAR:- ORIGINAL SERIES DATE:2009-09-29-
PROGRAMID:EP011701200003- CHANNEL ID:1007- CATEGORY:Documentary- GOFORDOOVER:1-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:1170120- MATCHED TVDB SERIES ID:116171-
PLOT: The National Park Service is established in 1916; Stephen Mather campaigns to establish the Grand Canyon in Arizona as a national park.
####################END OF DEBUG LOG#####################
CREATING FOLDER: /home/media-server/Videos/TV-Recorded/The National Parks Americas Best Idea
COULD NOT CREATE /home/media-server/Videos/TV-Recorded/The National Parks Americas Best Idea/Season 1/The National Parks Americas Best Idea
##########################################################
#############FAILSAFE MODE HAS BEEN ACTIVATED#############
##########################################################
sudo chmod -R 666 "/var/lib/mythtv/recordings"
mkdir /home/media-server/Videos/TV-Recorded/The National Parks Americas Best Idea
//192.168.1.1/public /home/mythtv/NAS cifs credentials=/home/adam/.smbcredentials,iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
outleradam Wrote:Those error messages are important. I can see that permissions are not set correctly. You need to run the commands given in the program. You should have full access at this point. Did you run the commands with sudo to elevate permissions?I've run this without success.
Code:sudo chmod -R 666 "/var/lib/mythtv/recordings"
outleradam Wrote:per chance do you run as root on your system when creating folders? This would make the user and group of the paths you're using "root" which would make mythtv not able to access them.Nope, I created it using my main user account.
outleradam Wrote:Is /home/media-server a network attached storage drive? If so, then post your /etc/fstab so I can see if the permissions are set correctly for mythtv's use.No, it's a mounted Raid 5 array.
outleradam Wrote:I need to see the entire section of the log from start to finish. starting with "New Search" and ending right before the end of the log or "New Search" You're cropping important information out.That was the entire entry. I was perplexed as to why the "New Search" phrase was missing, but it's your latest SVN from today (559).
outleradam Wrote:1. results of ls -l /var/lib/mythtv/recordings-r-xr-xr-x 1 mythtv mythtv 4808431068 2010-09-06 00:35 1002_20100905233500.mpg
outleradam Wrote:2. results of ls -l /home/media-server/Videos/TV-Recorded/drwxrwxrwx 2 mythtv robot 4096 2010-09-06 14:36 TV-Recorded
outleradam Wrote:3. results of cat /etc/fstab# /etc/fstab: static file system information.
outleradam Wrote:4. the last log entry result of cat ~/home/mythtv/.mythicalLibrarian/output.log
QUICK FIX: chmod -R 666 "/var/lib/mythtv/recordings"
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/.mythicalLibrarian-
MOVE DIR:/home/media-server/Videos/TV-Recorded- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/home/media-server/Videos/TV-Recorded-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Enabled
INPUT SHOW NAME:The National Parks: America's Best Idea- LOCAL SHOW NAME TRANSLATION:- ShowName:The National Parks: America's Best Idea
DATABASE UPDATED:- TVDB LAST UPDATED:1283856183- CURRENT:1283799558-
RESOLVED SERIES ID:116171- RESOVED SHOW NAME:The National Parks: America's Best Idea-
INPUT EPISODE NAME:The Empire of Grandeur (1915-1919)- ABSOLOUTE EPISODE NUMBER:9- RESOLVED EPISODE NAME:The Empire of Grandeur (1915-1919)-
SEASON:S01- EPISODE:E03- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:9273908kB- WORKINGDIR:1 FREE:9273908kB-
MOVEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVEDIR:0- FREE:kB-
PRIMARYSHOWDIRWRITABLE:0- FREE:kB-ALTERNATESHOWDIRWRITABLE:0- FREE:kB-
PRIMARYMOVIEDIRWRITABLE:0- FREE:kB- ALTERNATEMOVIEDIR:0- FREE:9273908kB-
DATABASE TYPE:schedulesdirect1-
RECSTART:2010-09-06 12:50:00- MOVIE YEAR:- ORIGINAL SERIES DATE:2009-09-29-
PROGRAMID:EP011701200003- CHANNEL ID:1007- CATEGORY:Documentary- GOFORDOOVER:1-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:1170120- MATCHED TVDB SERIES ID:116171-
PLOT: The National Park Service is established in 1916; Stephen Mather campaigns to establish the Grand Canyon in Arizona as a national park.
####################END OF DEBUG LOG#####################
CREATING FOLDER: /home/media-server/Videos/TV-Recorded/The National Parks Americas Best Idea
COULD NOT CREATE /home/media-server/Videos/TV-Recorded/The National Parks Americas Best Idea/Season 1/The National Parks Americas Best Idea
##########################################################
#############FAILSAFE MODE HAS BEEN ACTIVATED#############
##########################################################
FAILSAFE FLAG WAS SET CHECK PERMISSIONS AND FOLDERS
PERMISSION ERROR OR DRIVE FULL
ATTEMPTING SYMLINK TO FAILSAFE DIR: /home/mythtv/FailSafe
FAILSAFE MODE COMPLETE: SYMLINK CREATED
FAILSAFE MODE FAILURE CHECK PERMISSIONS AND FREE SPACE IN /home/mythtv/FailSafe
@@@@@@@@@@@NEW SEARCH INITIATED AT Mon Sep 6 14:50:48 EDT 2010@@@@@@@@@@@@@@
Revision 559 Mon Sep 6 12:47:29 EDT 2010 on Linux