Hey,
i get the following error message when i try to start the PlexConnect.py:
12:13:38 PlexConnect: ***
12:13:38 PlexConnect: PlexConnect
12:13:38 PlexConnect: Press CTRL-C to shut down.
12:13:38 PlexConnect: ***
12:13:38 PlexConnect: started: 12:13:38
12:13:38 PlexConnect: Version: 0.5-dev
12:13:38 PlexConnect: Python: 2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
12:13:38 PlexConnect: Host OS: linux2
12:13:38 PlexConnect: PILBackgrounds: Is PIL installed? False
12:13:38 PlexConnect: IP_self: 192.168.0.17
12:13:39 DNSServer: started: 12:13:39
12:13:39 DNSServer: ***
12:13:39 DNSServer: DNSServer: Serving DNS on 192.168.0.17 port 53.
12:13:39 DNSServer: intercept: ['trailers.apple.com'] => 192.168.0.17
12:13:39 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
12:13:39 DNSServer: forward other to higher level DNS: 8.8.8.8
12:13:39 DNSServer: ***
12:13:39 WebServer: started: 12:13:39
12:13:39 WebServer: Failed to connect to HTTP on 192.168.0.17 port 80: [Errno 98] Address already in use
12:13:39 PlexConnect: WebServer not alive. Shutting down.
12:13:39 PlexConnect: Shutting down.
12:13:40 DNSServer: DNS request received!
12:13:40 DNSServer: Source: ('192.168.0.11', 58439)
12:13:40 DNSServer: Domain: init.itunes.apple.com
12:13:40 DNSServer: ***forward request
12:13:40 DNSServer: -> DNS response from higher level
12:13:40 DNSServer: Shutting down.
12:13:40 PlexConnect: shutdown
12:13:40 PlexConnect: shutdown
My Settings.py looks like this:
g_settings = [
('enable_plexgdm' , ('True', '((True)|(False))')),
('ip_pms' , ('192.168.0.17', '([0-9]{1,3}\.){3}[0-9]{1,3}')),
('port_pms' , ('32400', '[0-9]{1,5}')),
\
('enable_dnsserver', ('True', '((True)|(False))')),
('port_dnsserver' , ('53', '[0-9]{1,5}')),
('ip_dnsmaster' , ('8.8.8.8', '([0-9]{1,3}\.){3}[0-9]{1,3}')),
('prevent_atv_update' , ('True', '((True)|(False))')),
\
('enable_plexconnect_autodetect', ('True', '((True)|(False))')),
('ip_plexconnect' , ('0.0.0.0', '([0-9]{1,3}\.){3}[0-9]{1,3}')),
('hosttointercept' , ('trailers.apple.com', '[a-zA-Z0-9_.]+')),
\
('port_webserver' , ('80', '[0-9]{1,5}')),
('enable_webserver_ssl' , ('True', '((True)|(False))')),
('port_ssl' , ('443', '[0-9]{1,5}')),
('certfile' , ('./assets/certificates/trailers.pem', '.+.pem')),
\
('allow_gzip_atv' , ('False', '((True)|(False))')),
('allow_gzip_pmslocal' , ('False', '((True)|(False))')),
('allow_gzip_pmsremote' , ('True', '((True)|(False))')),
\
('loglevel' , ('Normal', '((Off)|(Normal)|(High))')),
('logpath' , ('.', '.+')),
]
I have Apache2 installed on my RasPi (for remote outlets) but i changed to port to 8080. The ports.conf looks like this:
# If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default # This is also true if you have upgraded from before 2.2.9-3 (i.e. from # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and # README.Debian.gzNameVirtualHost *:8080
# If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 Listen 443
Listen 8080
and the /site-enabled/000-default looks like this
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
When i run lsof -i -P i get the following for port80:
python 1972 root 4u IPv4 6580 0t0 TCP 192.168.0.17:80 (LISTEN)
and when i run netstat -atupn i get this:
tcp 0 0 192.168.0.17:80 0.0.0.0:* LISTEN -
I also tried to shutdown the apache2 server with sudo service apache2 stop but the port80 ist still being used. I had it already working but i guess something is still wrong. Do i have to follow this guide http://www.linuxtoolbox.ninja/?p=60 or is there something else i have to do? I have to say that i am not an expert in this :)
Thank you very much
Michael