[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
MyiHome doesn't seem to work on Linux
07-24-2008, 11:07 AM
Post: #1
MyiHome doesn't seem to work on Linux
Hello,
I've downloaded MyiHome, unpacked it into a directory, and launch startserver.sh (I'm under Ubuntu 8.04).
I've edit preferences.xml as said in the readme file.
I've launched a second time but I can't see media server on PCH.
Here the message from Terminal:
Code:
root@KAVA-Linux:/home/administrateur/myiHomeLinux# ./startserver.sh
>> IHOME_HOME = /home/administrateur/myiHomeLinux
>> audioextpath = /home/administrateur/myiHomeLinux/webapps/ROOT/xml/music.xml
>> langxml = /home/administrateur/myiHomeLinux/webapps/ROOT/xml/index.xml
>> videopath = /root/My Videos
>> audiopath = /root/My Music
>> photopath = /root/My Pictures
>> exportpath = /root/Library/myiHome/export
>> thumbpath = /root/Library/myiHome/thumb
[Server@12d263f]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@12d263f]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@12d263f]: Startup sequence initiated from main() method
[Server@12d263f]: Loaded properties from [/home/administrateur/myiHomeLinux/server.properties]
[Server@12d263f]: Initiating startup sequence...
[Server@12d263f]: [Thread[HSQLDB Server @12d263f,5,main]]: run()/openServerSocket():
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(ServerSocket.java:97)
    at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
    at org.hsqldb.Server.openServerSocket(Unknown Source)
    at org.hsqldb.Server.run(Unknown Source)
    at org.hsqldb.Server.access$000(Unknown Source)
    at org.hsqldb.Server$ServerThread.run(Unknown Source)
[Server@12d263f]: Initiating shutdown sequence...
[Server@12d263f]: Shutdown sequence completed in 4 ms.
[Server@12d263f]: 2008-07-24 12:11:29.876 SHUTDOWN : System.exit() is called next
root@KAVA-Linux:/home/administrateur/myiHomeLinux#
Find all posts by this user
07-24-2008, 03:58 PM
Post: #2
Re: MyiHome doesn't seem to work on Linux
Kasimodo Wrote:Hello
Hello, and welcome.
Kasimodo Wrote:
Code:
<snip>
[Server@12d263f]: Loaded properties from [/home/administrateur/myiHomeLinux/server.properties]
[Server@12d263f]: Initiating startup sequence...
[Server@12d263f]: [Thread[HSQLDB Server @12d263f,5,main]]: run()/openServerSocket():
java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at java.net.ServerSocket.<init>(ServerSocket.java:97)
    at org.hsqldb.HsqlSocketFactory.createServerSocket(Unknown Source)
    at org.hsqldb.Server.openServerSocket(Unknown Source)
    at org.hsqldb.Server.run(Unknown Source)
    at org.hsqldb.Server.access$000(Unknown Source)
    at org.hsqldb.Server$ServerThread.run(Unknown Source)
</snip>
This means that on whatever port myiHome is listening, you already have something on that port. This is where it gets dumb.

I would tell you to look at myiHomeLinux/server.properties to figure out which port myiHome listens on, except that file doesn't exist. So we have to figure it out by hand. Some quick checking tells me that myiHome opens up ports 7999, 8000, and 9001 (as well as UDP port 1900, but that's not really applicable here). My guess is that you already have something listening on port 8000.

Now we take a stab in the dark.

It seems as though the file myiHomeLinux/conf/jk2.properties contains a provision for changing the port. Try changing the parameter "channelSocket.port" to something other than 8000 -- you can just un-comment the line that's there, and use 8019. I don't have high hopes this will fix it, but it's worth a shot.
Find all posts by this user
07-25-2008, 08:21 AM
Post: #3
 
Thank you, it works now!
Indeed, the re is another server working on port 8000. I disabled it and now, I can see my server from PCH-A100.

Thank you again
Find all posts by this user
08-10-2008, 12:42 PM (This post was last modified: 08-10-2008 12:49 PM by riwi.)
Post: #4
RE:
Hello,
For me it is still not working under Linux. It starts OK under Slackware 12 but the server does not show up in the PCH source list.

What I have done :
1) stopped twonkyvision (this shows up fine in PCH if started)
2) install myIhome (tried 4.9.1 and 5.0.2) /home/richard/myihome/
3) start it for the first time, it creates the preference.xml file under ~/Library/myiHome/
I edited the video section to point to the path with video material (/share/raid )
Code:
richard@riwilinux:~/Library/myiHome$ cat preference.xml
<?xml version="1.0" encoding="UTF-8"?&gt;
<config>
  <key name="Theme" value="deepblue"/>
