Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Can not open the host table
Author Message
cuscofoo
Brekeke Junior Member


Joined: 03 Mar 2008
Posts: 5

PostPosted: Mon Mar 03, 2008 6:44 pm    Post subject: Can not open the host table Reply with quote

1. Brekeke Product Name and version: Brekeke SIP Server (Version 2.1.6.6 Personal)

2. Java version: java version "1.5.0_06"

3. OS type and the version: Linux 2.4.21-32.0.1.EL i686 i686 i386 GNU/Linux

4. UA (phone), gateway or other hardware/software involved: x-lite

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :

6. Your problem:
My SIP server always show me "Can not open the host table" error during start up. I did not successfully start up the Brekeke SIP Server after I installed it. Not sure what wrong with my setting.
Can anyone who know what is the problem and where it trying to open host table? what is this host table used for?
Back to top
View user's profile
jelly
Brekeke Talented


Joined: 20 Jun 2007
Posts: 62

PostPosted: Mon Mar 03, 2008 7:04 pm    Post subject: Reply with quote

plz refer to http://www.brekeke-sip.com/bbs/viewtopic.php?t=5433,
hope this link can solve your problem.
Back to top
View user's profile
cuscofoo
Brekeke Junior Member


Joined: 03 Mar 2008
Posts: 5

PostPosted: Mon Mar 03, 2008 7:16 pm    Post subject: Reply with quote

My /etc/hosts already contains this line:-

[root@klasu8 tomcat]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.223.1.72 klasu8


wondering is it something to do with the database. Cause I still dun have my 3rd party database setup.

Without the database is it impossible to start the Brekeke Sip Server?
Back to top
View user's profile
Haddas
Brekeke Guru


Joined: 17 Jan 2008
Posts: 170

PostPosted: Tue Mar 04, 2008 10:55 am    Post subject: Reply with quote

Can the SIP Server read /etc/hosts file?
Did you set a read-permission with the file?

The SIP Server has internal database..
so let you disable settings of 3rd party database .
Back to top
View user's profile
cuscofoo
Brekeke Junior Member


Joined: 03 Mar 2008
Posts: 5

PostPosted: Tue Mar 04, 2008 6:21 pm    Post subject: Reply with quote

I had the read permission applied to /etc/hosts all these while.
[root@klasu8 etc]# ls -lt hosts
-rw-r--r-- 1 root root 392 Jan 30 17:30 hosts


I try to change the log4j level to debug and this is my finding during statup period. I 'off' all the third party DB and set the embedded database port to 9001.

Quote:

19:15:44,780 DEBUG [http-8080-Processor12] [?Confused] - &&&&&&&&&&&&& os.name=Linux
19:15:44,955 DEBUG [http-8080-Processor12] [?Confused] - /usr/java/jdk1.5.0_06/jre/bin/java
-Xrs
-classpath
/etc/tomcat5/webapps/proxy/WEB-INF/classes:/usr/java/jdk1.5.0_06/jre/lib/tools.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar:/etc/tomcat5/common/classes:/etc/tomcat5/webapps/proxy/WEB-INF/lib/hsqldb.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/log4j-core.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/log4j.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondooss.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondosip.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondoutil.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ojdbc14.jar:/usr/java/jdk1.5.0_06/jre/lib/ext
org.hsqldb.Server
-database
/etc/tomcat5/webapps/proxy/WEB-INF/work/sv/db/registered
-port
9001
19:15:45,382 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: [Thread[main,5,main]]: checkRunning(false) entered
19:15:45,384 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: [Thread[main,5,main]]: checkRunning(false) exited
19:15:45,386 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Startup sequence initiated from main() method
19:15:45,389 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Loaded properties from [/usr/local/jakarta-tomcat-5.0.25/server.properties]
19:15:45,392 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Initiating startup sequence...
19:15:45,416 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Server socket opened successfully in 20 ms.
19:15:46,020 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Database [index=0, id=0, db=file:/etc/tomcat5/webapps/proxy/WEB-INF/work/sv/db/registered, alias=] opened sucessfully in 573 ms.
19:15:46,025 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: Startup sequence completed in 629 ms.
19:15:46,027 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: 2008-03-06 19:15:46.027 HSQLDB server 1.7.2 is online
19:15:46,029 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: To close normally, connect and execute SHUTDOWN SQL
19:15:46,031 DEBUG [http-8080-Processor12] [?Confused] - --[Server@1a758cb]: From command line, use [Ctrl]+[C] to abort abruptly
19:15:46,033 INFO [http-8080-Processor12] [?Confused] - hsql server start !!
19:15:46,162 DEBUG [http-8080-Processor12] [?Confused] - open database!!
19:15:46,319 DEBUG [http-8080-Processor12] [?Confused] - &&&&&&&&&&&&& os.name=Linux
19:15:46,355 DEBUG [http-8080-Processor12] [?Confused] - /usr/java/jdk1.5.0_06/jre/bin/java
-Xrs
-Djava.net.preferIPv4Stack=true
-classpath
/etc/tomcat5/webapps/proxy/WEB-INF/classes:/usr/java/jdk1.5.0_06/jre/lib/tools.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar:/etc/tomcat5/common/classes:/etc/tomcat5/webapps/proxy/WEB-INF/lib/hsqldb.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/log4j-core.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/log4j.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondooss.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondosip.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ondoutil.jar:/etc/tomcat5/webapps/proxy/WEB-INF/lib/ojdbc14.jar:/usr/java/jdk1.5.0_06/jre/lib/ext
com.brekeke.ondo.sv
-f
/etc/tomcat5/webapps/proxy/WEB-INF/work/sv/sv_r.properties
-d
/etc/tomcat5/webapps/proxy/WEB-INF/work/sv
-product
Brekeke SIP Server
-e
3
19:15:46,575 DEBUG [http-8080-Processor12] [?Confused] - --Brekeke SIP Server 2.1/239
19:15:46,579 DEBUG [http-8080-Processor12] [?Confused] - --Copyright (C) 2002-2007 Brekeke Software, Inc. All rights reserved.
19:15:46,581 DEBUG [http-8080-Processor12] [?Confused] - --
19:15:46,597 DEBUG [http-8080-Processor12] [?Confused] - --sv: open env-file '/etc/tomcat5/webapps/proxy/WEB-INF/work/sv/sv_r.properties'.
19:15:49,227 DEBUG [http-8080-Processor12] [?Confused] - --sv: exit-code=-103
19:15:49,228 DEBUG [http-8080-Processor12] [?Confused] - SIP Server process:sv: exit-code=-103
19:15:49,230 FATAL [http-8080-Processor12] [?Confused] - SIP Server failed to start. - Version 2.1.6.6 Can not open the host table. (-103)




Can someone help on resolving this?
If not using thirdparty DB where is the database located in my server? how can i make use of it?
Back to top
View user's profile
cuscofoo
Brekeke Junior Member


Joined: 03 Mar 2008
Posts: 5

PostPosted: Tue Mar 04, 2008 8:32 pm    Post subject: Reply with quote

I need to get the Brekeke SIP Server up and running before i can register my call... can anyone help...??
Back to top
View user's profile
Haddas
Brekeke Guru


Joined: 17 Jan 2008
Posts: 170

PostPosted: Wed Mar 05, 2008 11:23 am    Post subject: Reply with quote

Which Linux distribution are you using?

Anyway..
Copy "/etc/hosts" file to
../webapps/proxy/WEB-INF/work/sv/etc

And edit "sv.properties" file to include the following..
file.hosts.table = etc/hosts

Let's try.
Back to top
View user's profile
cuscofoo
Brekeke Junior Member


Joined: 03 Mar 2008
Posts: 5

PostPosted: Wed Mar 05, 2008 7:02 pm    Post subject: Reply with quote

I am using Linux Enterprise version.
I try your method and the problem still there. I am out of idea on what will be the cause of this. Adding the parameter "file.hosts.table" doesn't seem to let the SIP Server know where is the host table.

I will try to install window version of Brekeke SIP Server to see I can overcome this problem by installing it on windows OS or not.

Meanwhile if anyone have any idea I am willing to try out and perhaps if can resolve this I want to use the Linux version very much.
Back to top
View user's profile
Haddas
Brekeke Guru


Joined: 17 Jan 2008
Posts: 170

PostPosted: Mon Mar 10, 2008 4:40 pm    Post subject: Reply with quote

Did you disable your 3rd party database setup?

Also.. try starting the Tomcat by super-user.
Back to top
View user's profile
c2115977@pjjkp.com
Brekeke Newbie


Joined: 07 Jan 2011
Posts: 1
Location: .nl

PostPosted: Fri Jan 07, 2011 4:38 pm    Post subject: Reply with quote

The cause might be that you specified any value in field: Configuration > System > Network > Interface address

This happens 100% reproducable on Mac OS X server 10.5.8 running its default Tomcat version 6 with Brekeke SIP server version 2.4.7.3

Workaround: do not bind to a specific IP address (empty field).
Back to top
View user's profile
Haddas
Brekeke Guru


Joined: 17 Jan 2008
Posts: 170

PostPosted: Mon Jan 10, 2011 11:49 am    Post subject: Reply with quote

Hi
Are you using a preinstalled Tomcat??

I'm not sure.. but such default Tomcat may cause the issue.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1