Problems connecting to the database

Friday, 26 March 2010 · 17 messages · last reply 30 Mar 2010
DP
Daniel .Petersen26 Mar 2010 17:03 #
Hay Just started using baseX and have uploaded til executable .jar file to my server. Then i use the command:
java -cp BaseX6.jar org.basex.BaseXServer -p 7000
To set up a server listening on port 7000. And i says "BaseX 6.0 [server] \n Server was started" and not as it says in the guide "Waiting for requests...", is that a problem? My intention is to be able to connect to my BaseX DB with a client from my pc to the server where the DB is. Then I on my pc run the command:
java -cp BaseX6.jar org.basex.BaseXClient -s [ip on my server] -p 7000
to try connecting, but then it just displays the help message and are not doing anything. I am expecting a new console where I where able to write commands to my baseX server, is that not the intention? Thanks in advance for reading this and I hope for a quick answer. ~DWP
CG
Christian Grün26 Mar 2010 17:54 #
Hi,
Quoted text · Daniel .Petersen · 5 lines
> java -cp BaseX6.jar org.basex.BaseXServer -p 7000 > > To set up a server listening on port 7000. And i says "BaseX 6.0 > [server] \n Server was started" and not as it says in the guide > "Waiting for requests...", is that a problem?
Hm, didn't experience this before; have you tried BaseX on another machine, or user other ports?
Quoted text · Daniel .Petersen · 5 lines
> java -cp BaseX6.jar org.basex.BaseXClient -s [ip on my server] -p 7000 > > to try connecting, but then it just displays the help message and are > not doing anything. I am expecting a new console where I where able to > write commands to my baseX server, is that not the intention?
By the help of your mail, I noticed that our documentation was out-of-dated; you need to specify -n instead -s (or try -h for help). I've updated our docs. Next, just to get sure, verify if port 7000 is opened on your server machine. Christian ___________________________ Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen
CG
Christian Grün26 Mar 2010 18:57 #
Hi Daniel (cc to mailing list),
Quoted text · Christian Grün · 1 line
> wow, this where a quick response :)
..you're welcome.
Quoted text · Christian Grün · 15 lines
>> Hm, didn't experience this before; have you tried BaseX on another >> machine, or user other ports? > > Tried it on my pc and on the server, same result. > >> By the help of your mail, I noticed that our documentation was >> out-of-dated; you need to specify -n instead -s (or try -h for help). >> I've updated our docs. Next, just to get sure, verify if port 7000 is >> opened on your server machine. > > Thank you for that, found out port 7000 where not open by default, and > corrected that. > > With no change in the BaseXServer behavior, I where expecting som sort > of console to controle the server with, but that will not happen?
You can throw in the -i argument to end up in the console mode. Note that all admin commands can as well be used from another client, which is logged in with admin rights.
Quoted text · Christian Grün · 2 lines
> I solved another problem I got an now the Client code ask for login > and password, but now it just times out every time I try to log on.
So you're getting a "Timeout exceeded." message? Hm, this would indicate that the server isn't reachable. Are you sure the ports are opened and available?
Quoted text · Christian Grün · 5 lines
> When I am logging on I am able to use the default admin/admin > login/password right? > My CentOS server, where the BaseX server is, have a password for every > user but If I have opened the port I dont need to go through any proxy > there, I just use admin/admin?
…exactly, admin/admin is the default login. You may adjust the admin password or add more users in the next step. Christian
Quoted text · Christian Grün · 28 lines
> > ~DWP > > 2010/3/26 Christian Grün <christian.gruen at gmail.com>: >> Hi, >> >>> java -cp BaseX6.jar org.basex.BaseXServer -p 7000 >>> >>> To set up a server listening on port 7000. And i says "BaseX 6.0 >>> [server] \n Server was started" and not as it says in the guide >>> "Waiting for requests...", is that a problem? >> >> Hm, didn't experience this before; have you tried BaseX on another >> machine, or user other ports? >> >> >>> java -cp BaseX6.jar org.basex.BaseXClient -s [ip on my server] -p 7000 >>> >>> to try connecting, but then it just displays the help message and are >>> not doing anything. I am expecting a new console where I where able to >>> write commands to my baseX server, is that not the intention? >> >> By the help of your mail, I noticed that our documentation was >> out-of-dated; you need to specify -n instead -s (or try -h for help). >> I've updated our docs. Next, just to get sure, verify if port 7000 is >> opened on your server machine. >> >> Christian
DP
Daniel .Petersen26 Mar 2010 21:34 #
Hay again. Sorry all, forgot to cc to the mailing list before.
Quoted text · Christian Grün · 3 lines
> So you're getting a "Timeout exceeded." message? Hm, this would > indicate that the server isn't reachable. Are you sure the ports are > opened and available?
Yes I get a timeout exceeded message when I try to connect with my client from my PC to the server, using standard admin/admin login. Now I have tried to nmap from both the server and my pc on port 7000 and it is open and used for a "afs3-fileserver" service, is that a correct setup when the BaseX server is running on port 7000? Thank you fro your quick responses uptill now :) ~DWP
CG
Christian Grün26 Mar 2010 22:46 #
Daniel, you might try another port (e.g., the default port 1984). However, I've just run BaseX on a remote ubuntu machine on port 7000 without any problems. Are you successful when running the client on the remote machine? Christian
Quoted text · Daniel .Petersen · 21 lines
On Fri, Mar 26, 2010 at 9:34 PM, Daniel .Petersen <superDACAL at hotmail.com> wrote: > Hay again. > > Sorry all, forgot to cc to the mailing list before. > >> So you're getting a "Timeout exceeded." message? Hm, this would >> indicate that the server isn't reachable. Are you sure the ports are >> opened and available? > > Yes I get a timeout exceeded message when I try to connect with my > client from my PC to the server, using standard admin/admin login. > > Now I have tried to nmap from both the server and my pc on port 7000 > and it is open and used for a "afs3-fileserver" service, is that a > correct setup when the BaseX server is running on port 7000? > > Thank you fro your quick responses uptill now :) > > ~DWP >
DP
Daniel .Petersen27 Mar 2010 23:24 #
hmm... If I use the 1984 port and scan with nmap the service is called "bigBrother" now instead of "asf3-fileserver", but the clients behavior is unchanged.
CG
Christian Grün28 Mar 2010 03:50 #
Hm… I'm sorry I have no idea what could be the matter. Maybe someone else out there has some clue?
Quoted text · Daniel .Petersen · 5 lines
On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen <superDACAL at hotmail.com> wrote: > hmm... If I use the 1984 port and scan with nmap the service is called > "bigBrother" now instead of "asf3-fileserver", but the clients > behavior is unchanged.
DP
Daniel .Petersen29 Mar 2010 12:42 #
Hay again tried to do everything over once more and now I get another error message "Can't communicate with the server"-error There are no change in behavior yet, exept that. 2010/3/28 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 13 lines
> Hm… I'm sorry I have no idea what could be the matter. Maybe someone > else out there has some clue? > > On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen > <superDACAL at hotmail.com> wrote: >> hmm... If I use the 1984 port and scan with nmap the service is called >> "bigBrother" now instead of "asf3-fileserver", but the clients >> behavior is unchanged. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Weiler29 Mar 2010 13:00 #
Hi Daniel,
Quoted text · Daniel .Petersen · 1 line
> "bigBrother" now instead of "asf3-fileserver"
i just checked it with nmap on my machine, and it says exactly the same as yours. (with BaseX Server running and without) So dont give a lot on these results. If you can connect local to the BaseXServer with just specify the port like:
java -cp BaseX6.jar org.basex.BaseXServer -p 1984

java -cp BaseX6.jar org.basex.BaseXClient -p 1984
and not remote like:
java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984
Then your server is wrongly configured, please check that first. Kind regards, Andreas, BaseX Team
Quoted text · Daniel .Petersen · 32 lines
Daniel .Petersen schrieb: > Hay again > > tried to do everything over once more and now I get another error message > > "Can't communicate with the server"-error > > There are no change in behavior yet, exept that. > > 2010/3/28 Christian Grün <christian.gruen at gmail.com>: > >> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >> else out there has some clue? >> >> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >> <superDACAL at hotmail.com> wrote: >> >>> hmm... If I use the 1984 port and scan with nmap the service is called >>> "bigBrother" now instead of "asf3-fileserver", but the clients >>> behavior is unchanged. >>> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
DP
Daniel .Petersen29 Mar 2010 13:11 #
I am able to connect to the server locally using the commands you posted. 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>:
Quoted text · Andreas Weiler · 66 lines
> Hi Daniel, > >> "bigBrother" now instead of "asf3-fileserver" > > i just checked it with nmap on my machine, and it says exactly the same as > yours. (with BaseX Server running and without) > So dont give a lot on these results. > > If you can connect local to the BaseXServer with just specify the port like: > > java -cp BaseX6.jar org.basex.BaseXServer -p 1984 > > java -cp BaseX6.jar org.basex.BaseXClient -p 1984 > > and not remote like: > > java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 > > Then your server is wrongly configured, please check that first. > > Kind regards, > Andreas, BaseX Team > > Daniel .Petersen schrieb: >> >> Hay again >> >> tried to do everything over once more and now I get another error message >> >> "Can't communicate with the server"-error >> >> There are no change in behavior yet, exept that. >> >> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >> >>> >>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>> else out there has some clue? >>> >>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>> <superDACAL at hotmail.com> wrote: >>> >>>> >>>> hmm... If I use the 1984 port and scan with nmap the service is called >>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>> behavior is unchanged. >>>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Weiler29 Mar 2010 13:43 #
So i guess it's a security problem. I just checked it by myself on a remote server and i didnt get any problem. So i just can give your following advices: Please make sure Java is not blocked from the firewalls on both machines and check if the port is open and the hostname or hostip is the right one.
Quoted text · Daniel .Petersen · 73 lines
Daniel .Petersen schrieb: > I am able to connect to the server locally using the commands you posted. > > 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: > >> Hi Daniel, >> >> >>> "bigBrother" now instead of "asf3-fileserver" >>> >> i just checked it with nmap on my machine, and it says exactly the same as >> yours. (with BaseX Server running and without) >> So dont give a lot on these results. >> >> If you can connect local to the BaseXServer with just specify the port like: >> >> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >> >> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >> >> and not remote like: >> >> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >> >> Then your server is wrongly configured, please check that first. >> >> Kind regards, >> Andreas, BaseX Team >> >> Daniel .Petersen schrieb: >> >>> Hay again >>> >>> tried to do everything over once more and now I get another error message >>> >>> "Can't communicate with the server"-error >>> >>> There are no change in behavior yet, exept that. >>> >>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>> >>> >>>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>>> else out there has some clue? >>>> >>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>> <superDACAL at hotmail.com> wrote: >>>> >>>> >>>>> hmm... If I use the 1984 port and scan with nmap the service is called >>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>> behavior is unchanged. >>>>> >>>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >>
DP
Daniel .Petersen29 Mar 2010 13:58 #
I am not getting the "can't comunnicate.."-error more and is back at the "timeout exception" again, does that make any sense? I am quite sure the ip is correct, because I am able to scan for open ports from my pc and see the same ports are open as if i scan localhost on the server. I have unblogged java on my pc, before I started on this. And the server is CentOs and linux do not blog programs like on windows (if i remember right) and the port are open when i use nmap both on the server and from my pc. 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>:
Quoted text · Andreas Weiler · 98 lines
> So i guess it's a security problem. > I just checked it by myself on a remote server and i didnt get any problem. > So i just can give your following advices: > Please make sure Java is not blocked from the firewalls on both machines and > check if the port is open and the hostname or hostip is the right one. > > Daniel .Petersen schrieb: >> >> I am able to connect to the server locally using the commands you posted. >> >> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >> >>> >>> Hi Daniel, >>> >>> >>>> >>>> "bigBrother" now instead of "asf3-fileserver" >>>> >>> >>> i just checked it with nmap on my machine, and it says exactly the same >>> as >>> yours. (with BaseX Server running and without) >>> So dont give a lot on these results. >>> >>> If you can connect local to the BaseXServer with just specify the port >>> like: >>> >>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>> >>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>> >>> and not remote like: >>> >>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>> >>> Then your server is wrongly configured, please check that first. >>> >>> Kind regards, >>> Andreas, BaseX Team >>> >>> Daniel .Petersen schrieb: >>> >>>> >>>> Hay again >>>> >>>> tried to do everything over once more and now I get another error >>>> message >>>> >>>> "Can't communicate with the server"-error >>>> >>>> There are no change in behavior yet, exept that. >>>> >>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>> >>>> >>>>> >>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>>>> else out there has some clue? >>>>> >>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>> <superDACAL at hotmail.com> wrote: >>>>> >>>>> >>>>>> >>>>>> hmm... If I use the 1984 port and scan with nmap the service is called >>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>> behavior is unchanged. >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> BaseX-Talk mailing list >>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Weiler29 Mar 2010 14:10 #
You could try out to upload the PHP Version: https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ on a webserver and try to connect to your server with the Example.php. So you could narrow the problem to server or client side. Sorry for no better adivces, but we haven't encountered the problem before.
Quoted text · Daniel .Petersen · 115 lines
Daniel .Petersen schrieb: > I am not getting the "can't comunnicate.."-error more and is back at > the "timeout exception" again, does that make any sense? > > I am quite sure the ip is correct, because I am able to scan for open > ports from my pc and see the same ports are open as if i scan > localhost on the server. > > I have unblogged java on my pc, before I started on this. > > And the server is CentOs and linux do not blog programs like on > windows (if i remember right) and the port are open when i use nmap > both on the server and from my pc. > > 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: > >> So i guess it's a security problem. >> I just checked it by myself on a remote server and i didnt get any problem. >> So i just can give your following advices: >> Please make sure Java is not blocked from the firewalls on both machines and >> check if the port is open and the hostname or hostip is the right one. >> >> Daniel .Petersen schrieb: >> >>> I am able to connect to the server locally using the commands you posted. >>> >>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>> >>> >>>> Hi Daniel, >>>> >>>> >>>> >>>>> "bigBrother" now instead of "asf3-fileserver" >>>>> >>>>> >>>> i just checked it with nmap on my machine, and it says exactly the same >>>> as >>>> yours. (with BaseX Server running and without) >>>> So dont give a lot on these results. >>>> >>>> If you can connect local to the BaseXServer with just specify the port >>>> like: >>>> >>>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>>> >>>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>>> >>>> and not remote like: >>>> >>>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>>> >>>> Then your server is wrongly configured, please check that first. >>>> >>>> Kind regards, >>>> Andreas, BaseX Team >>>> >>>> Daniel .Petersen schrieb: >>>> >>>> >>>>> Hay again >>>>> >>>>> tried to do everything over once more and now I get another error >>>>> message >>>>> >>>>> "Can't communicate with the server"-error >>>>> >>>>> There are no change in behavior yet, exept that. >>>>> >>>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>>> >>>>> >>>>> >>>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>>>>> else out there has some clue? >>>>>> >>>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>>> <superDACAL at hotmail.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>>> hmm... If I use the 1984 port and scan with nmap the service is called >>>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>>> behavior is unchanged. >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> BaseX-Talk mailing list >>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> BaseX-Talk mailing list >>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >>
DP
Daniel .Petersen29 Mar 2010 16:34 #
I have not used php before, so tell me if I doing it wrong, because i: 1) upload the BaseX.php to the server 2) install php on my pc, and check it works on the server 3) then i run the "php -f Example.php" command on my pc Do I need to do anything else than uplaod the BaseX.php file to the server? Do I need to start the java BaseXServer up? Because I get a "can`t communicate.."-error whenewer I do this. 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>:
Quoted text · Andreas Weiler · 144 lines
> You could try out to upload the PHP Version: > https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ > on a webserver and try to connect to your server with the Example.php. > So you could narrow the problem to server or client side. > Sorry for no better adivces, but we haven't encountered the problem before. > > Daniel .Petersen schrieb: >> >> I am not getting the "can't comunnicate.."-error more and is back at >> the "timeout exception" again, does that make any sense? >> >> I am quite sure the ip is correct, because I am able to scan for open >> ports from my pc and see the same ports are open as if i scan >> localhost on the server. >> >> I have unblogged java on my pc, before I started on this. >> >> And the server is CentOs and linux do not blog programs like on >> windows (if i remember right) and the port are open when i use nmap >> both on the server and from my pc. >> >> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >> >>> >>> So i guess it's a security problem. >>> I just checked it by myself on a remote server and i didnt get any >>> problem. >>> So i just can give your following advices: >>> Please make sure Java is not blocked from the firewalls on both machines >>> and >>> check if the port is open and the hostname or hostip is the right one. >>> >>> Daniel .Petersen schrieb: >>> >>>> >>>> I am able to connect to the server locally using the commands you >>>> posted. >>>> >>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>> >>>> >>>>> >>>>> Hi Daniel, >>>>> >>>>> >>>>> >>>>>> >>>>>> "bigBrother" now instead of "asf3-fileserver" >>>>>> >>>>>> >>>>> >>>>> i just checked it with nmap on my machine, and it says exactly the same >>>>> as >>>>> yours. (with BaseX Server running and without) >>>>> So dont give a lot on these results. >>>>> >>>>> If you can connect local to the BaseXServer with just specify the port >>>>> like: >>>>> >>>>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>>>> >>>>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>>>> >>>>> and not remote like: >>>>> >>>>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>>>> >>>>> Then your server is wrongly configured, please check that first. >>>>> >>>>> Kind regards, >>>>> Andreas, BaseX Team >>>>> >>>>> Daniel .Petersen schrieb: >>>>> >>>>> >>>>>> >>>>>> Hay again >>>>>> >>>>>> tried to do everything over once more and now I get another error >>>>>> message >>>>>> >>>>>> "Can't communicate with the server"-error >>>>>> >>>>>> There are no change in behavior yet, exept that. >>>>>> >>>>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>>>>>> else out there has some clue? >>>>>>> >>>>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>>>> <superDACAL at hotmail.com> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> hmm... If I use the 1984 port and scan with nmap the service is >>>>>>>> called >>>>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>>>> behavior is unchanged. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> BaseX-Talk mailing list >>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> BaseX-Talk mailing list >>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>> >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> BaseX-Talk mailing list >>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>> >>>>> >>>>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AW
Andreas Weiler29 Mar 2010 19:28 #
Hi Daniel, you have to do the following: 1) Configure the Example.php with your server details. You have to replace the server name and the port in the Example.php. 2) Upload the BaseX.php and the Example.php to an available webserver, with php installed. 3) Then start the BaseXServer on your server. 4) Then open with a browser the Example.php on your webserver. Then it should connect to the BaseXServer and run a query. Now the error message or the result of the query is coming up in your browser. Andreas
Quoted text · Daniel .Petersen · 159 lines
Daniel .Petersen schrieb: > I have not used php before, so tell me if I doing it wrong, because i: > > 1) upload the BaseX.php to the server > 2) install php on my pc, and check it works on the server > 3) then i run the "php -f Example.php" command on my pc > > Do I need to do anything else than uplaod the BaseX.php file to the server? > Do I need to start the java BaseXServer up? > > Because I get a "can`t communicate.."-error whenewer I do this. > > 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: > >> You could try out to upload the PHP Version: >> https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ >> on a webserver and try to connect to your server with the Example.php. >> So you could narrow the problem to server or client side. >> Sorry for no better adivces, but we haven't encountered the problem before. >> >> Daniel .Petersen schrieb: >> >>> I am not getting the "can't comunnicate.."-error more and is back at >>> the "timeout exception" again, does that make any sense? >>> >>> I am quite sure the ip is correct, because I am able to scan for open >>> ports from my pc and see the same ports are open as if i scan >>> localhost on the server. >>> >>> I have unblogged java on my pc, before I started on this. >>> >>> And the server is CentOs and linux do not blog programs like on >>> windows (if i remember right) and the port are open when i use nmap >>> both on the server and from my pc. >>> >>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>> >>> >>>> So i guess it's a security problem. >>>> I just checked it by myself on a remote server and i didnt get any >>>> problem. >>>> So i just can give your following advices: >>>> Please make sure Java is not blocked from the firewalls on both machines >>>> and >>>> check if the port is open and the hostname or hostip is the right one. >>>> >>>> Daniel .Petersen schrieb: >>>> >>>> >>>>> I am able to connect to the server locally using the commands you >>>>> posted. >>>>> >>>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>>> >>>>> >>>>> >>>>>> Hi Daniel, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> "bigBrother" now instead of "asf3-fileserver" >>>>>>> >>>>>>> >>>>>>> >>>>>> i just checked it with nmap on my machine, and it says exactly the same >>>>>> as >>>>>> yours. (with BaseX Server running and without) >>>>>> So dont give a lot on these results. >>>>>> >>>>>> If you can connect local to the BaseXServer with just specify the port >>>>>> like: >>>>>> >>>>>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>>>>> >>>>>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>>>>> >>>>>> and not remote like: >>>>>> >>>>>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>>>>> >>>>>> Then your server is wrongly configured, please check that first. >>>>>> >>>>>> Kind regards, >>>>>> Andreas, BaseX Team >>>>>> >>>>>> Daniel .Petersen schrieb: >>>>>> >>>>>> >>>>>> >>>>>>> Hay again >>>>>>> >>>>>>> tried to do everything over once more and now I get another error >>>>>>> message >>>>>>> >>>>>>> "Can't communicate with the server"-error >>>>>>> >>>>>>> There are no change in behavior yet, exept that. >>>>>>> >>>>>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe someone >>>>>>>> else out there has some clue? >>>>>>>> >>>>>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>>>>> <superDACAL at hotmail.com> wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> hmm... If I use the 1984 port and scan with nmap the service is >>>>>>>>> called >>>>>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>>>>> behavior is unchanged. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> BaseX-Talk mailing list >>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> BaseX-Talk mailing list >>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> _______________________________________________ >>>>>> BaseX-Talk mailing list >>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>> >>>>>> >>>>>> >>>>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >>
DP
Daniel .Petersen30 Mar 2010 14:56 #
Hay I have tried to get this thing working since you wrote, thank you for your time spent, but I have no experience with .php and servers. And I got a problem with my browser not connecting. I googled around and found out you are not able to just browse a server with you internet browser, but I where not able to find a way to enable that (it is a CentOS server). I know this is not the kind of questions this maillist is here to answer, but I think this question is so simple in complexity that I hope you will answer it. I will still google around for the answer while I wait. kind regards DWP 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>:
Quoted text · Andreas Weiler · 204 lines
> Hi Daniel, > > you have to do the following: > > 1) Configure the Example.php with your server details. You have to replace > the server name and the port in the Example.php. > 2) Upload the BaseX.php and the Example.php to an available webserver, with > php installed. > 3) Then start the BaseXServer on your server. > 4) Then open with a browser the Example.php on your webserver. Then it > should connect to the BaseXServer and run a query. > > Now the error message or the result of the query is coming up in your > browser. > > Andreas > > Daniel .Petersen schrieb: >> >> I have not used php before, so tell me if I doing it wrong, because i: >> >> 1) upload the BaseX.php to the server >> 2) install php on my pc, and check it works on the server >> 3) then i run the "php -f Example.php" command on my pc >> >> Do I need to do anything else than uplaod the BaseX.php file to the >> server? >> Do I need to start the java BaseXServer up? >> >> Because I get a "can`t communicate.."-error whenewer I do this. >> >> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >> >>> >>> You could try out to upload the PHP Version: >>> https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ >>> on a webserver and try to connect to your server with the Example.php. >>> So you could narrow the problem to server or client side. >>> Sorry for no better adivces, but we haven't encountered the problem >>> before. >>> >>> Daniel .Petersen schrieb: >>> >>>> >>>> I am not getting the "can't comunnicate.."-error more and is back at >>>> the "timeout exception" again, does that make any sense? >>>> >>>> I am quite sure the ip is correct, because I am able to scan for open >>>> ports from my pc and see the same ports are open as if i scan >>>> localhost on the server. >>>> >>>> I have unblogged java on my pc, before I started on this. >>>> >>>> And the server is CentOs and linux do not blog programs like on >>>> windows (if i remember right) and the port are open when i use nmap >>>> both on the server and from my pc. >>>> >>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>> >>>> >>>>> >>>>> So i guess it's a security problem. >>>>> I just checked it by myself on a remote server and i didnt get any >>>>> problem. >>>>> So i just can give your following advices: >>>>> Please make sure Java is not blocked from the firewalls on both >>>>> machines >>>>> and >>>>> check if the port is open and the hostname or hostip is the right one. >>>>> >>>>> Daniel .Petersen schrieb: >>>>> >>>>> >>>>>> >>>>>> I am able to connect to the server locally using the commands you >>>>>> posted. >>>>>> >>>>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Hi Daniel, >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> "bigBrother" now instead of "asf3-fileserver" >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> i just checked it with nmap on my machine, and it says exactly the >>>>>>> same >>>>>>> as >>>>>>> yours. (with BaseX Server running and without) >>>>>>> So dont give a lot on these results. >>>>>>> >>>>>>> If you can connect local to the BaseXServer with just specify the >>>>>>> port >>>>>>> like: >>>>>>> >>>>>>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>>>>>> >>>>>>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>>>>>> >>>>>>> and not remote like: >>>>>>> >>>>>>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>>>>>> >>>>>>> Then your server is wrongly configured, please check that first. >>>>>>> >>>>>>> Kind regards, >>>>>>> Andreas, BaseX Team >>>>>>> >>>>>>> Daniel .Petersen schrieb: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> Hay again >>>>>>>> >>>>>>>> tried to do everything over once more and now I get another error >>>>>>>> message >>>>>>>> >>>>>>>> "Can't communicate with the server"-error >>>>>>>> >>>>>>>> There are no change in behavior yet, exept that. >>>>>>>> >>>>>>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe >>>>>>>>> someone >>>>>>>>> else out there has some clue? >>>>>>>>> >>>>>>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>>>>>> <superDACAL at hotmail.com> wrote: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> hmm... If I use the 1984 port and scan with nmap the service is >>>>>>>>>> called >>>>>>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>>>>>> behavior is unchanged. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> BaseX-Talk mailing list >>>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> BaseX-Talk mailing list >>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> BaseX-Talk mailing list >>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> _______________________________________________ >>>>> BaseX-Talk mailing list >>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>> >>>>> >>>>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
DP
Daniel .Petersen30 Mar 2010 20:45 #
Hay all found out it were a port problem, did not know that filtered did not mean open. Sorry for that, but thanks for your time spent. ~DWP 2010/3/30 Daniel .Petersen <superDACAL at hotmail.com>:
Quoted text · Daniel .Petersen · 222 lines
> Hay > > I have tried to get this thing working since you wrote, thank you for > your time spent, but I have no experience with .php and servers. And I > got a problem with my browser not connecting. I googled around and > found out you are not able to just browse a server with you internet > browser, but I where not able to find a way to enable that (it is a > CentOS server). > > I know this is not the kind of questions this maillist is here to > answer, but I think this question is so simple in complexity that I > hope you will answer it. I will still google around for the answer > while I wait. > > kind regards DWP > > 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >> Hi Daniel, >> >> you have to do the following: >> >> 1) Configure the Example.php with your server details. You have to replace >> the server name and the port in the Example.php. >> 2) Upload the BaseX.php and the Example.php to an available webserver, with >> php installed. >> 3) Then start the BaseXServer on your server. >> 4) Then open with a browser the Example.php on your webserver. Then it >> should connect to the BaseXServer and run a query. >> >> Now the error message or the result of the query is coming up in your >> browser. >> >> Andreas >> >> Daniel .Petersen schrieb: >>> >>> I have not used php before, so tell me if I doing it wrong, because i: >>> >>> 1) upload the BaseX.php to the server >>> 2) install php on my pc, and check it works on the server >>> 3) then i run the "php -f Example.php" command on my pc >>> >>> Do I need to do anything else than uplaod the BaseX.php file to the >>> server? >>> Do I need to start the java BaseXServer up? >>> >>> Because I get a "can`t communicate.."-error whenewer I do this. >>> >>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>> >>>> >>>> You could try out to upload the PHP Version: >>>> https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ >>>> on a webserver and try to connect to your server with the Example.php. >>>> So you could narrow the problem to server or client side. >>>> Sorry for no better adivces, but we haven't encountered the problem >>>> before. >>>> >>>> Daniel .Petersen schrieb: >>>> >>>>> >>>>> I am not getting the "can't comunnicate.."-error more and is back at >>>>> the "timeout exception" again, does that make any sense? >>>>> >>>>> I am quite sure the ip is correct, because I am able to scan for open >>>>> ports from my pc and see the same ports are open as if i scan >>>>> localhost on the server. >>>>> >>>>> I have unblogged java on my pc, before I started on this. >>>>> >>>>> And the server is CentOs and linux do not blog programs like on >>>>> windows (if i remember right) and the port are open when i use nmap >>>>> both on the server and from my pc. >>>>> >>>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>>> >>>>> >>>>>> >>>>>> So i guess it's a security problem. >>>>>> I just checked it by myself on a remote server and i didnt get any >>>>>> problem. >>>>>> So i just can give your following advices: >>>>>> Please make sure Java is not blocked from the firewalls on both >>>>>> machines >>>>>> and >>>>>> check if the port is open and the hostname or hostip is the right one. >>>>>> >>>>>> Daniel .Petersen schrieb: >>>>>> >>>>>> >>>>>>> >>>>>>> I am able to connect to the server locally using the commands you >>>>>>> posted. >>>>>>> >>>>>>> 2010/3/29 Andreas Weiler <andreas.weiler at uni-konstanz.de>: >>>>>>> >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> Hi Daniel, >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> "bigBrother" now instead of "asf3-fileserver" >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> i just checked it with nmap on my machine, and it says exactly the >>>>>>>> same >>>>>>>> as >>>>>>>> yours. (with BaseX Server running and without) >>>>>>>> So dont give a lot on these results. >>>>>>>> >>>>>>>> If you can connect local to the BaseXServer with just specify the >>>>>>>> port >>>>>>>> like: >>>>>>>> >>>>>>>> java -cp BaseX6.jar org.basex.BaseXServer -p 1984 >>>>>>>> >>>>>>>> java -cp BaseX6.jar org.basex.BaseXClient -p 1984 >>>>>>>> >>>>>>>> and not remote like: >>>>>>>> >>>>>>>> java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 >>>>>>>> >>>>>>>> Then your server is wrongly configured, please check that first. >>>>>>>> >>>>>>>> Kind regards, >>>>>>>> Andreas, BaseX Team >>>>>>>> >>>>>>>> Daniel .Petersen schrieb: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> Hay again >>>>>>>>> >>>>>>>>> tried to do everything over once more and now I get another error >>>>>>>>> message >>>>>>>>> >>>>>>>>> "Can't communicate with the server"-error >>>>>>>>> >>>>>>>>> There are no change in behavior yet, exept that. >>>>>>>>> >>>>>>>>> 2010/3/28 Christian Grün <christian.gruen at gmail.com>: >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Hm… I'm sorry I have no idea what could be the matter. Maybe >>>>>>>>>> someone >>>>>>>>>> else out there has some clue? >>>>>>>>>> >>>>>>>>>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>>>>>>>>> <superDACAL at hotmail.com> wrote: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> hmm... If I use the 1984 port and scan with nmap the service is >>>>>>>>>>> called >>>>>>>>>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>>>>>>>>> behavior is unchanged. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> _______________________________________________ >>>>>>>>>> BaseX-Talk mailing list >>>>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> BaseX-Talk mailing list >>>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> BaseX-Talk mailing list >>>>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> BaseX-Talk mailing list >>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>>>> >>>>>> >>>>>> >>>> >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >

⚡Generated with XQuery