1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pytivo: Session cannot be authenticated; try login again

Discussion in 'TiVo Home Media Features & TiVoToGo' started by petesweeps, Sep 17, 2014.

  1. Sep 17, 2014 #1 of 182
    petesweeps

    petesweeps New Member

    6
    0
    Jan 16, 2012
    Hello All,

    I have setup a new pytivo setup on Windows 8 and everything works except when I push to my Tivo.

    I can pull from Tivo and from my Tivo, I can transfer shows through the interface.

    Whenever I try to push from pyTivo to my Tivo, I get:
    pytivo: Session cannot be authenticated; try login again

    I have checked my account on Tivo, I have even changed my tivo.com password to check and see if that would do anything.

    I have rebooted my Tivo as well.

    My original setup which runs on Windows works, fine. I can push from that instance of pyTivo to my Tivo without any problems.

    If anyone has any ideas, that would be great. I've been searching on this problem and can only find posts about when mind.tivo.com went down.

    This is what the debug file looks like:
    Code:
    DEBUG:pyTivo.video.video:mobileagent: -1 useragent: mozilla/5.0 (windows nt 6.3; wow64; rv:32.0) gecko/20100101 firefox/32.0
    INFO:pyTivo:127.0.0.1 [17/Sep/2014 11:27:20] "GET /TiVoConnect?Command=QueryContainer&Container=NewNas&Format=text/html HTTP/1.1" 200 -
    DEBUG:pyTivo.video.video:mobileagent: -1 useragent: mozilla/5.0 (windows nt 6.3; wow64; rv:32.0) gecko/20100101 firefox/32.0
    INFO:pyTivo:127.0.0.1 [17/Sep/2014 11:27:26] "GET /TiVoConnect?Command=QueryContainer&Container=NewNas/Teenage%20Mutant%20Ninja%20Turtles%20%282012%29&Format=text/html HTTP/1.1" 200 -
    DEBUG:pyTivo.video.video:mobileagent: -1 useragent: mozilla/5.0 (windows nt 6.3; wow64; rv:32.0) gecko/20100101 firefox/32.0
    INFO:pyTivo:127.0.0.1 [17/Sep/2014 11:27:28] "GET /TiVoConnect?Command=QueryContainer&Container=NewNas/Teenage%20Mutant%20Ninja%20Turtles%20%282012%29/Season%2002&Format=text/html HTTP/1.1" 200 -
    INFO:pyTivo.video.video:[17/Sep/2014 11:27:36] Queued "e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv" for Push to Down Stairs
    INFO:pyTivo:127.0.0.1 [17/Sep/2014 11:27:36] "POST /TiVoConnect HTTP/1.1" 200 -
    DEBUG:pyTivo.video.video:mobileagent: -1 useragent: mozilla/5.0 (windows nt 6.3; wow64; rv:32.0) gecko/20100101 firefox/32.0
    INFO:pyTivo:127.0.0.1 [17/Sep/2014 11:27:41] "GET /TiVoConnect?Command=QueryContainer&Container=NewNas/Teenage%20Mutant%20Ninja%20Turtles%20%282012%29/Season%2002&Format=text/html HTTP/1.1" 200 -
    DEBUG:pyTivo.video.transcode:ffmpeg output=ffmpeg version N-66232-g5e3da25 Copyright (c) 2000-2014 the FFmpeg developers
      built on Sep 10 2014 22:10:29 with gcc 4.8.3 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
    modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
    b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
    r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
    able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
     --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
    libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
      libavutil      54.  7.100 / 54.  7.100
      libavcodec     56.  1.100 / 56.  1.100
      libavformat    56.  4.101 / 56.  4.101
      libavdevice    56.  0.100 / 56.  0.100
      libavfilter     5.  1.100 /  5.  1.100
      libswscale      3.  0.100 /  3.  0.100
      libswresample   1.  1.100 /  1.  1.100
      libpostproc    53.  0.100 / 53.  0.100
    Input #0, matroska,webm, from 'e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv':
      Metadata:
        encoder         : libebml v1.3.0 + libmatroska v1.4.1
        creation_time   : 2014-09-13 01:14:56
      Duration: 00:21:45.12, start: 0.000000, bitrate: 2948 kb/s
        Stream #0:0: Video: h264 (High), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 1
    6:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    At least one output file must be specified
    
    DEBUG:pyTivo.video.transcode:aFreq=48000; aCh=6; container=matroska; kbps=2948;mapAudio=[('0:1', ' ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)\r')]; vHeight=720; vCodec=h264; Supported=True; aKbps=384; par=None; millisecs=1305120; vFps=23.98; par2=None; par1=None; mapVideo=0:0; vWidth=1280; dar1=16:9; rawmeta={'creation_time': [u'2014-09-13 01:14:56'], 'encoder': [u'libebml v1.3.0 + libmatroska v1.4.1']}; aCodec=ac3
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, container matroska not compatible, e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:tsn: XXXXXXXXXX
    DEBUG:pyTivo.video.transcode:aspect169: True
    DEBUG:pyTivo.video.transcode:optres: False
    DEBUG:pyTivo.video.transcode:File=e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv vCodec=h264 vWidth=1280 vHeight=720 vFps=23.98 millisecs=1305120 TIVO_HEIGHT=1080 TIVO_WIDTH=1920
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:audio_lang: None
    DEBUG:pyTivo.video.transcode:set first detected audio stream by default: 0:1
    DEBUG:pyTivo.video.transcode:selected audio stream: 0:1
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:TRANSCODE=YES, vCodec h264 not compatible, e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkvDEBUG:pyTivo.video.transcode:CACHE HIT! e:\Shows\Teenage Mutant Ninja Turtles (2012)\Season 02\Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv
    DEBUG:pyTivo.mind:__login{'cams_security_domain': 'tivocom', 'cams_login_config': 'http', 'cams_cb_password': 'XXXXXXXX', 'cams_original_url': '/mind/mind7?type=infoGet', 'cams_cb_username': 'XXXXXXX'}
    DEBUG:pyTivo.mind:pcBodySearch{}
    
    <error><code>badCookie</code><debug>1</debug><text>Session cannot be authenticated; try login again</text></error>gDEBUG:pyTivo.mind:pcBodyStore{'replaceExisting': 'true', 'name': 'pyTivo'}
    
    <error><code>badCookie</code><debug>1</debug><text>Session cannot be authenticated; try login again</text></error>gDEBUG:pyTivo.mind:bodyOfferModify&bodyId=tsn:XXXXXXXXXX{'description': '', 'pcBodyId': None, 'publishDate': '2014-09-17 15:2742', 'partnerId': 'tivo:pt.3187', 'duration': 1305, 'size': 2800634400L, 'title': 'Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F', 'url': 'http://XXXXXXX:9032/NewNas/Teenage%20Mutant%20Ninja%20Turtles%20%282012%29/Season%2002/Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F.mkv?Format=video/mpeg', 'bodyId': 'tsn:XXXXXXXXXX', 'source': 'Teenage.Mutant.Ninja.Turtles.2012.S02E23.HD.TV-W4F', 'state': 'complete', 'encodingType': 'mpeg2ProgramStream', 'tvRating': 'nr'}
    
    <error><code>badCookie</code><debug>1</debug><text>Session cannot be authenticated; try login again</text></error>gERROR:pyTivo.video.video:<error><code>badCookie</code><debug>1</debug><text>Session cannot be authenticated; try login again</text></error>
    
     
  2. Sep 28, 2014 #2 of 182
    gardavis

    gardavis New Member

    140
    0
    Nov 24, 2001
    Deerfield...
    I have the same issue on Windows 8. I have not been able to Push for a while and happened to check the log file today and see the same error message.

    Gary
     
  3. Sep 28, 2014 #3 of 182
    gardavis

    gardavis New Member

    140
    0
    Nov 24, 2001
    Deerfield...
    I did find this related post and tried what it said but I still got the same error trying to push.

    That is, I went to TiVo.com, logged out, logged on, went to the season pass manager and restarted the pytivo service. I had to do the logout/login since otherwise, I was not able to get into the season pass manager (HTTP 404 attempting to log on.).

    Gary
     
  4. Sep 28, 2014 #4 of 182
    gardavis

    gardavis New Member

    140
    0
    Nov 24, 2001
    Deerfield...
    OK, the problem turned out to be that I had changed my password on Tivo.com but not in the pytivo configuration file. Fiddler helped resolve this when I saw the password failure response from https://mind.tivo.com:8080/mind/login.

    I also updated my pytivo to the current version and also had to update the ffmpeg due to use (apparently) of a new "vf" flag.

    Gary
     
  5. Jan 24, 2015 #5 of 182
    davidg716

    davidg716 Member

    37
    0
    Jan 20, 2015
    I have the same problem. Checked everything multiple times but can not authenticate.
     
  6. Aug 11, 2016 #6 of 182
    Lurker1

    Lurker1 Active Member

    400
    88
    Jun 4, 2004
    pyTivo has been working great for years. Suddenly yesterday, I started getting "Session cannot be authenticated; try login again" on every push attempt. It has now been over 24 hours, and still broken.

    I can find no one else complaining about this today, so I take it I am the only one. I made no changes, it just spontaneously stopped working. My credentials log on to tivo.com just fine.

    When others have experienced this error, what was the resolution? Did it just spontaneously start working again? How long did it take? Do we know what might be the cause? I have a backlog of 26 videos to push, and growing.
     
  7. Aug 12, 2016 #7 of 182
    BrandonJF

    BrandonJF New Member

    2
    0
    Aug 29, 2004
    It's happening to me, too. I can't even login to the Tivo site, though, either. The "Sign In" button doesn't work in IE, Firefox, or Chrome for me.
     
  8. Aug 12, 2016 #8 of 182
    BrandonJF

    BrandonJF New Member

    2
    0
    Aug 29, 2004
    Started working again this morning....
     
  9. Aug 12, 2016 #9 of 182
    newsposter

    newsposter Poster of News

    34,931
    31
    Aug 18, 2002
    SE PA
    i havent changed a thing in years but now i'm getting this. very annoying

    edit. someone told me to go to todo list and stop all pending ones. turn off pytivo and reboot tivo.

    this worked.
     
    Last edited: Aug 12, 2016
  10. Aug 12, 2016 #10 of 182
    Lurker1

    Lurker1 Active Member

    400
    88
    Jun 4, 2004
    I did this and I still get authentication error.
     
  11. Aug 13, 2016 #11 of 182
    newsposter

    newsposter Poster of News

    34,931
    31
    Aug 18, 2002
    SE PA
    now pulls work but pushes dont. no idea why
     
  12. Aug 13, 2016 #12 of 182
    das335

    das335 Member

    46
    0
    Feb 8, 2006
    I have been experiencing the same problem for the last few days. Restarting did not help.
     
  13. Aug 13, 2016 #13 of 182
    akalion

    akalion New Member

    5
    0
    Sep 22, 2010
    Same here. Can't push due to following error:

    ERROR:pyTivo.video.video:<error><code>badCookie</code><debug>1</debug><text>Session cannot be authenticated; try login again</text></error>

    Been trying various things the last hour with no success. I can login with credentials just fine on tivo.com. None of my pytivo settings have changed in a very long time.
     
  14. Aug 13, 2016 #14 of 182
    trendtimer

    trendtimer New Member

    13
    0
    May 19, 2015
    I'm also seeing the same error starting this week.
     
  15. Aug 13, 2016 #15 of 182
    trendtimer

    trendtimer New Member

    13
    0
    May 19, 2015
    I believe the badCookie errors are happening after the login attempt.

    I added a debug to output the xml returned by the login to mind.py:

    Code:
     try:
                result = self.__opener.open(r)
                xml = ElementTree.parse(result).find('.')
            except:
                pass
    
            self.__logger.debug('__login\n%s12345' % (ElementTree.tostring(xml)))
    
    With this in place, I'm seeing a different error:
    <error><code>memcacheError</code><debug>14</debug><text>Memcache error while doing login</text></error>12345

    Maybe they need to restart their memcache server :)

    But I'm puzzled because I believe the login is constructing a URL like this:
    Code:
    https://mind.tivo.com:8181/mind/login?cams_security_domain=tivocom&cams_login_config=http&cams_cb_password=mypassword&cams_original_url=%2Fmind%2Fmind7%3Ftype%3DinfoGet&cams_cb_username=myusername
    
    But when I put this in the browser then I actually get a different error:


    <error>
    <code>badArgument</code>
    <text>you muss pass in a query in the URL with a 'type'</text>
    </error>


    I'm not sure why I get the Memcache error when pyTivo tries this, and a badArgument error when I try in the browser.
     
  16. Aug 14, 2016 #16 of 182
    dsteakley

    dsteakley New Member

    1
    0
    Aug 14, 2016
    Same. changed nothing, but now pushes don't work. logging in to tivo.com works fine.
     
  17. Aug 14, 2016 #17 of 182
    Gary-B

    Gary-B Member

    115
    0
    Jun 3, 2009
    Texas
    I had the same problems for the last week. Several calls to Tivo didn't help.
    They suggested I change my password, no help. This morning I tried and changed my email address to another one on my Tivo account. Bingo, started pushing videos to Tivo. Be sure to change the new email in pytivo.
     
  18. Aug 14, 2016 #18 of 182
    trendtimer

    trendtimer New Member

    13
    0
    May 19, 2015
    So you have multiple emails associated with your account? Because my tivo.com account just uses a single email, so I changed the account to use my wife's email.

    I updated my pytivo.conf, but unfortunately this didn't help resolve the issue for me. Still getting the same errors as before.
     
  19. Aug 14, 2016 #19 of 182
    trendtimer

    trendtimer New Member

    13
    0
    May 19, 2015
    Everyone having this problem should make sure to open a support ticket. Include a link to this thread so they understand that the problem isn't affecting one user, and is a problem on their end. This might be the kind of thing that remains unresolved unless we make a lot of noise about it.
     
  20. Aug 14, 2016 #20 of 182
    lpwcomp

    lpwcomp Well-Known Member

    8,732
    117
    May 6, 2002
    John's...
    Unless you're using TD+ to do the push, reporting it to TiVo won't accomplish anything.
     

Share This Page