Thread: Can't delete files from "watch videos"

Reply to Thread
Results 1 to 7 of 7
  1. Default Can't delete files from "watch videos" #1
    cedric is offline MythTV Friend
    Join Date
    Sep 2010
    Posts
    27
    MythTV Gallery
    0
    Hi All,

    I have a directory with .mpg files. In mythfrontend->media library->watch videos, I can watch the video's. In video manager, I press "d" to delete the file. Then I press OK to realy delete the file. The dialog dissapears. and the file also disapears from the list. When I press escape to exit the video manager, and enter to go back into the video manager, the file is back in the list. I can play the video again. When I press d and OK again, I get the error message "Failed to delete file"

    This is strange, I run mythfrontend as the user cedric, and as that user, I am allowed to delete the file from the terminal:
    Code:
    [cedric@tv cedric gezien]$ ls -l test.mpg 
    -rwxrwxrwx 1 cedric mythtv 3086651392 Mar 24  2010 test.mpg
    $ rm test.mpg 
    [cedric@tv cedric gezien]$
    After I delete the file from the terminal, It's still listed in the file manager. Even when I reload the list by pressing escape and enter.
    After about a minute I press escape twice, and then enter twice. Now the file is gone.

    How can I debug this further? Running mythfrontend from a terminal shows no errors when I try to delete the file.

    Best regards,
    Cedric

    Reply With Quote  

  2. Default #2
    tjachem is offline MythTV Friend in Training
    Join Date
    Dec 2009
    Location
    Jacksonville, Florida
    Posts
    7
    IRC Nick
    tjachem
    Distribution
    Mythbuntu
    MythTV Version
    .22
    MythTV Gallery
    0
    Quote Originally Posted by cedric View Post
    Hi All,

    I have a directory with .mpg files. In mythfrontend->media library->watch videos, I can watch the video's. In video manager, I press "d" to delete the file. Then I press OK to realy delete the file. The dialog dissapears. and the file also disapears from the list. When I press escape to exit the video manager, and enter to go back into the video manager, the file is back in the list. I can play the video again. When I press d and OK again, I get the error message "Failed to delete file"

    This is strange, I run mythfrontend as the user cedric, and as that user, I am allowed to delete the file from the terminal:
    Code:
    [cedric@tv cedric gezien]$ ls -l test.mpg 
    -rwxrwxrwx 1 cedric mythtv 3086651392 Mar 24  2010 test.mpg
    $ rm test.mpg 
    [cedric@tv cedric gezien]$
    After I delete the file from the terminal, It's still listed in the file manager. Even when I reload the list by pressing escape and enter.
    After about a minute I press escape twice, and then enter twice. Now the file is gone.

    How can I debug this further? Running mythfrontend from a terminal shows no errors when I try to delete the file.

    Best regards,
    Cedric
    Check the ownership of the directory containing your video files in addition to the files themselves. That might be what is going on.


    Reply With Quote  

  3. Default #3
    cedric is offline MythTV Friend
    Join Date
    Sep 2010
    Posts
    27
    MythTV Gallery
    0
    thank you for your fast response.

    I did as root a chmod -R 777 *, and a chown -R cedric *.

    have the following permissions:
    drwxrwxrwx 2 cedric users 4096 Oct 25 19:25 cedric gezien
    -rwxrwxrwx 1 cedric mythtv 4824694720 Sep 23 22:25 1009_20100923202000-tornado warning.mpg
    Full list:
    Code:
    [cedric@tv old]$ ls -l
    total 462691748
    -rwxrwxrwx 1 cedric mythtv 1156706304 Mar 18  2010 1001_20100318123000-how it's made.mpg
    -rwxrwxrwx 1 cedric mythtv  962844672 Mar 18  2010 1001_20100318130000-how it's made.mpg
    -rwxrwxrwx 1 cedric mythtv 1155905536 Mar 19  2010 1001_20100319123000-how it's made.mpg
    -rwxrwxrwx 1 cedric mythtv  962242560 Mar 19  2010 1001_20100319130000-how it's made.mpg
    -rwxrwxrwx 1 cedric mythtv  963104768 Mar 19  2010 1001_20100319223500-destroyed in seconds.mpg
    -rwxrwxrwx 1 cedric mythtv 2121656320 Mar 20  2010 1001_20100320084500- wapen **snip**
    -rwxrwxrwx 1 cedric mythtv 1156575232 May  5 00:15 1007_20100504234500-the nanny.mpg
    -rwxrwxrwx 1 cedric mythtv 4824694720 Sep 23 22:25 1009_20100923202000-tornado warning.mpg
    drwxrwxrwx 2 cedric users        4096 Oct 25 19:25 cedric gezien
    drwxrwxrwx 2 cedric users        4096 Oct 23 10:14 inge gezien
    [cedric@tv old]$ cd cedric\ gezien/
    [cedric@tv cedric gezien]$ ls -l 
    total 126969056
    -rwxrwxrwx 1 cedric mythtv 3086082048 Mar 25  2010 1000_20100325165000.mpg
    -rwxrwxrwx 1 cedric mythtv 3090294784 Mar 31  2010 1000_20100331202000.mpg
    **snip**
    -rwxrwxrwx 1 cedric mythtv 2893926400 Apr 11  2010 1012_20100411152500-mc leods.mpg
    -rwxrwxrwx 1 cedric mythtv 2894106624 Apr 25  2010 1012_20100425152000-mc leods.mpg
    [cedric@tv cedric gezien]$
    Is there any place I can see an error message coming from mythtv?

    Best regards,
    Cedric


    Reply With Quote  

  4. Default #4
    cedric is offline MythTV Friend
    Join Date
    Sep 2010
    Posts
    27
    MythTV Gallery
    0
    I run mythfrontend as cedric, and mythbackend as mythtv. Could this be the problem? I can't see the output from mythbackend at the moment, as it's busy recording, and it does not keep a logfile (witch is not such a smart move from me ).

    Best regards,
    Cedric


    Reply With Quote  

  5. Default #5
    cedric is offline MythTV Friend
    Join Date
    Sep 2010
    Posts
    27
    MythTV Gallery
    0
    I have just started mythbackend from the terminal as mythtv. I see no errors about deleting files. For reference, here's what I see:
    Code:
    [mythtv@tv cedric]$ mythbackend 
    2010-10-26 05:49:28.122 mythbackend version: tags/release-0-23 [0.23] www.mythtv.org
    2010-10-26 05:49:28.123 Using runtime prefix = /usr
    2010-10-26 05:49:28.123 Using configuration directory = /home/mythtv/.mythtv
    2010-10-26 05:49:28.125 Empty LocalHostName.
    2010-10-26 05:49:28.125 Using localhost value of tv
    2010-10-26 05:49:28.156 New DB connection, total: 1
    2010-10-26 05:49:28.167 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.167 Closing DB connection named 'DBManager0'
    2010-10-26 05:49:28.170 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.189 Current MythTV Schema Version (DBSchemaVer): 1254
    2010-10-26 05:49:28.198 MythBackend: Starting up as the master server.
    2010-10-26 05:49:28.214 New DB connection, total: 2
    2010-10-26 05:49:28.218 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.234 New DB connection, total: 3
    2010-10-26 05:49:28.235 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.413 New DB scheduler connection
    2010-10-26 05:49:28.415 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.523 Enabling Upnpmedia rebuild thread.
    2010-10-26 05:49:29.741 Main::Registering HttpStatus Extension
    2010-10-26 05:49:29.741 Enabled verbose msgs:  important general
    2010-10-26 05:49:29.751 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
    2010-10-26 05:49:31.189 MainServer::ANN Playback
    2010-10-26 05:49:31.189 adding: tv as a client (events: 0)
    2010-10-26 05:49:31.192 MainServer::ANN Monitor
    2010-10-26 05:49:31.192 adding: tv as a client (events: 1)
    2010-10-26 05:49:31.543 Reschedule requested for id -1.
    2010-10-26 05:49:32.070 MainServer::ANN Monitor
    2010-10-26 05:49:32.070 adding: tv as a client (events: 0)
    2010-10-26 05:49:32.072 MainServer::ANN Monitor
    2010-10-26 05:49:32.072 adding: tv as a client (events: 1)
    2010-10-26 05:49:33.562 Scheduled 38 items in 1.8 = 0.02 match + 1.78 place
    2010-10-26 05:49:33.580 AUTO-Startup assumed
    2010-10-26 05:49:33.646 Reschedule requested for id 0.
    2010-10-26 05:49:34.357 TVRec(3): ASK_RECORDING 3 25 0 0
    2010-10-26 05:49:34.970 Scheduled 38 items in 1.3 = 0.00 match + 1.25 place
    2010-10-26 05:49:38.555 New DB connection, total: 4
    2010-10-26 05:49:38.565 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:38.685 UPnpMedia: BuildMediaMap VIDEO scan starting in :/storage-1T/tv/old:
    2010-10-26 05:49:39.304 UPnpMedia: BuildMediaMap Done. Found 388 objects
    2010-10-26 05:50:01.255 Error preparing query: DELETE FROM recordedseek WHERE chanid = :CHANID AND starttime = :START;
    2010-10-26 05:50:01.255 Driver error was [2/145]:
    QMYSQL3: Unable to prepare statement
    Database error was:
    Table './mythconverg/recordedseek' is marked as crashed and should be repaired
    
    **snip**
    
    2010-10-26 05:53:35.213 DB Error (delta position map insert):
    Query was:
    INSERT INTO recordedseek (chanid, starttime, mark, type, offset)  VALUES ( :CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )
    Bindings were:
    :CHANID=1012, :MARK=5064, :OFFSET=130297578, :STARTTIME=2010-10-26T05:50:00,
    :TYPE=9
    Driver error was [2/1064]:
    QMYSQL: Unable to execute query
    Database error was:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )' at line 1
    From the console, the user mythtv is also able to delete the file:
    Code:
    $ cd cedric\ gezien/
    [mythtv@tv cedric gezien]$ ls -l 1000_20100325165000.mpg 
    -rwxrwxrwx 1 cedric mythtv 3086082048 Mar 25  2010 1000_20100325165000.mpg
    [mythtv@tv cedric gezien]$ rm 1000_20100325165000.mpg 
    [mythtv@tv cedric gezien]$ ls -l 1000_20100325165000.mpg 
    ls: cannot access 1000_20100325165000.mpg: No such file or directory
    [mythtv@tv cedric gezien]$
    I have the following versions:
    Code:
    $ uname -a
    Linux tv 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 07:17:20 UTC 2010 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux
    [mythtv@tv cedric gezien]$ mythbackend --version
    Please attach all output as a file in bug reports.
    MythTV Version   : 0.23
    MythTV Branch    : tags/release-0-23
    Network Protocol : 56
    Library API      : 0.23.20100429-1
    QT Version       : 4.6.2
    Options compiled in:
     linux release using_oss using_alsa using_jack using_backend using_dvb using_firewire using_fribidi using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
    Last edited by cedric; 10-26-2010 at 05:07 AM. Reason: typo


    Reply With Quote  

  6. Default #6
    tjachem is offline MythTV Friend in Training
    Join Date
    Dec 2009
    Location
    Jacksonville, Florida
    Posts
    7
    IRC Nick
    tjachem
    Distribution
    Mythbuntu
    MythTV Version
    .22
    MythTV Gallery
    0
    Quote Originally Posted by cedric View Post
    I have just started mythbackend from the terminal as mythtv. I see no errors about deleting files. For reference, here's what I see:
    Code:
    [mythtv@tv cedric]$ mythbackend 
    2010-10-26 05:49:28.122 mythbackend version: tags/release-0-23 [0.23] www.mythtv.org
    2010-10-26 05:49:28.123 Using runtime prefix = /usr
    2010-10-26 05:49:28.123 Using configuration directory = /home/mythtv/.mythtv
    2010-10-26 05:49:28.125 Empty LocalHostName.
    2010-10-26 05:49:28.125 Using localhost value of tv
    2010-10-26 05:49:28.156 New DB connection, total: 1
    2010-10-26 05:49:28.167 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.167 Closing DB connection named 'DBManager0'
    2010-10-26 05:49:28.170 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.189 Current MythTV Schema Version (DBSchemaVer): 1254
    2010-10-26 05:49:28.198 MythBackend: Starting up as the master server.
    2010-10-26 05:49:28.214 New DB connection, total: 2
    2010-10-26 05:49:28.218 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.234 New DB connection, total: 3
    2010-10-26 05:49:28.235 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.413 New DB scheduler connection
    2010-10-26 05:49:28.415 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:28.523 Enabling Upnpmedia rebuild thread.
    2010-10-26 05:49:29.741 Main::Registering HttpStatus Extension
    2010-10-26 05:49:29.741 Enabled verbose msgs:  important general
    2010-10-26 05:49:29.751 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
    2010-10-26 05:49:31.189 MainServer::ANN Playback
    2010-10-26 05:49:31.189 adding: tv as a client (events: 0)
    2010-10-26 05:49:31.192 MainServer::ANN Monitor
    2010-10-26 05:49:31.192 adding: tv as a client (events: 1)
    2010-10-26 05:49:31.543 Reschedule requested for id -1.
    2010-10-26 05:49:32.070 MainServer::ANN Monitor
    2010-10-26 05:49:32.070 adding: tv as a client (events: 0)
    2010-10-26 05:49:32.072 MainServer::ANN Monitor
    2010-10-26 05:49:32.072 adding: tv as a client (events: 1)
    2010-10-26 05:49:33.562 Scheduled 38 items in 1.8 = 0.02 match + 1.78 place
    2010-10-26 05:49:33.580 AUTO-Startup assumed
    2010-10-26 05:49:33.646 Reschedule requested for id 0.
    2010-10-26 05:49:34.357 TVRec(3): ASK_RECORDING 3 25 0 0
    2010-10-26 05:49:34.970 Scheduled 38 items in 1.3 = 0.00 match + 1.25 place
    2010-10-26 05:49:38.555 New DB connection, total: 4
    2010-10-26 05:49:38.565 Connected to database 'mythconverg' at host: localhost
    2010-10-26 05:49:38.685 UPnpMedia: BuildMediaMap VIDEO scan starting in :/storage-1T/tv/old:
    2010-10-26 05:49:39.304 UPnpMedia: BuildMediaMap Done. Found 388 objects
    2010-10-26 05:50:01.255 Error preparing query: DELETE FROM recordedseek WHERE chanid = :CHANID AND starttime = :START;
    2010-10-26 05:50:01.255 Driver error was [2/145]:
    QMYSQL3: Unable to prepare statement
    Database error was:
    Table './mythconverg/recordedseek' is marked as crashed and should be repaired
    
    **snip**
    
    2010-10-26 05:53:35.213 DB Error (delta position map insert):
    Query was:
    INSERT INTO recordedseek (chanid, starttime, mark, type, offset)  VALUES ( :CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )
    Bindings were:
    :CHANID=1012, :MARK=5064, :OFFSET=130297578, :STARTTIME=2010-10-26T05:50:00,
    :TYPE=9
    Driver error was [2/1064]:
    QMYSQL: Unable to execute query
    Database error was:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':CHANID , :STARTTIME , :MARK , :TYPE , :OFFSET )' at line 1
    From the console, the user mythtv is also able to delete the file:
    Code:
    $ cd cedric\ gezien/
    [mythtv@tv cedric gezien]$ ls -l 1000_20100325165000.mpg 
    -rwxrwxrwx 1 cedric mythtv 3086082048 Mar 25  2010 1000_20100325165000.mpg
    [mythtv@tv cedric gezien]$ rm 1000_20100325165000.mpg 
    [mythtv@tv cedric gezien]$ ls -l 1000_20100325165000.mpg 
    ls: cannot access 1000_20100325165000.mpg: No such file or directory
    [mythtv@tv cedric gezien]$
    I have the following versions:
    Code:
    $ uname -a
    Linux tv 2.6.35-ARCH #1 SMP PREEMPT Wed Sep 29 07:17:20 UTC 2010 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux
    [mythtv@tv cedric gezien]$ mythbackend --version
    Please attach all output as a file in bug reports.
    MythTV Version   : 0.23
    MythTV Branch    : tags/release-0-23
    Network Protocol : 56
    Library API      : 0.23.20100429-1
    QT Version       : 4.6.2
    Options compiled in:
     linux release using_oss using_alsa using_jack using_backend using_dvb using_firewire using_fribidi using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg
    There are log files in /var/log/mythtv that you might check after trying to delete the files. Does running the frontend as the mythtv user make a difference?


    Reply With Quote  

  7. Default #7
    cedric is offline MythTV Friend
    Join Date
    Sep 2010
    Posts
    27
    MythTV Gallery
    0
    I'm sorry, I don't have the directory /var/log/mythtv:
    Code:
    [cedric@tv log]$ pwd
    /var/log
    [cedric@tv log]$ ls -lh
    total 374M
    -rw-r----- 1 root log   346K Oct 30 07:08 acpid.log
    -rw-r----- 1 root log   792K Oct 30 07:32 auth.log
    -rw------- 1 root root  3.8K Oct 24 13:05 btmp
    drwxr-xr-x 2 root root  4.0K Sep 23  2009 ConsoleKit
    -rw-r----- 1 root log   1.8M Oct 30 07:08 daemon.log
    -rw-r--r-- 1 root root   28K Oct 30 07:08 dmesg.log
    -rw-r----- 1 root log    36M Oct 30 07:08 errors.log
    -rw-r----- 1 root log   127M Oct 30 07:32 everything.log
    -rw------- 1 root root   24K Oct 23 15:13 faillog
    -rw-r----- 1 root log   124M Oct 30 07:09 kernel.log
    -rw-r--r-- 1 root root  287K Oct 30 07:32 lastlog
    -rw-r----- 1 root log    77M Oct 30 07:32 messages.log
    -rw-r--r-- 1 root root  9.2K May 11 18:39 mythbackend.log
    drwxr-xr-x 2 root root  4.0K Sep 19 00:58 old
    -rw-r--r-- 1 root root  214K Oct 23 14:42 pacman.log
    -rw-r--r-- 1 root root  1.7K Oct 30 07:09 pm-powersave.log
    -rw-r--r-- 1 root root  5.9K May 10 13:11 pm-suspend.log
    -rw-r----- 1 root log   128K Oct 30 07:08 syslog.log
    -rw-r----- 1 root log   716K Oct 30 07:08 user.log
    drwxr-xr-x 2 root root  4.0K Oct 23 12:52 wicd
    -rw-r--r-- 1 root root     0 Sep 26  2009 wifi-radar.log
    -rw-r--r-- 1 root root  7.2M Oct 30 07:32 wtmp
    -rw-r--r-- 1 root users  17K Oct 30 07:08 Xorg.0.log
    -rw-r--r-- 1 root users  52K Oct 29 22:21 Xorg.0.log.old
    [cedric@tv log]$
    Who tries to delete the file? Is this the frontend or the backend?
    /Storage/1T/tv is the directory where mythbackend stores it's recorings.
    Moving the directory with the video files to /Storage-1T/tv-old does not make a difference.

    Best regards,
    Cedric


    Reply With Quote  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 1
    Last Post: 12-25-2009, 10:23 PM
  2. "Videos Ansehen" Daten ausblenden
    By Katz in forum Probleme bei der Installation
    Replies: 0
    Last Post: 12-16-2008, 06:59 PM
  3. Replies: 11
    Last Post: 01-22-2008, 07:56 PM
  4. Replies: 6
    Last Post: 12-18-2006, 10:08 PM
  5. "Watch Videos" takes too long to respond
    By cultcclassic in forum General
    Replies: 3
    Last Post: 10-14-2006, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts