Changes between Initial Version and Version 1 of Ticket #11782


Ignore:
Timestamp:
Aug 26, 2013, 2:30:43 AM (11 years ago)
Author:
Raymond Wagner
Comment:

It sounds like you clicked the link to queue the user job twice. The second time failed, because the job queue schema is configured to only allow one instance of a job type per recording in the database.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11782

    • Property Status changed from new to infoneeded_new
    • Property Component changed from MythTV - General to Plugin - MythWeb
  • Ticket #11782 – Description

    initial v1  
    1111# encode using HandBrakeCLI
    1212nice 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
    13 
    14 {{{
    15    datetime:  2013-08-25 21:22:29 (EDT)
    16     errornum:  256
    17   error type:  User Error
    18 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]!!
    19     filename:  /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php
    20   error line:  79
    21 
    22 ==========================================================================
    23 
    24 Backtrace:
    25 
    26     file:  /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php
    27     line:  79
    28    class: 
    29 function:  trigger_error
    30     type: 
    31     args:  Array
    32 (
    33     [0] => SQL Error: Duplicate entry '2122-2013-02-15 01:59:00-512-2013-08-26 01:22:29' for key 'chanid' [#1062]
    34     [1] => 256
    35 )
    36 
    37     file:  /usr/share/mythtv/mythweb/classes/Database.php
    38     line:  261
    39    class:  Database_Query_mysql
    40 function:  execute
    41     type:  ->
    42     args:  Array
    43 (
    44     [0] => Array
    45         (
    46             [0] => 2122
    47             [1] => 1360893540
    48             [2] => 512
    49             [3] =>
    50             [4] => 1
    51             [5] => 1
    52         )
    53 
    54 )
    55 
    56     file:  /usr/share/mythtv/mythweb/modules/tv/detail.php
    57     line:  158
    58    class:  Database
    59 function:  query
    60     type:  ->
    61     args:  Array
    62 (
    63     [0] => INSERT INTO jobqueue
    64                        SET chanid       = ?,
    65                            starttime    = FROM_UNIXTIME(?),
    66                            inserttime   = NOW(),
    67                            type         = ?,
    68                            hostname     = ?,
    69                            args         = "",
    70                            status       = ?,
    71                            statustime   = NOW(),
    72                            schedruntime = NOW(),
    73                            comment      = "Queued via MythWeb",
    74                            flags        = ?
    75     [1] => 2122
    76     [2] => 1360893540
    77     [3] => 512
    78     [4] =>
    79     [5] => 1
    80     [6] => 1
    81 )
    82 
    83     file:  /usr/share/mythtv/mythweb/modules/tv/handler.php
    84     line:  82
    85    class: 
    86 function:  require_once
    87     type: 
    88     args:  Array
    89 (
    90     [0] => /usr/share/mythtv/mythweb/modules/tv/detail.php
    91 )
    92 
    93     file:  /usr/share/mythtv/mythweb/mythweb.php
    94     line:  35
    95    class: 
    96 function:  require_once
    97     type: 
    98     args:  Array
    99 (
    100     [0] => /usr/share/mythtv/mythweb/modules/tv/handler.php
    101 )
    102 
    103 
    104 ==========================================================================
    105 
    106 $_GET: Array
    107 (
    108     [job] => 512
    109     [chanid] => 2122
    110     [starttime] => 1360893540
    111     [manualid] => 0
    112 )
    113 
    114 ==========================================================================
    115 
    116 $_SESSION: Array
    117 (
    118     [language] => English
    119     [date_statusbar] => %a %b %e, %Y, %I:%M %p
    120     [date_scheduled] => %a %b %e, %Y (%I:%M %p)
    121     [date_scheduled_popup] => %a %b %e, %Y
    122     [date_recorded] => %a %b %e, %Y (%I:%M %p)
    123     [date_search] => %a %b %e, %Y, %I:%M %p
    124     [date_listing_key] => %a %b %e, %Y, %I:%M %p
    125     [date_listing_jump] => %a %b %e, %Y
    126     [date_channel_jump] => %a %b %e, %Y
    127     [date_job_status] => %a %b %e, %Y, %I:%M %p
    128     [time_format] => %I:%M %p
    129     [cache_engine] => Cache_Null
    130     [stream] => Array
    131         (
    132             [include_user_and_password] =>
    133         )
    134 
    135     [prefer_channum] => 0
    136     [recorded_pixmaps] => 1
    137     [guide_favonly] =>
    138     [timeslot_size] => 300
    139     [num_time_slots] => 36
    140     [timeslot_blocks] => 3
    141     [timeslotbar_skip] => 20
    142     [max_stars] => 4
    143     [star_character] => ★
    144     [show_popup_info] => 1
    145     [show_channel_icons] => 1
    146     [sortby_channum] => 1
    147     [recorded_paging] =>
    148     [genre_colors] => 1
    149     [show_video_covers] => 1
    150     [settings] => Array
    151         (
    152             [screens] => Array
    153                 (
    154                     [tv] => Array
    155                         (
    156                             [upcoming recordings] => Array
    157                                 (
    158                                     [title] => on
    159                                     [channel] => on
    160                                     [record date] => on
    161                                     [length] => on
    162                                 )
    163 
    164                         )
    165 
    166                 )
    167 
    168             [last] => Array
    169                 (
    170                     [0] => mythtv
    171                     [1] => settings
    172                 )
    173 
    174             [host] =>
    175         )
    176 
    177     [backend] => Array
    178         (
    179             [192.168.66.100] => Array
    180                 (
    181                     [proto_version] => Array
    182                         (
    183                             [last_check_version] => 77
    184                             [last_check_time] => 1377479666
    185                         )
    186 
    187                 )
    188 
    189             [timezone] => Array
    190                 (
    191                     [value] => America/New_York
    192                     [last_check_time] => 1377479666
    193                 )
    194 
    195         )
    196 
    197     [tv] => Array
    198         (
    199             [last] => Array
    200                 (
    201                     [0] => detail
    202                     [1] => 2122
    203                     [2] => 1360893540
    204                 )
    205 
    206             [show_advanced_schedule] => 1
    207         )
    208 
    209     [recorded_sortby] => Array
    210         (
    211             [0] => Array
    212                 (
    213                     [field] => airdate
    214                     [reverse] =>
    215                 )
    216 
    217             [1] => Array
    218                 (
    219                     [field] => title
    220                     [reverse] =>
    221                 )
    222 
    223         )
    224 
    225     [recording_details] => Array
    226         (
    227             [show_Conflict] => 1
    228             [show_PreviousRecording] => 1
    229             [show_EarlierShowing] => 1
    230             [show_CurrentRecording] => 1
    231             [show_WillRecord] => 1
    232         )
    233 
    234     [scheduled_recordings] => Array
    235         (
    236             [disp_scheduled] => 1
    237             [disp_duplicates] => 1
    238             [disp_deactivated] => 1
    239             [disp_conflicts] => 1
    240             [disp_recgroup] =>
    241             [disp_title] =>
    242         )
    243 
    244     [scheduled_sortby] => Array
    245         (
    246             [0] => Array
    247                 (
    248                     [field] => airdate
    249                     [reverse] =>
    250                 )
    251 
    252             [1] => Array
    253                 (
    254                     [field] => title
    255                     [reverse] =>
    256                 )
    257 
    258         )
    259 
    260     [search] => Array
    261         (
    262             [s] => ^Up All Night$
    263             [type] => q
    264             [ctype] => Array
    265                 (
    266                     [0] => movie
    267                     [1] => series
    268                     [2] => sports
    269                     [3] => tvshow
    270                 )
    271 
    272             [categories] => Array ( )
    273             [stars_gt] => 0
    274             [stars_lt] => 1
    275             [starttime] => now
    276             [endtime] => + 2 weeks
    277             [as] => Array
    278                 (
    279                     [0] => Blood Feud
    280                 )
    281 
    282             [af] => Array
    283                 (
    284                     [0] => Array
    285                         (
    286                             [0] => subtitle
    287                         )
    288 
    289                 )
    290 
    291             [aj] => Array
    292                 (
    293                     [0] => AND
    294                 )
    295 
    296             [hd] =>
    297             [commfree] =>
    298             [unwatched] =>
    299             [scheduled] =>
    300             [generic] =>
    301             [distinctTitle] =>
    302             [airdate_start] =>
    303             [airdate_end] =>
    304         )
    305 
    306     [search_sortby] => Array
    307         (
    308             [0] => Array
    309                 (
    310                     [field] => airdate
    311                     [reverse] =>
    312                 )
    313 
    314             [1] => Array
    315                 (
    316                     [field] => title
    317                     [reverse] =>
    318                 )
    319 
    320         )
    321 
    322     [schedules_sortby] => Array
    323         (
    324             [0] => Array
    325                 (
    326                     [field] => airdate
    327                     [reverse] =>
    328                 )
    329 
    330             [1] => Array
    331                 (
    332                     [field] => title
    333                     [reverse] =>
    334                 )
    335 
    336         )
    337 
    338     [list_time] => 1375402500
    339     [recorded_title] => Glee
    340     [recorded_recgroup] =>
    341     [weather] => Array
    342         (
    343             [active] => Array ( )
    344             [inactive] => Array
    345                 (
    346                     [0] => 18 Hour Forecast
    347                     [1] => Animated Map
    348                     [2] => Current Conditions
    349                     [3] => Severe Weather Alerts
    350                     [4] => Six Day Forecast
    351                     [5] => Static Map
    352                     [6] => Three Day Forecast
    353                 )
    354 
    355         )
    356 
    357     [] => Array ( )
    358     [video_sortby] => Array
    359         (
    360             [0] => Array
    361                 (
    362                     [field] => title
    363                     [reverse] =>
    364                 )
    365 
    366         )
    367 
    368     [video] => Array
    369         (
    370             [path] => /Revenge
    371             [browse] => -1
    372             [VideoAdminPassword] =>
    373         )
    374 
    375 )
    376 
    377 ==========================================================================
    378 
    379 $_SERVER: Array
    380 (
    381     [REDIRECT_STATUS] => 200
    382     [include_path] => /var/lib/mythtv/videos
    383     [HTTP_HOST] => localhost
    384     [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:23.0) Gecko/20100101 Firefox/23.0
    385     [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    386     [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    387     [HTTP_ACCEPT_ENCODING] => gzip, deflate
    388     [HTTP_DNT] => 1
    389     [HTTP_REFERER] => http://localhost/mythweb/tv/detail/2122/1360893540
    390     [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
    391     [HTTP_CONNECTION] => keep-alive
    392     [PATH] => /usr/local/bin:/usr/bin:/bin
    393     [SERVER_SIGNATURE] => <address>Apache/2.2.22 (Ubuntu) Server at localhost Port 80</address>
    394 
    395     [SERVER_SOFTWARE] => Apache/2.2.22 (Ubuntu)
    396     [SERVER_NAME] => localhost
    397     [SERVER_ADDR] => 127.0.0.1
    398     [SERVER_PORT] => 80
    399     [REMOTE_ADDR] => 127.0.0.1
    400     [DOCUMENT_ROOT] => /var/www
    401     [SERVER_ADMIN] => webmaster@localhost
    402     [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php
    403     [REMOTE_PORT] => 45647
    404     [REDIRECT_QUERY_STRING] => job=512
    405     [REDIRECT_URL] => /mythweb/tv/detail/2122/1360893540
    406     [GATEWAY_INTERFACE] => CGI/1.1
    407     [SERVER_PROTOCOL] => HTTP/1.1
    408     [REQUEST_METHOD] => GET
    409     [QUERY_STRING] => job=512
    410     [REQUEST_URI] => /tv/detail/2122/1360893540?job=512
    411     [SCRIPT_NAME] => /mythweb/mythweb.php
    412     [PATH_INFO] => /tv/detail/2122/1360893540
    413     [PATH_TRANSLATED] => /var/www/tv/detail/2122/1360893540
    414     [PHP_SELF] => /mythweb/mythweb.php/tv/detail/2122/1360893540
    415     [REQUEST_TIME] => 1377480149
    416     [STATUS] => 200
    417     [URL] => /mythweb/tv/detail/2122/1360893540
    418     [HTTP_PORT] => 80
    419 )
    420 
    421 ==========================================================================
    422 
    423 $constant_list["user"]: Array
    424 (
    425     [ERROR] => 512
    426     [E_ASSERT_ERROR] => 4096
    427     [FATAL] => 256
    428     [JOB_ABORTED] => 288
    429     [JOB_ABORTING] => 9
    430     [JOB_CANCELLED] => 320
    431     [JOB_COMMFLAG] => 2
    432     [JOB_DONE] => 256
    433     [JOB_ERRORED] => 304
    434     [JOB_ERRORING] => 8
    435     [JOB_EXTERNAL] => 4
    436     [JOB_FINISHED] => 272
    437     [JOB_LIST_ALL] => 1
    438     [JOB_LIST_DONE] => 2
    439     [JOB_LIST_ERROR] => 8
    440     [JOB_LIST_NOT_DONE] => 4
    441     [JOB_LIST_RECENT] => 16
    442     [JOB_LIVE_REC] => 2
    443     [JOB_METADATA] => 4
    444     [JOB_NONE] => 0
    445     [JOB_NO_FLAGS] => 0
    446     [JOB_PAUSE] => 1
    447     [JOB_PAUSED] => 6
    448     [JOB_PENDING] => 2
    449     [JOB_QUEUED] => 1
    450     [JOB_RESTART] => 8
    451     [JOB_RESUME] => 2
    452     [JOB_RETRY] => 7
    453     [JOB_RUN] => 0
    454     [JOB_RUNNING] => 4
    455     [JOB_STARTING] => 3
    456     [JOB_STOP] => 4
    457     [JOB_STOPPING] => 5
    458     [JOB_SYSTEMJOB] => 255
    459     [JOB_TRANSCODE] => 1
    460     [JOB_UNKNOWN] => 0
    461     [JOB_USERJOB] => 65280
    462     [JOB_USERJOB1] => 256
    463     [JOB_USERJOB2] => 512
    464     [JOB_USERJOB3] => 1024
    465     [JOB_USERJOB4] => 2048
    466     [JOB_USE_CUTLIST] => 1
    467     [PHP_MIN_VERSION] => 5.3
    468     [WARNING] => 1024
    469     [WebDBSchemaVer] => 4
    470     [dupsin_all] => 15
    471     [dupsin_newepisodes] => 16
    472     [dupsin_oldrecorded] => 2
    473     [dupsin_recorded] => 1
    474     [error_email] =>
    475     [gb] => 1073741824
    476     [hostname] => Lightning.com
    477     [http_host] => localhost
    478     [kb] => 1024
    479     [max_stars] => 4
    480     [mb] => 1048576
    481     [module] => tv
    482     [modules_path] => /usr/share/mythtv/mythweb/modules
    483     [num_time_slots] => 36
    484     [prefer_channum] => 0
    485     [rectype_always] => 4
    486     [rectype_daily] => 2
    487     [rectype_dontrec] => 8
    488     [rectype_findone] => 6
    489     [rectype_once] => 1
    490     [rectype_override] => 7
    491     [rectype_template] => 11
    492     [rectype_weekly] => 5
    493     [root] => /mythweb/
    494     [root_auth_url] => http://localhost/mythweb/
    495     [root_url] => http://localhost/mythweb/
    496     [searchtype_keyword] => 3
    497     [searchtype_manual] => 5
    498     [searchtype_people] => 4
    499     [searchtype_power] => 1
    500     [searchtype_title] => 2
    501     [skin] => default
    502     [skin_img_url] => http://localhost/mythweb/skins/default/img/
    503     [skin_url] => http://localhost/mythweb/skins/default/
    504     [star_character] => &#9733;
    505     [stream_url] => http://localhost:80//mythweb/
    506     [tb] => 1099511627776
    507     [timeslot_blocks] => 3
    508     [timeslot_size] => 300
    509     [timeslotbar_skip] => 20
    510     [tmpl] => default
    511     [tmpl_dir] => modules/tv/tmpl/default/
    512 )
    513 
    514 }}}