<key name="VideoPath" value="/share/raid/"/>
</config>

4) start myIhome
Code:
richard@riwilinux:~/myihome/myiHomeLinux-v5.0.2$ ./startserver.sh
>> IHOME_HOME = /home/richard/myihome/myiHomeLinux-v5.0.2
>> audioextpath = /home/richard/myihome/myiHomeLinux-v5.0.2/webapps/ROOT/xml/music.xml
>> langxml = /home/richard/myihome/myiHomeLinux-v5.0.2/webapps/ROOT/xml/index.xml
>> videopath = /share/raid/
>> audiopath = /home/richard/My Music
>> photopath = /home/richard/My Pictures
>> exportpath = /home/richard/Library/myiHome/export
>> thumbpath = /home/richard/Library/myiHome/thumb
[Server@27e353]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@27e353]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@27e353]: Startup sequence initiated from main() method
[Server@27e353]: Loaded properties from [/home/richard/myihome/myiHomeLinux-v5.0.2/server.properties]
[Server@27e353]: Initiating startup sequence...
[Server@27e353]: Server socket opened successfully in 82 ms.
[Server@27e353]: Database [index=0, id=0, db=file:/home/richard/Library/myiHome\data, alias=mydb] opened sucessfully in 490 ms.
[Server@27e353]: Startup sequence completed in 583 ms.
[Server@27e353]: 2008-08-10 13:28:18.061 HSQLDB server 1.7.2 is online
[Server@27e353]: To close normally, connect and execute SHUTDOWN SQL
[Server@27e353]: From command line, use [Ctrl]+[C] to abort abruptly
Nothing shows up in the PCH source list.

The PC has 2 network interfaces. 1 external (10.0.0.x) and 1 internal 192.168.1.x), the PCH has 192.168.1.8, the linux PC has 192.168.1.3.
iptables only drops stuff from the external interface, internal network has allow for everything.
The media under /share/raid is an LVM with 4x 500G in RAID-0

I run this also as NFS export which is available for the PCH. It is also accessible via SMB to windows machines on the network. Both woks fine.

I also have myIhome running on 2 windows PCs that is working OK.

Any tips on why the myIhome linux is not showing up in the source list?

Thanks for any help/suggestions.
Regards, Richard
I see this in the logs directory :
Code:
richard@riwilinux:~/myihome/myiHomeLinux-v5.0.2/logs$ tail -f server.log
        at syabas.myihome.server.TomcatServer.main(Unknown Source)
[2008-08-10 13:28:18,105] ERROR [main] syabas.myihome.hsql.HSQLDB - [setConfiguration()]
java.sql.SQLException: Table already exists: MUSIC in statement [CREATE CACHED TABLE music]
        at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
        at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
        at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)
        at syabas.myihome.hsql.HSQLDB.initTable(Unknown Source)
        at syabas.myihome.hsql.HSQLDB.start(Unknown Source)
        at syabas.myihome.server.unix.TomcatServerUnix.<init>(Unknown Source)
        at syabas.myihome.server.TomcatServer.main(Unknown Source)

the server is still running though :
Code:
richard@riwilinux:~/myihome/myiHomeLinux-v5.0.2/logs$ ps -ef | grep java
richard  15391 15390  0 13:28 pts/0    00:00:03 java -Djava.endorsed.dirs=Contents/Resources/Java/lib/endorsed -classpath .:QTJava.zip:myiHome-server.jar:syabas-content.jar:syabas-media.jar:syabas-news.jar:syabas-portal.jar syabas.myihome.server.TomcatServer
richard  15506 15372  0 13:49 pts/0    00:00:00 grep java
Find all posts by this user
08-10-2008, 01:07 PM (This post was last modified: 08-10-2008 01:37 PM by gnorf.)
Post: #5
RE: MyiHome doesn't seem to work on Linux
hmm, dual interface.. been there done that.. took me some time to figure out. Did add a blurb at lundmans llink page..
http://www.lundman.net/wiki/index.php/Llink:user_guide

If I dont get it wrong SSDP / UPnP don't understand where to go unless you add a route for them.

try

route add -net 239.0.0.0 netmask 255.0.0.0 eth1

Replace eth1 with your internal interface, and see if it may show up in media sources (do restart the service, before giving up), else try add a webservices link in nmt to see if its running properly.

and btw, just a friendly advice.. on lunix, drop MyiHome and go for llink.. atleast try it out .

regards
gnorf
Find all posts by this user
08-10-2008, 02:11 PM (This post was last modified: 08-10-2008 02:51 PM by riwi.)
Post: #6
RE: MyiHome doesn't seem to work on Linux
Thanks.
I had a similar line that twonky needed for broadcasts
route add -net 224.0.0.0 netmask 240.0.0.0 eth1
I removed that when I stopped twonky.

