SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2017, 06:23 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
FAILED mounting ISO image

Some, but not all of my iso ripped DVDs are not being picked up when I Scan Imported Media. Looking at the log file, I am getting the message "FAILED mounting ISO image". Here is a snippet from the log:
Sun 9/10 17:09:21.443 [LibraryImporter@5246ca7d] testFile=Disc 01.iso
Sun 9/10 17:09:21.443 [LibraryImporter@5246ca7d] Executing process: [sudo, -n, mount, /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso, /tmp/formatmount, -o, loop,ro]
Sun 9/10 17:09:21.446 [LibraryImporter@5246ca7d] Started process object: java.lang.UNIXProcess@75cd214d
Sun 9/10 17:09:21.462 [ErrorStreamConsumer@3c37f902] STDERR:java.lang.UNIXProcess@75cd214d: mount: wrong fs type, bad option, bad superblock on /dev/loop2,
Sun 9/10 17:09:21.463 [ErrorStreamConsumer@3c37f902] STDERR:java.lang.UNIXProcess@75cd214d: missing codepage or helper program, or other error
Sun 9/10 17:09:21.463 [ErrorStreamConsumer@3c37f902] STDERR:java.lang.UNIXProcess@75cd214d:
Sun 9/10 17:09:21.463 [ErrorStreamConsumer@3c37f902] STDERR:java.lang.UNIXProcess@75cd214d: In some cases useful info is found in syslog - try
Sun 9/10 17:09:21.463 [ErrorStreamConsumer@3c37f902] STDERR:java.lang.UNIXProcess@75cd214d: dmesg | tail or so.
Sun 9/10 17:09:21.471 [LibraryImporter@5246ca7d] FAILED mounting ISO image /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso to /tmp/formatmount
Sun 9/10 17:09:21.471 [LibraryImporter@5246ca7d] Executing process: [sudo, -n, mount, /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso, /tmp/formatmount, -o, loop,ro]
Sun 9/10 17:09:21.472 [LibraryImporter@5246ca7d] Started process object: java.lang.UNIXProcess@1819efb4
Sun 9/10 17:09:21.486 [ErrorStreamConsumer@bbb2f5c] STDERR:java.lang.UNIXProcess@1819efb4: mount: wrong fs type, bad option, bad superblock on /dev/loop2,
Sun 9/10 17:09:21.487 [ErrorStreamConsumer@bbb2f5c] STDERR:java.lang.UNIXProcess@1819efb4: missing codepage or helper program, or other error
Sun 9/10 17:09:21.487 [ErrorStreamConsumer@bbb2f5c] STDERR:java.lang.UNIXProcess@1819efb4:
Sun 9/10 17:09:21.487 [ErrorStreamConsumer@bbb2f5c] STDERR:java.lang.UNIXProcess@1819efb4: In some cases useful info is found in syslog - try
Sun 9/10 17:09:21.487 [ErrorStreamConsumer@bbb2f5c] STDERR:java.lang.UNIXProcess@1819efb4: dmesg | tail or so.
Sun 9/10 17:09:21.495 [LibraryImporter@5246ca7d] FAILED mounting ISO image /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso to /tmp/formatmount
Sun 9/10 17:09:21.496 [LibraryImporter@5246ca7d] Executing process: [sudo, -n, mount, /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso, /tmp/formatmount, -o, loop,ro]
Sun 9/10 17:09:21.497 [LibraryImporter@5246ca7d] Started process object: java.lang.UNIXProcess@6abff21e
Sun 9/10 17:09:21.510 [ErrorStreamConsumer@78c0b0d1] STDERR:java.lang.UNIXProcess@6abff21e: mount: wrong fs type, bad option, bad superblock on /dev/loop2,
Sun 9/10 17:09:21.511 [ErrorStreamConsumer@78c0b0d1] STDERR:java.lang.UNIXProcess@6abff21e: missing codepage or helper program, or other error
Sun 9/10 17:09:21.511 [ErrorStreamConsumer@78c0b0d1] STDERR:java.lang.UNIXProcess@6abff21e:
Sun 9/10 17:09:21.511 [ErrorStreamConsumer@78c0b0d1] STDERR:java.lang.UNIXProcess@6abff21e: In some cases useful info is found in syslog - try
Sun 9/10 17:09:21.511 [ErrorStreamConsumer@78c0b0d1] STDERR:java.lang.UNIXProcess@6abff21e: dmesg | tail or so.
Sun 9/10 17:09:21.520 [LibraryImporter@5246ca7d] FAILED mounting ISO image /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso to /tmp/formatmount
Sun 9/10 17:09:21.521 [LibraryImporter@5246ca7d] Added:MediaFile[id=16416282 A[16416285,16416283,"Disc 01",0@0910.09:51,0,] mask= host=SageTV encodedBy= format=null /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso, Seg0[Sun 9/10 9:51:32.999-Sun 9/10 9:51:33.000]] num=2911
Sun 9/10 17:09:21.521 [LibraryImporter@5246ca7d] New Library File MediaFile[id=16416282 A[16416285,16416283,"Disc 01",0@0910.09:51,0,] mask= host=SageTV encodedBy= format=null /var/media/videos/Call the Midwife/Season 6 (2017)/Disc 01.iso, Seg0[Sun 9/10 9:51:32.999-Sun 9/10 9:51:33.000]]

