Files not listed, problem with permissions

Help
2013-05-27
2014-05-19
  • Hi there!

    I'm running Mediatomb 0.12.1 on Ubuntu 12.04.2. My media is stored on an ext4 filesystem, so Unix permissions apply.

    I noticed, quite a lot of my video and my audio files are missing when accessed via DLNA. Upon investigation, I found out that the permissions might be a problem, as the log file says

    2013-05-27 21:52:52   ERROR: Exception caught: Failed to stat /home/masin/Videos/Sandmann/NICHTLUSTIG Folge 1.mp4 , Permission denied
    2013-05-27 21:52:56   ERROR: Exception caught: Failed to stat /home/masin/Videos/NICHTLUSTIG Folge 1.mp4 , Permission denied
    2013-05-27 21:52:59   ERROR: Exception caught: Failed to stat /home/masin/Videos/2013-05-27 Sandmann - Wiesenspektakel - Schneckenreiten.mp4 , Permission denied
    2013-05-27 21:53:00   ERROR: Exception caught: Failed to stat /home/masin/Videos/Sandmann/2013-05-27 Sandmann - Wiesenspektakel - Schneckenreiten.mp4 , Permission denied

    or

    2013-05-27 21:03:09   ERROR: Failed to open /home/masin/Musik/roa1_soundtrack/09 - A Hospital Place.mp3 - Permission denied
    2013-05-27 21:03:09   ERROR: Failed to open /home/masin/Musik/roa1_soundtrack/12 - Victory.mp3 - Permission denied

    I already applied the following commands

    ~$ find /home/masin/Musik/ -type d -exec chmod 755 '{}' \;
    ~$ find /home/masin/Musik/ -type f -exec chmod 644 '{}' \;
    ~$ find /home/masin/Videos/ -type d -exec chmod 755 '{}' \;
    ~$ find /home/masin/Videos/ -type f -exec chmod 644 '{}' \;
    ~$ sudo addgroup mediatomb masin

    (masin being my account)

    Without success.

    The permissions in my Videos/ folder look like:

    [quote
    ~$ ll Videos/ -R
    Videos/:
    insgesamt 275484
    drwxr-xr-x   8 masin masin      4096 Mai 27 21:53 ./
    drwx---- 125 masin masin     12288 Mai 27 20:33 ../
    drwxr-xr-x   2 masin masin      4096 Mai 20 00:00 DSA-Musik/
    drwxr-xr-x   2 masin masin      4096 Mai  7 22:36 Game of Thrones/
    drwxr-xr-x   2 masin masin      4096 Mai 19 23:38 Hysterical Literature/
    drwxr-xr-x   2 masin masin      4096 Mai 27 11:13 Krieg und Frieden/
    -rw-r-r-   1 masin masin 282048415 Mai 20 11:53 NICHTLUSTIG Folge 1.mp4
    drwxr-xr-x   2 masin masin      4096 Mai 27 21:53 Sandmann/
    drwxr-xr-x   2 masin masin      4096 Feb 25 10:54 Webcam/

    Videos/DSA-Musik:
    insgesamt 60124
    drwxr-xr-x 2 masin masin    4096 Mai 20 00:00 ./
    drwxr-xr-x 8 masin masin    4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin 2371082 Mai 19 23:58 DSA Schicksalsklinge OST - 01 Dark World.mp4.aac
    -rw-r-r- 1 masin masin 7511016 Mai 19 23:58 DSA Schicksalsklinge OST - 02 Blade of Destiny.mp4.aac
    -rw-r-r- 1 masin masin 3943238 Mai 19 23:58 DSA Schicksalsklinge OST - 03 A New Life is Born.mp4.aac
    -rw-r-r- 1 masin masin 3421936 Mai 19 23:58 DSA Schicksalsklinge OST - 04 Summary.mp4.aac
    -rw-r-r- 1 masin masin 4226172 Mai 19 23:58 DSA Schicksalsklinge OST - 05 Thorwal.mp4.aac
    -rw-r-r- 1 masin masin 4183286 Mai 19 23:58 DSA Schicksalsklinge OST - 06 Temple of the Dark World.mp4.aac
    -rw-r-r- 1 masin masin 2749845 Mai 19 23:58 DSA Schicksalsklinge OST - 10 The Healing Man.mp4.aac
    -rw-r-r- 1 masin masin 3233259 Mai 19 23:58 DSA Schicksalsklinge OST - 11 Hero's Camp.mp4.aac
    -rw-r-r- 1 masin masin 4511273 Mai 19 23:58 DSA Schicksalsklinge OST - 14 Dungeon Theme.mp4.aac
    -rw-r-r- 1 masin masin 1594559 Mai 19 23:58 DSA Sternenschweif OST - 02 Elsurion.mp4.aac
    -rw-r-r- 1 masin masin 1691548 Mai 19 23:58 DSA Sternenschweif OST - 03 Adept.mp4.aac
    -rw-r-r- 1 masin masin 2686709 Mai 19 23:58 DSA Sternenschweif OST - 04 Automap.mp4.aac
    -rw-r-r- 1 masin masin 3407656 Mai 19 23:58 DSA Sternenschweif OST - 12 Kvirasim.mp4.aac
    -rw-r-r- 1 masin masin 4925001 Mai 19 23:58 DSA Sternenschweif OST - 18 Travel.mp4.aac
    -rw-r-r- 1 masin masin 1401580 Mai 19 23:58 DSA Sternenschweif OST - 21 Knights.mp4.aac
    -rw-r-r- 1 masin masin 3868409 Mai 19 23:58 DSA Sternenschweif OST - 30 Laden.mp4.aac
    -rw-r-r- 1 masin masin 2338349 Mai 19 23:58 DSA Sternenschweif OST - 34 Tiefhusen.mp4.aac
    -rw-r-r- 1 masin masin 1008663 Mai 19 23:58 DSA Sternenschweif OST - 41 Niederlage.mp4.aac
    -rw-r-r- 1 masin masin 2451952 Mai 19 23:58 DSA Sternenschweif OST - Lowangen.mp4.aac

    Videos/Game of Thrones:
    insgesamt 10566084
    drwxr-xr-x 2 masin masin      4096 Mai  7 22:36 ./
    drwxr-xr-x 8 masin masin      4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin 684432614 Mai  4 20:46 Game Of Thrones s01e01.mkv
    -rw-r-r- 1 masin masin 608406066 Mai  4 20:46 Game Of Thrones s01e02.mkv
    -rw-r-r- 1 masin masin 575025777 Mai  4 20:47 Game Of Thrones s01e03.mkv
    -rw-r-r- 1 masin masin 552321580 Mai  4 20:48 Game Of Thrones s01e04.mkv
    -rw-r-r- 1 masin masin 550302774 Mai  4 20:48 Game Of Thrones s01e05.mkv
    -rw-r-r- 1 masin masin 497734505 Mai  4 20:49 Game Of Thrones s01e06.mkv
    -rw-r-r- 1 masin masin 571628854 Mai  4 20:49 Game Of Thrones s01e07.mkv
    -rw-r-r- 1 masin masin 584008566 Mai  4 20:50 Game Of Thrones s01e08.mkv
    -rw-r-r- 1 masin masin 579300984 Mai  4 20:50 Game Of Thrones s01e09.mkv
    -rw-r-r- 1 masin masin 480607145 Mai  4 23:21 Game Of Thrones s01e10.mkv
    -rw-r-r- 1 masin masin 412473460 Mai  4 23:21 Game Of Thrones s02e01.mkv
    -rw-r-r- 1 masin masin 416468633 Mai  4 23:22 Game Of Thrones s02e02.mkv
    -rw-r-r- 1 masin masin 387946504 Mai  4 23:22 Game Of Thrones s02e03.mkv
    -rw-r-r- 1 masin masin 405371400 Mai  4 23:22 Game Of Thrones s02e04.mkv
    -rw-r-r- 1 masin masin 479912234 Mai  4 23:23 Game Of Thrones s02e05.mkv
    -rw-r-r- 1 masin masin 482271055 Mai  4 23:23 Game Of Thrones s02e06.mkv
    -rw-r-r- 1 masin masin 431359508 Mai  4 23:24 Game Of Thrones s02e07.mkv
    -rw-r-r- 1 masin masin 452076580 Mai  4 23:24 Game Of Thrones s02e08.mkv
    -rw-r-r- 1 masin masin 436255107 Mai  4 23:25 Game Of Thrones s02e09.mkv
    -rw-r-r- 1 masin masin 677823791 Mai  7 23:14 Game Of Thrones s02e10.m4v
    -rw-r-r- 1 masin masin 553820267 Mai  7 22:01 Game Of Thrones s02e10.mkv

    Videos/Hysterical Literature:
    insgesamt 631220
    drwxr-xr-x 2 masin masin      4096 Mai 19 23:38 ./
    drwxr-xr-x 8 masin masin      4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin 147208365 Mai 19 23:23 Hysterical Literature Session Five Teresa (Official).mp4
    -rw-r-r- 1 masin masin  43582336 Mai 19 23:03 Hysterical Literature Session Four Stormy (Official).mp4
    -rw-r-r- 1 masin masin  64791684 Mai 19 23:29 Hysterical Literature Session One Stoya (Official).mp4
    -rw-r-r- 1 masin masin  88544872 Mai 19 23:20 Hysterical Literature Session Seven Amanda (Official).mp4
    -rw-r-r- 1 masin masin 108976719 Mai 19 23:21 Hysterical Literature Session Six Solé (Official).mp4
    -rw-r-r- 1 masin masin  63080493 Mai 19 23:17 Hysterical Literature Session Three Danielle (Official).mp4
    -rw-r-r- 1 masin masin 130139521 Mai 19 23:23 Hysterical Literature Session Two Alicia (Official).mp4

    Videos/Krieg und Frieden:
    insgesamt 5040584
    drwxr-xr-x 2 masin masin       4096 Mai 27 11:13 ./
    drwxr-xr-x 8 masin masin       4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin 1390597800 Mai 27 11:12 Krieg und Frieden Teil 1.m4v
    -rw-r-r- 1 masin masin 1197554228 Mai 27 11:38 Krieg und Frieden Teil 2.m4v
    -rw-r-r- 1 masin masin 1156932497 Mai 27 10:14 Krieg und Frieden Teil 3.m4v
    -rw-r-r- 1 masin masin 1416441018 Mai 27 10:40 Krieg und Frieden Teil 4.m4v

    Videos/Sandmann:
    insgesamt 484144
    drwxr-xr-x 2 masin masin      4096 Mai 27 21:53 ./
    drwxr-xr-x 8 masin masin      4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin  44264149 Mai  4 20:34 2013-05-04 Sandmann - Plumps.bak.mp4
    -rw-r-r- 1 masin masin  37348301 Mai  7 19:36 2013-05-04 Sandmann - Plumps.m4v
    -rw-r-r- 1 masin masin  45641513 Mai  5 19:42 2013-05-05 Sandmann - Lucy und der Mondzauber.mp4
    -rw-r-r- 1 masin masin  41392349 Mai  7 19:34 2013-05-07 Sandmann.mp4
    -rw-r-r- 1 masin masin  41810563 Mai 10 20:09 2013-05-10 Sandmann - Kalli.mp4
    -rw-r-r- 1 masin masin  50349712 Mai 11 20:41 2013-05-11 Sandmann.mp4
    -rw-r-r- 1 masin masin  40756529 Mai 13 20:46 2013-05-13 Sandmann - Wiesenspektakel.mp4
    -rw-r-r- 1 masin masin  40177982 Mai 17 21:06 2013-05-17 Sandmann - Kalli singt über Wissensdurst.mp4
    -rw-r-r- 1 masin masin 114485537 Mai 20 22:07 2013-05-20 Sandmann Sondersendung.mp4
    -rw-r-r- 1 masin masin  39496097 Mai 27 20:06 2013-05-27 Sandmann - Wiesenspektakel - Schneckenreiten.mp4

    Videos/Webcam:
    insgesamt 12
    drwxr-xr-x 2 masin masin 4096 Feb 25 10:54 ./
    drwxr-xr-x 8 masin masin 4096 Mai 27 21:53 ../
    -rw-r-r- 1 masin masin 3712 Feb 25 10:54 2013-02-25-105403.webm

    The best part about that is: Mediatomb finds about half the files and offers them for playback, although they have the exact same permissions as other files Mediatomb complains about having permission denied. The files where the log file says 'Failed to open' are listed but can't be played back. The files where the exception has been caught aren't listed at all.

    What can I do?

    Best regards,
    Masin

     
  • Solved the problem by myself. After restarting the mediatomb service, I found in the log file that mediatomb couldn't open the respective folders (permission denied). My home folder had been mysteriously set to 700. After setting to 770 (and having mediatomb in the group masin), I had finally full access again. Strange thing: A month ago it worked flawlessly. On the other hand, I had reinstalled Ubuntu inbetween :-).

     
  • RegisO
    RegisO
    2014-05-19

    Indeed, it is strange. I also had this problem of permissions. why execute permissions are needed, while read-only rights seem sufficient ?