[mythtv-commits] Ticket #11782: Fatal Error on encode User Job

MythTV noreply at mythtv.org
Mon Aug 26 01:32:31 UTC 2013


#11782: Fatal Error on encode User Job
-------------------------------------+-------------------------------------
     Reporter:  kebast.shive@…       |      Owner:
         Type:  Bug Report -         |     Status:  new
  General                            |  Milestone:  unknown
     Priority:  minor                |    Version:  Master Head
    Component:  MythTV - General     |   Keywords:  SQL Error: Duplicate
     Severity:  medium               |  entry
Ticket locked:  0                    |
-------------------------------------+-------------------------------------
 I cut commercials from a program with a user job passing these parameters:
 /home/mythtv/Cut-List.sh "%DIR%/%FILE%" "%CHANID%" "%STARTTIMEUTC%"
 to the script with this command:
 $INSTALLPREFIX/mythtranscode --chanid "$2" --starttime "$3" --mpeg2
 --honorcutlist -v all
 This ran without errors, but when I ran the user job for the encode I
 received a
 !!NoTrans: SQL Error: Duplicate entry '2122-2013-02-15
 01:59:00-512-2013-08-26 01:22:29' for key 'chanid' [#1062]!!.
 This user job passes these parameters:
 /home/mythtv/Archive-encode.sh "%DIR%/%FILE%" "%TITLE% - %ORIGINALAIRDATE%
 - %SUBTITLE%" "%TITLE%"
 and this is the script:
 mkdir "/myth/HDD-1/videos/$3"
 # encode using HandBrakeCLI
 nice HandBrakeCLI -i "$1.tmp" -o "/myth/HDD-1/videos/$3/$2.mp4"
 --preset="High Profile" -v2 -q 19 -a 1 -E copy:ac3 -B 640 -6 auto -Y 720
 --x264-preset slower --x264-tune film >/dev/null 2>&1

 {{{
    datetime:  2013-08-25 21:22:29 (EDT)
     errornum:  256
   error type:  User Error
 error string:  !!NoTrans: SQL Error: Duplicate entry '2122-2013-02-15
 01:59:00-512-2013-08-26 01:22:29' for key 'chanid' [#1062]!!
     filename:  /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php
   error line:  79

 ==========================================================================

 Backtrace:

     file:  /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php
     line:  79
    class:
 function:  trigger_error
     type:
     args:  Array
 (
     [0] => SQL Error: Duplicate entry '2122-2013-02-15
 01:59:00-512-2013-08-26 01:22:29' for key 'chanid' [#1062]
     [1] => 256
 )

     file:  /usr/share/mythtv/mythweb/classes/Database.php
     line:  261
    class:  Database_Query_mysql
 function:  execute
     type:  ->
     args:  Array
 (
     [0] => Array
         (
             [0] => 2122
             [1] => 1360893540
             [2] => 512
             [3] =>
             [4] => 1
             [5] => 1
         )

 )

     file:  /usr/share/mythtv/mythweb/modules/tv/detail.php
     line:  158
    class:  Database
 function:  query
     type:  ->
     args:  Array
 (
     [0] => INSERT INTO jobqueue
                        SET chanid       = ?,
                            starttime    = FROM_UNIXTIME(?),
                            inserttime   = NOW(),
                            type         = ?,
                            hostname     = ?,
                            args         = "",
                            status       = ?,
                            statustime   = NOW(),
                            schedruntime = NOW(),
                            comment      = "Queued via MythWeb",
                            flags        = ?
     [1] => 2122
     [2] => 1360893540
     [3] => 512
     [4] =>
     [5] => 1
     [6] => 1
 )

     file:  /usr/share/mythtv/mythweb/modules/tv/handler.php
     line:  82
    class:
 function:  require_once
     type:
     args:  Array
 (
     [0] => /usr/share/mythtv/mythweb/modules/tv/detail.php
 )

     file:  /usr/share/mythtv/mythweb/mythweb.php
     line:  35
    class:
 function:  require_once
     type:
     args:  Array
 (
     [0] => /usr/share/mythtv/mythweb/modules/tv/handler.php
 )


 ==========================================================================

 $_GET: Array
 (
     [job] => 512
     [chanid] => 2122
     [starttime] => 1360893540
     [manualid] => 0
 )

 ==========================================================================

 $_SESSION: Array
 (
     [language] => English
     [date_statusbar] => %a %b %e, %Y, %I:%M %p
     [date_scheduled] => %a %b %e, %Y (%I:%M %p)
     [date_scheduled_popup] => %a %b %e, %Y
     [date_recorded] => %a %b %e, %Y (%I:%M %p)
     [date_search] => %a %b %e, %Y, %I:%M %p
     [date_listing_key] => %a %b %e, %Y, %I:%M %p
     [date_listing_jump] => %a %b %e, %Y
     [date_channel_jump] => %a %b %e, %Y
     [date_job_status] => %a %b %e, %Y, %I:%M %p
     [time_format] => %I:%M %p
     [cache_engine] => Cache_Null
     [stream] => Array
         (
             [include_user_and_password] =>
         )

     [prefer_channum] => 0
     [recorded_pixmaps] => 1
     [guide_favonly] =>
     [timeslot_size] => 300
     [num_time_slots] => 36
     [timeslot_blocks] => 3
     [timeslotbar_skip] => 20
     [max_stars] => 4
     [star_character] => ★
     [show_popup_info] => 1
     [show_channel_icons] => 1
     [sortby_channum] => 1
     [recorded_paging] =>
     [genre_colors] => 1
     [show_video_covers] => 1
     [settings] => Array
         (
             [screens] => Array
                 (
                     [tv] => Array
                         (
                             [upcoming recordings] => Array
                                 (
                                     [title] => on
                                     [channel] => on
                                     [record date] => on
                                     [length] => on
                                 )

                         )

                 )

             [last] => Array
                 (
                     [0] => mythtv
                     [1] => settings
                 )

             [host] =>
         )

     [backend] => Array
         (
             [192.168.66.100] => Array
                 (
                     [proto_version] => Array
                         (
                             [last_check_version] => 77
                             [last_check_time] => 1377479666
                         )

                 )

             [timezone] => Array
                 (
                     [value] => America/New_York
                     [last_check_time] => 1377479666
                 )

         )

     [tv] => Array
         (
             [last] => Array
                 (
                     [0] => detail
                     [1] => 2122
                     [2] => 1360893540
                 )

             [show_advanced_schedule] => 1
         )

     [recorded_sortby] => Array
         (
             [0] => Array
                 (
                     [field] => airdate
                     [reverse] =>
                 )

             [1] => Array
                 (
                     [field] => title
                     [reverse] =>
                 )

         )

     [recording_details] => Array
         (
             [show_Conflict] => 1
             [show_PreviousRecording] => 1
             [show_EarlierShowing] => 1
             [show_CurrentRecording] => 1
             [show_WillRecord] => 1
         )

     [scheduled_recordings] => Array
         (
             [disp_scheduled] => 1
             [disp_duplicates] => 1
             [disp_deactivated] => 1
             [disp_conflicts] => 1
             [disp_recgroup] =>
             [disp_title] =>
         )

     [scheduled_sortby] => Array
         (
             [0] => Array
                 (
                     [field] => airdate
                     [reverse] =>
                 )

             [1] => Array
                 (
                     [field] => title
                     [reverse] =>
                 )

         )

     [search] => Array
         (
             [s] => ^Up All Night$
             [type] => q
             [ctype] => Array
                 (
                     [0] => movie
                     [1] => series
                     [2] => sports
                     [3] => tvshow
                 )

             [categories] => Array ( )
             [stars_gt] => 0
             [stars_lt] => 1
             [starttime] => now
             [endtime] => + 2 weeks
             [as] => Array
                 (
                     [0] => Blood Feud
                 )

             [af] => Array
                 (
                     [0] => Array
                         (
                             [0] => subtitle
                         )

                 )

             [aj] => Array
                 (
                     [0] => AND
                 )

             [hd] =>
             [commfree] =>
             [unwatched] =>
             [scheduled] =>
             [generic] =>
             [distinctTitle] =>
             [airdate_start] =>
             [airdate_end] =>
         )

     [search_sortby] => Array
         (
             [0] => Array
                 (
                     [field] => airdate
                     [reverse] =>
                 )

             [1] => Array
                 (
                     [field] => title
                     [reverse] =>
                 )

         )

     [schedules_sortby] => Array
         (
             [0] => Array
                 (
                     [field] => airdate
                     [reverse] =>
                 )

             [1] => Array
                 (
                     [field] => title
                     [reverse] =>
                 )

         )

     [list_time] => 1375402500
     [recorded_title] => Glee
     [recorded_recgroup] =>
     [weather] => Array
         (
             [active] => Array ( )
             [inactive] => Array
                 (
                     [0] => 18 Hour Forecast
                     [1] => Animated Map
                     [2] => Current Conditions
                     [3] => Severe Weather Alerts
                     [4] => Six Day Forecast
                     [5] => Static Map
                     [6] => Three Day Forecast
                 )

         )

     [] => Array ( )
     [video_sortby] => Array
         (
             [0] => Array
                 (
                     [field] => title
                     [reverse] =>
                 )

         )

     [video] => Array
         (
             [path] => /Revenge
             [browse] => -1
             [VideoAdminPassword] =>
         )

 )

 ==========================================================================

 $_SERVER: Array
 (
     [REDIRECT_STATUS] => 200
     [include_path] => /var/lib/mythtv/videos
     [HTTP_HOST] => localhost
     [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0)
 Gecko/20100101 Firefox/23.0
     [HTTP_ACCEPT] =>
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
     [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
     [HTTP_ACCEPT_ENCODING] => gzip, deflate
     [HTTP_DNT] => 1
     [HTTP_REFERER] => http://localhost/mythweb/tv/detail/2122/1360893540
     [HTTP_COOKIE] => mythweb_id=du7nfh5dhdgsmaheb6g9v37sg6;
 __utma=111872281.1309350406.1374021478.1375620603.1376190011.8;
 __utmz=111872281.1374021478.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
 __jwpusr=5ee48300-71dc-4703-ad5c-9065e61da357;
 SID=75629914d951c0cf633fe5c29b23d384; treemediatombUI=d0%7Copen%3B;
 TYPE=db; lastNodeDb=d1; __utmc=111872281
     [HTTP_CONNECTION] => keep-alive
     [PATH] => /usr/local/bin:/usr/bin:/bin
     [SERVER_SIGNATURE] => <address>Apache/2.2.22 (Ubuntu) Server at
 localhost Port 80</address>

     [SERVER_SOFTWARE] => Apache/2.2.22 (Ubuntu)
     [SERVER_NAME] => localhost
     [SERVER_ADDR] => 127.0.0.1
     [SERVER_PORT] => 80
     [REMOTE_ADDR] => 127.0.0.1
     [DOCUMENT_ROOT] => /var/www
     [SERVER_ADMIN] => webmaster at localhost
     [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php
     [REMOTE_PORT] => 45647
     [REDIRECT_QUERY_STRING] => job=512
     [REDIRECT_URL] => /mythweb/tv/detail/2122/1360893540
     [GATEWAY_INTERFACE] => CGI/1.1
     [SERVER_PROTOCOL] => HTTP/1.1
     [REQUEST_METHOD] => GET
     [QUERY_STRING] => job=512
     [REQUEST_URI] => /tv/detail/2122/1360893540?job=512
     [SCRIPT_NAME] => /mythweb/mythweb.php
     [PATH_INFO] => /tv/detail/2122/1360893540
     [PATH_TRANSLATED] => /var/www/tv/detail/2122/1360893540
     [PHP_SELF] => /mythweb/mythweb.php/tv/detail/2122/1360893540
     [REQUEST_TIME] => 1377480149
     [STATUS] => 200
     [URL] => /mythweb/tv/detail/2122/1360893540
     [HTTP_PORT] => 80
 )

 ==========================================================================

 $constant_list["user"]: Array
 (
     [ERROR] => 512
     [E_ASSERT_ERROR] => 4096
     [FATAL] => 256
     [JOB_ABORTED] => 288
     [JOB_ABORTING] => 9
     [JOB_CANCELLED] => 320
     [JOB_COMMFLAG] => 2
     [JOB_DONE] => 256
     [JOB_ERRORED] => 304
     [JOB_ERRORING] => 8
     [JOB_EXTERNAL] => 4
     [JOB_FINISHED] => 272
     [JOB_LIST_ALL] => 1
     [JOB_LIST_DONE] => 2
     [JOB_LIST_ERROR] => 8
     [JOB_LIST_NOT_DONE] => 4
     [JOB_LIST_RECENT] => 16
     [JOB_LIVE_REC] => 2
     [JOB_METADATA] => 4
     [JOB_NONE] => 0
     [JOB_NO_FLAGS] => 0
     [JOB_PAUSE] => 1
     [JOB_PAUSED] => 6
     [JOB_PENDING] => 2
     [JOB_QUEUED] => 1
     [JOB_RESTART] => 8
     [JOB_RESUME] => 2
     [JOB_RETRY] => 7
     [JOB_RUN] => 0
     [JOB_RUNNING] => 4
     [JOB_STARTING] => 3
     [JOB_STOP] => 4
     [JOB_STOPPING] => 5
     [JOB_SYSTEMJOB] => 255
     [JOB_TRANSCODE] => 1
     [JOB_UNKNOWN] => 0
     [JOB_USERJOB] => 65280
     [JOB_USERJOB1] => 256
     [JOB_USERJOB2] => 512
     [JOB_USERJOB3] => 1024
     [JOB_USERJOB4] => 2048
     [JOB_USE_CUTLIST] => 1
     [PHP_MIN_VERSION] => 5.3
     [WARNING] => 1024
     [WebDBSchemaVer] => 4
     [dupsin_all] => 15
     [dupsin_newepisodes] => 16
     [dupsin_oldrecorded] => 2
     [dupsin_recorded] => 1
     [error_email] =>
     [gb] => 1073741824
     [hostname] => Lightning.com
     [http_host] => localhost
     [kb] => 1024
     [max_stars] => 4
     [mb] => 1048576
     [module] => tv
     [modules_path] => /usr/share/mythtv/mythweb/modules
     [num_time_slots] => 36
     [prefer_channum] => 0
     [rectype_always] => 4
     [rectype_daily] => 2
     [rectype_dontrec] => 8
     [rectype_findone] => 6
     [rectype_once] => 1
     [rectype_override] => 7
     [rectype_template] => 11
     [rectype_weekly] => 5
     [root] => /mythweb/
     [root_auth_url] => http://localhost/mythweb/
     [root_url] => http://localhost/mythweb/
     [searchtype_keyword] => 3
     [searchtype_manual] => 5
     [searchtype_people] => 4
     [searchtype_power] => 1
     [searchtype_title] => 2
     [skin] => default
     [skin_img_url] => http://localhost/mythweb/skins/default/img/
     [skin_url] => http://localhost/mythweb/skins/default/
     [star_character] => &#9733;
     [stream_url] => http://localhost:80//mythweb/
     [tb] => 1099511627776
     [timeslot_blocks] => 3
     [timeslot_size] => 300
     [timeslotbar_skip] => 20
     [tmpl] => default
     [tmpl_dir] => modules/tv/tmpl/default/
 )

 }}}

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11782>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list