The iso file mounts properly in Windows 10, and I can see the VIDEO_TS subdirectory with all of the vob files, etc. Any suggestions?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #2  
Old 09-11-2017, 05:50 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
The wrong fs type is key here. Basically the mount command is using a default files system for isos (maybe iso9660 or something like that). In googling, it seems that some dvds might require udf. I think that the mounting logic might need to try the default, as it does not, and if that fails, then try -t udf OR -t auto. I'd open a bug, bug, when someone works on this, they might need to get a dvd.iso in order to test it out (or have you accept Sage.jar updates to test).
Reply With Quote
  #3  
Old 09-14-2017, 03:52 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Thanks for the info, Sean. I did compare the file systems with PowerISO for iso's that imported successfully and iso's that did not import successfully, there is no difference according to PowerISO.

Running a few tests gives me additional interesting results. If I rename a file that did not import successfully, then run "Scan Imported Media" in Sage, rename the file back, and run "Scan Imported Media" in Sage again, the file imports properly. Which tells me that the problem may not lie in the iso file at all.

When I look at the Sage log, it appears that the way that Sage determines whether a given iso imported properly is by mounting it multiple times. If it fails due to an "already mounted" message, Sage adds the media file to it's database. Kinda backward logic, if I am correct in how it is working. And if I am correct, I'm wondering if the logic is getting tripped up occasionally and not importing some files properly.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls

Last edited by KeithAbbott; 09-16-2017 at 06:14 PM.
Reply With Quote
  #4  
Old 09-17-2017, 01:05 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Just thought I would document my workaround here, in case anyone else runs into a similar problem. It appears to me that this is primarily a problem when many new ISOs are being imported, some of the imports are failing and I have not been able to isolate the reason why.

What I did to get past it is I generated an XML file of all imported DVD files from the web interface, and compared that list to the ISO files contained in the videos directory. The compare allowed me to determine which ISO files had not been imported properly. I then renamed each of those files, ran the "Scan Imported Media" function, renamed the files back to the original name, and ran the "Scan Imported Media" function again.

Sage then showed the missing DVDs in the Videos section, alongside all of the rest of my DVDs.
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #5  
Old 10-07-2017, 11:23 PM
jgs14 jgs14 is offline
Sage User
 
Join Date: Dec 2007
Posts: 23
Possible fix

That error can be caused if your loop device isn't setup properly.

Try:

1. modprobe loop (as root)
2. Check to see that the loop module loaded (lsmod | grep loop)
2. make sure /dev/loop0 through /dev/loop9 actually exist

If the /dev/loop* devices don't exist, create them with mknod: (as root)

# mknod /dev/loop0 b 7 0
# mknod /dev/loop1 b 7 1
...
# mknod /dev/loop9 b 7 9

Regards,

Joe
Reply With Quote
  #6  
Old 11-29-2017, 04:10 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Interesting, my /dev/loop8 and /dev/loop9 were both missing. I used the mknod command and created both nodes, I'll have to check and see if the Imported Media scan included all .iso files this time.

I'm using unRAID, I wonder why all ten nodes aren't pre-defined in unRAID?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls

Last edited by KeithAbbott; 11-29-2017 at 04:26 PM.
Reply With Quote
  #7  
Old 11-29-2017, 04:29 PM
KeithAbbott KeithAbbott is online now
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
Looks like the mknod commands to create /dev/loop8 and /dev/loop9 did not persist after a reboot. Anyone know what steps I should follow to get /dev/loop8 and /dev/loop9 to persist after a reboot?
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7)
Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner
Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient
Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls
Reply With Quote
  #8  
Old 12-04-2017, 06:37 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by KeithAbbott View Post
Looks like the mknod commands to create /dev/loop8 and /dev/loop9 did not persist after a reboot. Anyone know what steps I should follow to get /dev/loop8 and /dev/loop9 to persist after a reboot?
Sounds like something that could easily be added to the sagetv unRAID startup scripts.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to load image file! wayner Gemstone for v9 0 04-10-2017 10:43 AM
Mounting network drives osx-addict SageTV Media Extender 16 04-07-2012 07:09 PM
Automatic Metadata Failed (Code 10100) IMDB: Failed to parse providerDataUrl: mkanet Batch Metadata Tools 2 10-12-2010 03:22 PM
Mounting question xj-boonie SageTV HD Theater - Media Player 8 05-06-2009 08:14 PM
DVD ripping/ISO mounting/unmounting evilpenguin SageTV Customizations 3 07-31-2004 10:14 PM


All times are GMT -6. The time now is 12:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.