I added the line you suggested :
route add -net 239.0.0.0 netmask 255.0.0.0 eth1

But no result yet. I restarted the startserver.sh process and also the PCH. eth1 is my internal network

How do you add a webservice link. What should you use as service url? (i'll try to find it on the forum/faq section).

I'll have a look at llink.

I got it to work with the webservice link to port 8000 Smile First I mistakenly forgot the port and got my webpage on the TV screen Smile

I installed llink too. llink is also not discovered by the PCH. I added it via the webservice link (port 8001) and that works too.

So I can have them running side by side and play alittle bit with it.
Strange that the autodiscovery does not work in my setup.
I will try some snoop/tcpdump to see what is happening here.

Thanks for your help
Regards, Richard
Find all posts by this user
08-10-2008, 03:04 PM (This post was last modified: 08-10-2008 03:09 PM by gnorf.)
Post: #7
RE: MyiHome doesn't seem to work on Linux
oke, so far so good then.. the services are working for you.

Then it's just the auto discovery thats not working properly.. I did bang my head on that with llink, but in the end it was just the route.. or.. I do have the bindif for HTTP set to the internal interface in llink.conf still.. it may be whats lacking here .. all other settings regarding net access are default afaik atm.

HTTP|port=8001|bindif=int.ip.of.server|pin=1234|name=myllinkname


regards
g
Find all posts by this user
08-10-2008, 03:40 PM
Post: #8
RE: MyiHome doesn't seem to work on Linux
(08-10-2008 03:04 PM)gnorf Wrote:  HTTP|port=8001|bindif=int.ip.of.server|pin=1234|name=myllinkname

I see in tcpdump that
the PCH is sending MDNS "QM" Question towards 224.0.0.251
the PCH is doing SSDP MSEARCH http towards 239.255.255.250

There is no response message from the linuxPC

I'll check out the config line you mentioned
Find all posts by this user
01-22-2009, 01:17 PM
Post: #9
RE: MyiHome doesn't seem to work on Linux
Hi riwi, did you get PCH to discover llink through upnp? or are you still using web services?

I have the same problem now and would love to hear if you got it working!
Find all posts by this user
01-22-2009, 08:01 PM
Post: #10
RE: MyiHome doesn't seem to work on Linux
(01-22-2009 01:17 PM)kiranos Wrote:  Hi riwi, did you get PCH to discover llink through upnp? or are you still using web services?

I have the same problem now and would love to hear if you got it working!

Hi,

Unfortunately I never got the discovery part to work. I kept using the web services link because that worked fine.
I have sold the PCH A100 in the mean time though. I also have a tvix 6500 which I like better. I'm thinking about buying a dune player too.

Regards
Find all posts by this user
08-09-2009, 07:48 AM
Post: #11
RE: MyiHome doesn't seem to work on Linux
Hi,

can anybody tell me how to change the listening socket of myiHome on a Linux server. I've another service running on port 8000 but I cannot remove that so I have to run myiHome on another port.

Overriding channel socket port in jk2.properties didn't have any effect.

I found a "manual" how to configure it in Windows - maybe a Windows-user can look in which file the port-change is stored in order I can provide the same file in the Linux environment.

Thanks in advance!


cu Helmut

Desperate Newbie
HDX-1000 including 160GB SSD
Phillips LCD
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  When loading myIhome the UI get Stuck (win 7 32 bit) tomcat383 8 2,919 03-05-2013 12:33 PM
Last Post: MediaHound
  Myihome phboersm 0 646 02-08-2013 11:33 AM
Last Post: phboersm
  moviejukebox regenerate-button wont work Vincemeister 0 363 01-20-2013 11:46 PM
Last Post: Vincemeister
  Myihome on a A-400 Paheve 1 692 01-09-2013 10:22 PM
Last Post: werner
  can not download myihome Ken74 5 1,099 12-07-2012 02:39 AM
Last Post: dev
  myiHome start/stop script krasny13 3 2,658 10-31-2012 10:05 PM
Last Post: Gwindor
  myiHome is not working Mountain Lion NilsBasel 6 1,491 10-18-2012 07:59 PM
Last Post: NilsBasel
Bell myihome ---> windows7 x64 issue (quick fix) Costas 5 3,276 10-11-2012 05:53 AM
Last Post: NilsBasel
  myIhome and C-300 bobytt 1 819 10-08-2012 03:15 PM
Last Post: chris57
  A-200 NO myihome? doronshami 0 589 10-01-2012 08:49 AM
Last Post: doronshami

Forum Jump: