pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Issue with web admin part of pyTivo

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Tue Sep 09, 2008 9:25 pm    Post subject: Issue with web admin part of pyTivo Reply with quote

When I run the go to port 9032 I get in to the first screen, and can navigate to everything by "pyTivo Web Configuration"

when I click that I get a blank screen and pyTivo.py outputs

Quote:

Exception happened during processing of request from ('192.168.15.183', 62455)
Traceback (most recent call last):
File "/opt/lib/python2.5/SocketServer.py", line 464, in process_request_thread
self.finish_request(request, client_address)
File "/opt/lib/python2.5/SocketServer.py", line 254, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/opt/lib/python2.5/SocketServer.py", line 522, in __init__
self.handle()
File "/opt/lib/python2.5/BaseHTTPServer.py", line 316, in handle
self.handle_one_request()
File "/opt/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
method()
File "/share/MD0_DATA/.qpkg/Optware/krkeegan/httpserver.py", line 85, in do_GET
method(self, query)
File "/share/MD0_DATA/.qpkg/Optware/krkeegan/plugins/admin/admin.py", line 72, in Admin
t.server_data = dict(config.items('Server', raw=True))
File "/opt/lib/python2.5/ConfigParser.py", line 544, in items
raise NoSectionError(section)
NoSectionError: No section: 'Server'


my conf file look like this

Quote:

# Web administration. enable this section to use the web configuration feature.
[Admin]
type = admin
tivo_mak = xxxx
togo_path = /share/MD0_DATA/movies/tivo/incoming

[Server]
port = 9032

ffmpeg = /opt/bin/ffmpeg

video_br = 12Mi
width = 1280
height = 720

aspect169 = true

[TivoFiles]
# Type can be 'video', 'music', or 'photo'
type = video

path = /share/MD0_DATA/movies/tivo


any help would be appreciated


Last edited by bobbakh on Sun Dec 07, 2008 2:05 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
windracer



Joined: 04 Jan 2008
Posts: 157
Location: St. Pete, FL

PostPosted: Thu Sep 11, 2008 8:21 am    Post subject: Reply with quote

Strange ... the error says it can't find your [Server] section but obviously it exists, according to your post.

Maybe try removing the extra blank lines? Question

_________________
pyTiVo on Ubuntu 8.10
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Fri Sep 12, 2008 6:29 pm    Post subject: Reply with quote

just edited the default config, and same issue

here it is

Quote:
[Admin]
type=admin
tivo_mak=xxxx
togo_path=/share/MD0_DATA/movies/tivo/incoming

[Server]
port=9032

# Full path to ffmpeg including filename
# For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
# For linux: ffmpeg=/usr/bin/ffmpeg
#ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
ffmpeg=/opt/bin/ffmpeg

# This will make a large debug.txt file in your base directory. It only
# debugs transcode.py right now.
#debug=false

# Max video bitrate, default 30000k
# sets ffmpeg -maxrate setting to minimize bitrate peak playback issues.
# mpegs with video bitrate above this setting will also be transcoded.
#MAX_VIDEO_BR=17408k

# Audio bit-rate, defaults to 192K for S2, 384K for S3/HD
#audio_br=320K

# Video bit-rate, defaults to 4096K for S2, 8192K for S3/HD
#video_br=12Mi

# Beacon broadcast address(es)
# The default is 255.255.255.255, but on some multihomed machines you
# may need to specify the subnet broadcast address(es) of your Tivo
# boxes. You can also specify "listen" to listen for direct connection
# attempts on port 2190, for use with the "Manually add a server..."
# function. (And if you set beacon to listen _only_, it turns off
# broadcasts.)
#beacon=192.168.1.255 listen

# Output Pixel Width:
# Width, defaults to 544 for S2, 1280 for S3/HD
# Height, defaults to 480 for S2, 720 for S3/HD
# Valid widths: [S3/HD = 1920, 1440, 1280], [S2/S3/HD = 720, 704, 544, 480, 352]
# Valid heights: [S3/HD = 1080, 720], [S2/S3/HD = 480]
#width=1280
#height=720
#ffmpeg_tmpl=%(video_codec)s %(video_fps)s %(video_br)s %(max_video_br)s %(buff_size)s %(aspect_ratio)s -comment pyTivo.py %(audio_br)s %(audio_fr)s %(audio_ch)s %(audio_codec)s %(ffmpeg_prams)s %(format)s

# Per tivo options
# section named _tivo_TSN with the tsn in all caps
#[_tivo_00000DEADBEEF]

# If you want to use 16:9 or 4:3 on this tivo
aspect169=true

#width=1440
#height=720
#audio_br=320K
#video_br=12Mi
#ffmpeg_tmpl=%(video_codec)s %(video_fps)s %(video_br)s %(max_video_br)s %(buff_size)s %(aspect_ratio)s -comment pyTivo.py %(audio_br)s %(audio_fr)s %(audio_ch)s %(audio_codec)s %(ffmpeg_prams)s %(format)s

[Humperdink]
# Type can be 'video', 'music', or 'photo'
type=video

# Path is the full path to your files (No trailing slash needed)
# For windows: path=c:\videos
# For linux: path=/media
path=/share/MD0_DATA/movies/tivo

# Make all subfolders in to top level shares
#auto_subshares=True

# You can have more than one share
#[MyTelevision]
#type=video
#path=d:\television



same problem

Thanks,

Bob[/quote]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
windracer



Joined: 04 Jan 2008
Posts: 157
Location: St. Pete, FL

PostPosted: Fri Sep 12, 2008 6:32 pm    Post subject: Reply with quote

Maybe it's a permissions thing?

Oh, and be warned ... when editing the conf file through the admin module (once you get it working), any manual stuff you've put in (like comments) gets removed. I just edit mine by hand ...

_________________
pyTiVo on Ubuntu 8.10
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Fri Sep 12, 2008 6:54 pm    Post subject: Reply with quote

I'll give the permissions a jiggle and see what happens.

Thanks,

Bob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Fri Sep 19, 2008 2:30 pm    Post subject: Permissions Reply with quote

They all look fine, and I opened them up a bit, and still the same thing

Any particular directories and files I should be looking at?

Bob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
rdian06



Joined: 12 Apr 2008
Posts: 463

PostPosted: Fri Sep 19, 2008 2:50 pm    Post subject: Reply with quote

Did you happen to create the original conf file on a Windows machine and then move it to your Linux box? If so, you might have non-printable characters at the end of the lines that are screwing up the parser.

Maybe try running the conf file through dos2unix or just do this:

Code:

tr -d '\15\32' < winfile.txt > unixfile.txt
Back to top
View user's profile Send private message
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Fri Sep 19, 2008 5:16 pm    Post subject: Still an issue Reply with quote

It was originally created in Unix, but I tried your command, and still have the same issue.

Still no config web interface.

Not a huge issue, but would be nice.

Bob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Fri Sep 19, 2008 8:33 pm    Post subject: Reply with quote

CRLF vs. LF doesn't screw up the parser anyway.
_________________
My pyTivo fork
Back to top
View user's profile Send private message
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Sat Sep 20, 2008 9:12 am    Post subject: Not sure if this matters Reply with quote

But I['m running this on a QNAP device
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
bobbakh



Joined: 03 Mar 2008
Posts: 9

PostPosted: Wed Dec 24, 2008 7:17 pm    Post subject: got it working Reply with quote

I had to search around a little in the code to understand it, but once I moved the config file back to the bin directory of pyTivo and then linked it to my /opt/etc it all seems to work perfectly. All parts including the admin tool.

Thanks for a great tool.

Bob
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Wed Dec 24, 2008 7:52 pm    Post subject: Reply with quote

Ugh. Will fix.
_________________
My pyTivo fork
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.7421s ][ Queries: 13 (0.5945s) ][ Debug on ]