Welcome Guest ( Log In | Register )

15 Pages V « < 10 11 12 13 14 > »   
Reply to this topicStart new topic
> Setting up a server (for retards), Help the Linux Noob!

 
post May 12 2013, 21:18
Post #221
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


CODE
root@server88-208-193-162:~# lsof | grep TCP | grep 80
sshd       804       root    3r     IPv4               9252      0t0        TCP
server88-208-193-162.live-servers.net:ssh->my IP address and stuff (ESTABLISHED)


This post has been edited by Ichy: May 12 2013, 21:18
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2013, 21:21
Post #222
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


Apologies I talked crap there for a moment... still the following will be useful:

Could you do:
CODE
lsof | grep TCP | grep <PORT>
for ports 20,21,22 and 23 ? there shall be an sshd there as well (hopefully).

This post has been edited by blue penguin: May 12 2013, 21:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2013, 21:36
Post #223
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


QUOTE
Dafuq! why ssh is running on port 80!

That was I thinking too because in Bitvise it says Port 20 is used (IMG:[invalid] style_emoticons/default/blink.gif)

20
CODE

root@server88-208-193-162:~# lsof | grep TCP | grep 20
rpc.statd  767      statd   11u     IPv6               9220      0t0        TCP
*:51763 (LISTEN)
sshd       804       root    3r     IPv4               9252      0t0        TCP
server88-208-193-162.live-servers.net:ssh->MY IP (ESTABLISHED)
named     1017       bind   20u     IPv6               9454      0t0        TCP
*:domain (LISTEN)
named     1017       bind   22u     IPv4               9461      0t0        TCP
server88-208-193-162.live-servers.net:domain (LISTEN)
named     1017       bind   23u     IPv4               9463      0t0        TCP
server88-208-193-168.live-servers.net:domain (LISTEN)


21
CODE
root@server88-208-193-162:~# lsof | grep TCP | grep 21
sshd       732       root    4u     IPv6               8121      0t0        TCP
*:ssh (LISTEN)
sshd       804       root    3r     IPv4               9252      0t0        TCP
server88-208-193-162.live-servers.net:ssh->MY IP (ESTABLISHED)
named     1017       bind   21u     IPv4               9459      0t0        TCP
localhost:domain (LISTEN)


22
CODE
root@server88-208-193-162:~# lsof | grep TCP | grep 22
rpc.statd  767      statd   11u     IPv6               9220      0t0        TCP
*:51763 (LISTEN)
named     1017       bind   22u     IPv4               9461      0t0        TCP
server88-208-193-162.live-servers.net:domain (LISTEN)


23
CODE
root@server88-208-193-162:~# lsof | grep TCP | grep 23
named     1017       bind   23u     IPv4               9463      0t0        TCP
server88-208-193-168.live-servers.net:domain (LISTEN)
master    1237       root   12u     IPv4               9823      0t0        TCP
*:smtp (LISTEN)
master    1237       root   13u     IPv6               9824      0t0        TCP
*:smtp (LISTEN)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2013, 21:44
Post #224
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE
QUOTE
Dafuq! why ssh is running on port 80!


That was I thinking too because in Bitvise it says Port 20 is used


Apologies, that was just me being stupid and panicing.

We could go into ports as services definitions, which is probably what's going on but most likely it will be a lot if work for nothing. Instead let's try some luck, try this perl (I just edited the IP and port):
CODE
perl -e 'use strict; use warnings; use IO::Socket; my ($lh, $lp) = ("127.0.0.1", 80); my $sock = new IO::Socket::INET (LocalHost => $lh, LocalPort => $lp, Proto => "tcp", Listen => 1, Reuse => 1) or die "Crap, I cannot even create socket: $!"; my $asock = $sock->accept; print while <$asock>; close $asock;'
This shall (hopefully) hang, and you can test telnet from your PC.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2013, 21:49
Post #225
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Sadly
CODE
Crap, I cannot even create socket: Address already in use at -e line 1.


/edit: need to get up early tomorrow. Good night.

This post has been edited by Ichy: May 12 2013, 22:03
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2013, 22:04
Post #226
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


OK fine, let's then asssume that the is really something there.

Fire the telnet on your PC:
CODE
telnet 88.208.193.162 80
If this succeeds we have a good argument for the guys at fasthosts.

EDIT: Same here, thankfully I am one hour earlier. Good night.
I am still optimistic that we can do it.

This post has been edited by blue penguin: May 12 2013, 22:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 13 2013, 04:53
Post #227
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Did.

CODE
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                                                  <html><head>
                                                              <title>501 Method
Not Implemented</title>
                       </head><body>
                                    <h1>Method Not Implemented</h1>
                                                                   <p>a to /inde
x.html not supported.<br />
                           </p>
                               <hr>
                                   <address>Apache/2.2.22 (Ubuntu) Server at ser
ver88-208-193-162.live-servers.net Port 80</address>
                                                    </body></html>


Verbindung zu Host verloren.

C:\Users\ME>

at first nothing happened so I randomly hit a then this weird thing appeared.
Now to work me and I better buy a ring of Optimism on my way home (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 14 2013, 00:00
Post #228
GanGun



Pans Pans Pans Pans Pans
****
Group: Gold Star Club
Posts: 428
Joined: 26-July 10
Level 226 (Godslayer)


While i did read SOME posts (no worries, blue_penguin, I once used the wrong library for a compiler and wondered what happen for 40 hours, yours was.. 1 hour!) have you tried opening some other service such as an ftp or a more less common one?

Since if that fails then you can be sure there's something fishy going on with your host.

Also could you give us the output of:

ls -a /var/log

and the h@h log.

P.S: Never run java or any daemon as root ever, it spoils the root.

This post has been edited by GanGun : May 14 2013, 02:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 14 2013, 00:25
Post #229
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(GanGun @ May 13 2013, 23:00) *
While i did read SOME posts (no worries, blue_penguin, I once used the wrong library for a compiler and wondered what happen for 40 hours, yours was.. 1 hour!)

Thanks, I think (IMG:[invalid] style_emoticons/default/laugh.gif)

QUOTE
have you tried opening some other service such as an ftp or a more less common one?
I though about that, but Ichy is trying to run h@h and it must use port 80 or a 1024+ one.

I think we shall make Ichy stop the apache server that's running on port 80 (yup, there is a [88.208.193.162] web server running on your box Ichy, that's the bugger that sent you that "strange" output). He will be able to run at least 1 h@h on that port.

Then with the output from the earlier tests we can write a well argumented email to the guys at fasthosts asking to open the ports.

What do you think GanGun? I believe it's a good solution.

Btw, Ichy could you run the following:
CODE
service apache2 stop
and that
CODE
ls -a /var/log
is a pretty good idea to run too.

This post has been edited by blue penguin: May 14 2013, 00:48
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 14 2013, 02:50
Post #230
GanGun



Pans Pans Pans Pans Pans
****
Group: Gold Star Club
Posts: 428
Joined: 26-July 10
Level 226 (Godslayer)


QUOTE(blue penguin @ May 14 2013, 00:25) *

Thanks, I think (IMG:[invalid] style_emoticons/default/laugh.gif)

I though about that, but Ichy is trying to run h@h and it must use port 80 or a 1024+ one.

I think we shall make Ichy stop the apache server that's running on port 80 (yup, there is a [88.208.193.162] web server running on your box Ichy, that's the bugger that sent you that "strange" output). He will be able to run at least 1 h@h on that port.

Then with the output from the earlier tests we can write a well argumented email to the guys at fasthosts asking to open the ports.

What do you think GanGun? I believe it's a good solution.

Btw, Ichy could you run the following:
CODE
service apache2 stop
and that
CODE
ls -a /var/log
is a pretty good idea to run too.


Oh yes... We will make Ichy stop the server alright..
..After Itchy moans, screams and begs to stop!

Unless Itchy brought up that http server (not recommended to be honest..) or else I would give the following advice:
Move to another seedbox provider.

Anyhow it will solve it (hopefully) temporary for like you said 1 port for presumably a very short time (since the host most likely has some kind of anti-h@h-traffic system) and it will then be enough evidence to support that they are evil, cold heart bastards.

But before that we must rule out any error from the userland side.

This post has been edited by GanGun : May 14 2013, 02:51
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 14 2013, 15:21
Post #231
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


CODE
* Stopping web server apache2
... waiting                                                              [ OK ]

Wahtever was running should have stopped now.

and here is var/log
CODE
root@server88-208-193-162:~# ls -a /var/log
.                      dist-upgrade    lastlog         mysql.log.6.gz
..                     dmesg           mail.err        mysql.log.7.gz
alternatives.log       dmesg.0         mail.err.1      news
alternatives.log.1     dmesg.1.gz      mail.err.2.gz   ntpstats
alternatives.log.2.gz  dmesg.2.gz      mail.err.3.gz   pure-ftpd
apache2                dmesg.3.gz      mail.err.4.gz   syslog
apt                    dmesg.4.gz      mail.log        syslog.1
aptitude               dpkg.log        mail.log.1      syslog.2.gz
aptitude.1.gz          dpkg.log.1      mail.log.2.gz   syslog.3.gz
auth.log               dpkg.log.2.gz   mail.log.3.gz   syslog.4.gz
auth.log.1             faillog         mail.log.4.gz   syslog.5.gz
auth.log.2.gz          fontconfig.log  mysql           syslog.6.gz
auth.log.3.gz          fsck            mysql.err       syslog.7.gz
auth.log.4.gz          installer       mysql.log       sysstat
boot                   kern.log        mysql.log.1.gz  udev
boot.log               kern.log.1      mysql.log.2.gz  ufw.log
btmp                   kern.log.2.gz   mysql.log.3.gz  upstart
btmp.1                 kern.log.3.gz   mysql.log.4.gz  wtmp
ConsoleKit             kern.log.4.gz   mysql.log.5.gz  wtmp.1


here the full error thing of my server. Just the usual error thingie.
CODE
2013-05-14T12:05:25Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:05:46Z [info] /clientapi.php?clientbuild=69&act=client_start&add=&
cid=7895&acttime=1368536617&actkey=75f9af5bad3fc2eb645064703e1aa09580ae8ffe: Ret
rieving 619 bytes...
2013-05-14T12:05:46Z [info]
2013-05-14T12:05:46Z [info] ****************************************************
********************************************************************************
2013-05-14T12:05:46Z [info] The client has failed the external connection test.
2013-05-14T12:05:46Z [info] The server failed to verify that this client is onli
ne and available from the Internet.
2013-05-14T12:05:46Z [info] If you are behind a firewall, please check that port
15533 is forwarded to this computer.
2013-05-14T12:05:46Z [info] You might also want to check that ::ffff:88.208.193.
162 is your actual public IP address.
2013-05-14T12:05:46Z [info] If you need assistance with forwarding a port to thi
s client, locate a guide for your particular router at http://portforward.com/
2013-05-14T12:05:46Z [info] The client will remain running so you can run port c
onnection tests.
2013-05-14T12:05:46Z [info] Use Program -> Exit in windowed mode or hit Ctrl+C i
n console mode to exit the program.
2013-05-14T12:05:46Z [info] ****************************************************
********************************************************************************
2013-05-14T12:05:46Z [info]
2013-05-14T12:05:46Z [info] Startup notification failed.


Also I tried to change the h@hs port to 80 and tried just because and guess what. Something is still running so h@h shut itself down (IMG:[invalid] style_emoticons/default/faint.gif)

sooo I did lsof | grep TCP | grep 80
nothing happened so I tried that perl and telnet. This time it worked so I was able able to write in the windows command thingie and it showed up on the server.

But still h@H says something else is running (IMG:[invalid] style_emoticons/default/dry.gif)
CODE
root@server88-208-193-162:/h/h1# sudo -u h1 java -jar HentaiAtHome.jar --disable
_logging
2013-05-14T12:22:28Z [info] Started logging to data/log_out
2013-05-14T12:22:28Z [info] Started logging to data/log_err
2013-05-14T12:22:28Z [info] Hentai@Home 1.0.10 starting up
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] Copyright (c) 2008-2012, E-Hentai.org - all rights r
eserved.
2013-05-14T12:22:28Z [info] This software comes with ABSOLUTELY NO WARRANTY. Thi
s is free software, and you are welcome to modify and redistribute it under the
GPL v3 license.
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] No more logs will be written to disk.
2013-05-14T12:22:28Z [info] Loaded login settings from client_login
2013-05-14T12:22:28Z [info] Connecting to the Hentai@Home Server to register cli
ent with ID 7895...
2013-05-14T12:22:28Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:22:28Z [info] /clientapi.php?clientbuild=69&act=server_stat: Retri
eving 66 bytes...
2013-05-14T12:22:28Z [info] Reading Hentai@Home client settings from server...
2013-05-14T12:22:28Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:22:28Z [info] /clientapi.php?clientbuild=69&act=client_login&add=&
cid=7895&acttime=1368537639&actkey=f14dc320632893ee0bd96a164c3bd754c55a2c83: Ret
rieving 276 bytes...
2013-05-14T12:22:28Z [info] Applying settings...
2013-05-14T12:22:28Z [WARN] Failed parsing setting throttle_bytes = 4294967295
2013-05-14T12:22:28Z [info] Finished applying settings
2013-05-14T12:22:28Z [info] CacheHandler: Initializing database engine...
2013-05-14T12:22:28Z [info] CacheHandler: Database file data/hath.db backed up a
s data/hath.db.bak-temp
2013-05-14T12:22:28Z [info] CacheHandler: Loading database from data/hath.db
2013-05-14T12:22:28Z [info] CacheHandler: Using SQLite 3.7.2 over SQLiteJDBC 2.1
running in native mode
2013-05-14T12:22:28Z [info] CacheHandler: Initializing database tables...
2013-05-14T12:22:28Z [info] CacheHandler: Optimizing database...
2013-05-14T12:22:28Z [info] Last shutdown was clean - using fast startup procedu
re.
2013-05-14T12:22:28Z [info] CacheHandler: Rotating database backups
2013-05-14T12:22:28Z [info] CacheHandler: Database initialized
2013-05-14T12:22:28Z [info] CacheHandler: Initializing the cache system...
2013-05-14T12:22:28Z [info] Starting up the internal HTTP Server...
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)} java.net.BindException: Permission denied
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.PlainSocketImpl.socketBind(Native Method)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSo
cketImpl.java:376)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.bind(ServerSocket.java:376)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.<init>(ServerSocket.java:237)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.<init>(ServerSocket.java:128)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at org.hath.base.HTTPServer.startConnectionListener(HTTP
Server.java:65)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at org.hath.base.HentaiAtHomeClient.run(HentaiAtHomeClie
nt.java:126)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.lang.Thread.run(Thread.java:722)
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] ****************************************************
********************************************************************************
2013-05-14T12:22:28Z [info] Could not start the internal HTTP server.
2013-05-14T12:22:28Z [info] This is most likely caused by something else running
on the port H@H is trying to use.
2013-05-14T12:22:28Z [info] In order to fix this, either shut down whatever else
is using the port, or assign a different port to H@H.
2013-05-14T12:22:28Z [info] ****************************************************
********************************************************************************
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [ERROR] {org.hath.base.HentaiAtHomeClient.dieWithError(Hent
aiAtHomeClient.java:271)} Critical Error: Failed to initialize HTTPServer
2013-05-14T12:22:28Z [info] Shutting down...
2013-05-14T12:22:28Z [info]                              .,---.
2013-05-14T12:22:28Z [info]                            ,/XM#MMMX;,
2013-05-14T12:22:28Z [info]                          -%##########M%,
2013-05-14T12:22:28Z [info]                         -@######%  $###@=
2013-05-14T12:22:28Z [info]          .,--,         -H#######$   $###M:
2013-05-14T12:22:28Z [info]       ,;$M###MMX;     .;##########$;HM###X=
2013-05-14T12:22:28Z [info]     ,/@##########H=;################+
2013-05-14T12:22:28Z [info]    -+#############M/,      %##############+
2013-05-14T12:22:28Z [info]    %M###############=      /##############:
2013-05-14T12:22:28Z [info]    H################      .M#############;.
2013-05-14T12:22:28Z [info]    @###############M      ,@###########M:.
2013-05-14T12:22:28Z [info]    X################,      -$=X#######@:
2013-05-14T12:22:28Z [info]    /@##################%-     +######$-
2013-05-14T12:22:28Z [info]    .;##################X     .X#####+,
2013-05-14T12:22:28Z [info]     .;H################/     -X####+.
2013-05-14T12:22:28Z [info]       ,;X##############,       .MM/
2013-05-14T12:22:28Z [info]          ,:+$H@M#######M#$-    .$$=
2013-05-14T12:22:28Z [info]               .,-=;+$@###X: ;/=.
2013-05-14T12:22:28Z [info]                      .,/X$;   .::,
2013-05-14T12:22:28Z [info]                          .,    ..
root@server88-208-193-162:/h/h1#


You guys thing I should restart from scratch?

This post has been edited by Ichy: May 14 2013, 15:33
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 15 2013, 01:40
Post #232
GanGun



Pans Pans Pans Pans Pans
****
Group: Gold Star Club
Posts: 428
Joined: 26-July 10
Level 226 (Godslayer)


QUOTE(Ichy @ May 14 2013, 15:21) *

CODE
* Stopping web server apache2
... waiting                                                              [ OK ]

Wahtever was running should have stopped now.


Use pkill -9 apache2 to be sure.
QUOTE(Ichy @ May 14 2013, 15:21) *

and here is var/log
CODE
root@server88-208-193-162:~# ls -a /var/log
.                      dist-upgrade    lastlog         mysql.log.6.gz
..                     dmesg           mail.err        mysql.log.7.gz
alternatives.log       dmesg.0         mail.err.1      news
alternatives.log.1     dmesg.1.gz      mail.err.2.gz   ntpstats
alternatives.log.2.gz  dmesg.2.gz      mail.err.3.gz   pure-ftpd
apache2                dmesg.3.gz      mail.err.4.gz   syslog
apt                    dmesg.4.gz      mail.log        syslog.1
aptitude               dpkg.log        mail.log.1      syslog.2.gz
aptitude.1.gz          dpkg.log.1      mail.log.2.gz   syslog.3.gz
auth.log               dpkg.log.2.gz   mail.log.3.gz   syslog.4.gz
auth.log.1             faillog         mail.log.4.gz   syslog.5.gz
auth.log.2.gz          fontconfig.log  mysql           syslog.6.gz
auth.log.3.gz          fsck            mysql.err       syslog.7.gz
auth.log.4.gz          installer       mysql.log       sysstat
boot                   kern.log        mysql.log.1.gz  udev
boot.log               kern.log.1      mysql.log.2.gz  ufw.log
btmp                   kern.log.2.gz   mysql.log.3.gz  upstart
btmp.1                 kern.log.3.gz   mysql.log.4.gz  wtmp
ConsoleKit             kern.log.4.gz   mysql.log.5.gz  wtmp.1



Have you used:
mysql
mail

and could you give us what faillog says and dmesg.

QUOTE(Ichy @ May 14 2013, 15:21) *

here the full error thing of my server. Just the usual error thingie.
CODE
2013-05-14T12:05:25Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:05:46Z [info] /clientapi.php?clientbuild=69&act=client_start&add=&
cid=7895&acttime=1368536617&actkey=75f9af5bad3fc2eb645064703e1aa09580ae8ffe: Ret
rieving 619 bytes...
2013-05-14T12:05:46Z [info]
2013-05-14T12:05:46Z [info] ****************************************************
********************************************************************************
2013-05-14T12:05:46Z [info] The client has failed the external connection test.
2013-05-14T12:05:46Z [info] The server failed to verify that this client is onli
ne and available from the Internet.
2013-05-14T12:05:46Z [info] If you are behind a firewall, please check that port
15533 is forwarded to this computer.
2013-05-14T12:05:46Z [info] You might also want to check that ::ffff:88.208.193.
162 is your actual public IP address.
2013-05-14T12:05:46Z [info] If you need assistance with forwarding a port to thi
s client, locate a guide for your particular router at http://portforward.com/
2013-05-14T12:05:46Z [info] The client will remain running so you can run port c
onnection tests.
2013-05-14T12:05:46Z [info] Use Program -> Exit in windowed mode or hit Ctrl+C i
n console mode to exit the program.
2013-05-14T12:05:46Z [info] ****************************************************
********************************************************************************
2013-05-14T12:05:46Z [info]
2013-05-14T12:05:46Z [info] Startup notification failed.


Also I tried to change the h@hs port to 80 and tried just because and guess what. Something is still running so h@h shut itself down (IMG:[invalid] style_emoticons/default/faint.gif)

sooo I did lsof | grep TCP | grep 80
nothing happened so I tried that perl and telnet. This time it worked so I was able able to write in the windows command thingie and it showed up on the server.



Try this as root:

netstat -vatupl

and show us the result.

QUOTE(Ichy @ May 14 2013, 15:21) *

But still h@H says something else is running (IMG:[invalid] style_emoticons/default/dry.gif)
CODE
root@server88-208-193-162:/h/h1# sudo -u h1 java -jar HentaiAtHome.jar --disable
_logging
2013-05-14T12:22:28Z [info] Started logging to data/log_out
2013-05-14T12:22:28Z [info] Started logging to data/log_err
2013-05-14T12:22:28Z [info] Hentai@Home 1.0.10 starting up
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] Copyright (c) 2008-2012, E-Hentai.org - all rights r
eserved.
2013-05-14T12:22:28Z [info] This software comes with ABSOLUTELY NO WARRANTY. Thi
s is free software, and you are welcome to modify and redistribute it under the
GPL v3 license.
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] No more logs will be written to disk.
2013-05-14T12:22:28Z [info] Loaded login settings from client_login
2013-05-14T12:22:28Z [info] Connecting to the Hentai@Home Server to register cli
ent with ID 7895...
2013-05-14T12:22:28Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:22:28Z [info] /clientapi.php?clientbuild=69&act=server_stat: Retri
eving 66 bytes...
2013-05-14T12:22:28Z [info] Reading Hentai@Home client settings from server...
2013-05-14T12:22:28Z [info] Connecting to rpc.hentaiathome.net...
2013-05-14T12:22:28Z [info] /clientapi.php?clientbuild=69&act=client_login&add=&
cid=7895&acttime=1368537639&actkey=f14dc320632893ee0bd96a164c3bd754c55a2c83: Ret
rieving 276 bytes...
2013-05-14T12:22:28Z [info] Applying settings...
2013-05-14T12:22:28Z [WARN] Failed parsing setting throttle_bytes = 4294967295
2013-05-14T12:22:28Z [info] Finished applying settings
2013-05-14T12:22:28Z [info] CacheHandler: Initializing database engine...
2013-05-14T12:22:28Z [info] CacheHandler: Database file data/hath.db backed up a
s data/hath.db.bak-temp
2013-05-14T12:22:28Z [info] CacheHandler: Loading database from data/hath.db
2013-05-14T12:22:28Z [info] CacheHandler: Using SQLite 3.7.2 over SQLiteJDBC 2.1
running in native mode
2013-05-14T12:22:28Z [info] CacheHandler: Initializing database tables...
2013-05-14T12:22:28Z [info] CacheHandler: Optimizing database...
2013-05-14T12:22:28Z [info] Last shutdown was clean - using fast startup procedu
re.
2013-05-14T12:22:28Z [info] CacheHandler: Rotating database backups
2013-05-14T12:22:28Z [info] CacheHandler: Database initialized
2013-05-14T12:22:28Z [info] CacheHandler: Initializing the cache system...
2013-05-14T12:22:28Z [info] Starting up the internal HTTP Server...
[code][b]2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)} java.net.BindException: Permission denied
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.PlainSocketImpl.socketBind(Native Method)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSo
cketImpl.java:376)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.bind(ServerSocket.java:376)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.<init>(ServerSocket.java:237)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.net.ServerSocket.<init>(ServerSocket.java:128)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at org.hath.base.HTTPServer.startConnectionListener(HTTP
Server.java:65)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at org.hath.base.HentaiAtHomeClient.run(HentaiAtHomeClie
nt.java:126)
2013-05-14T12:22:28Z [ERR] {java.lang.Throwable$WrappedPrintStream.println(Throw
able.java:747)}         at java.lang.Thread.run(Thread.java:722)[/b]


If I'm not mistaken it's complaining about permission (give us a ls -la of your H@H folder).

QUOTE(Ichy @ May 14 2013, 15:21) *

CODE
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [info] ****************************************************
********************************************************************************
2013-05-14T12:22:28Z [info] Could not start the internal HTTP server.
2013-05-14T12:22:28Z [info] This is most likely caused by something else running
on the port H@H is trying to use.
2013-05-14T12:22:28Z [info] In order to fix this, either shut down whatever else
is using the port, or assign a different port to H@H.
2013-05-14T12:22:28Z [info] ****************************************************
********************************************************************************
2013-05-14T12:22:28Z [info]
2013-05-14T12:22:28Z [ERROR] {org.hath.base.HentaiAtHomeClient.dieWithError(Hent
aiAtHomeClient.java:271)} Critical Error: Failed to initialize HTTPServer
2013-05-14T12:22:28Z [info] Shutting down...
2013-05-14T12:22:28Z [info]                              .,---.
2013-05-14T12:22:28Z [info]                            ,/XM#MMMX;,
2013-05-14T12:22:28Z [info]                          -%##########M%,
2013-05-14T12:22:28Z [info]                         -@######%  $###@=
2013-05-14T12:22:28Z [info]          .,--,         -H#######$   $###M:
2013-05-14T12:22:28Z [info]       ,;$M###MMX;     .;##########$;HM###X=
2013-05-14T12:22:28Z [info]     ,/@##########H=;################+
2013-05-14T12:22:28Z [info]    -+#############M/,      %##############+
2013-05-14T12:22:28Z [info]    %M###############=      /##############:
2013-05-14T12:22:28Z [info]    H################      .M#############;.
2013-05-14T12:22:28Z [info]    @###############M      ,@###########M:.
2013-05-14T12:22:28Z [info]    X################,      -$=X#######@:
2013-05-14T12:22:28Z [info]    /@##################%-     +######$-
2013-05-14T12:22:28Z [info]    .;##################X     .X#####+,
2013-05-14T12:22:28Z [info]     .;H################/     -X####+.
2013-05-14T12:22:28Z [info]       ,;X##############,       .MM/
2013-05-14T12:22:28Z [info]          ,:+$H@M#######M#$-    .$$=
2013-05-14T12:22:28Z [info]               .,-=;+$@###X:;/=.
2013-05-14T12:22:28Z [info]                      .,/X$;   .::,
2013-05-14T12:22:28Z [info]                          .,    ..
root@server88-208-193-162:/h/h1#



Did that error message come up when you tried port 80 or when you killed apache2?

QUOTE(Ichy @ May 14 2013, 15:21) *

You guys thing I should restart from scratch?

Nah.
Part of being a sysadmin is that you never start from scratch.

This post has been edited by GanGun : May 15 2013, 01:43
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 15 2013, 04:17
Post #233
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


Ichy, are you sure you are the only person using the seedbox? Or maybe you rebooted it one more time?

When stopped using the "service apache2 stop" command the apache server do not tend to come back by itself. Your box is running the apache server again, you can actually point your browser to that apache server [88.208.193.162] here (IMG:[invalid] style_emoticons/default/smile.gif). Nevertheless, what GanGun is saying will be very useful, it will tell us more about what is happening on the box.

Another idea, although very violent, to effectively prevent the apache server from booting by itself again would be to do:
CODE
service apache2 stop && mv /etc/init.d/apache2 /etc/init.d/fuckoff.apache2
This harshly, but effectively, frees the port 80 allowing you to run at least 1 h@h (unfortunatlly, to run h@h on port 80 it must be started as root).

One way or another, you shall email the guys at fasthosts that after the new disk was added to the seedbox the ports that were open to the internet are now closed. Adding the fact that the perl and telnet did work on port 80 to all facts we tested earlier we have proved that we are not making mistakes in testing the connectivity. I can post a skeleton email stating the facts that we tested (and how), but closer to the weekend I am having a horrible week right now...

And yeah,
QUOTE
Nah.
Part of being a sysadmin is that you never start from scratch.
And also the cooler part is how many unix command line commands you learned in the process.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 15 2013, 15:30
Post #234
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


CODE
Use pkill -9 apache2 to be sure.

done.

QUOTE
Have you used:
mysql
mail

and could you give us what faillog says and dmesg.

Nope I only run h@h there.

netstat -vatupl shows:
CODE

root@server88-208-193-162:~# netstat -vatupl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
PID/Program name
tcp        0      0 *:sunrpc                *:*                     LISTEN
564/rpcbind
tcp        0      0 *:35952                 *:*                     LISTEN
767/rpc.statd
tcp        0      0 *:ftp                   *:*                     LISTEN
1259/pure-ftpd (SER
tcp        0      0 newfell.co.uk:domain    *:*                     LISTEN
1017/named
tcp        0      0 server88-208-193:domain *:*                     LISTEN
1017/named
tcp        0      0 server88-208-193:domain *:*                     LISTEN
1017/named
tcp        0      0 localhost:domain        *:*                     LISTEN
1017/named
tcp        0      0 *:ssh                   *:*                     LISTEN
732/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN
1237/master
tcp        0      0 localhost:953           *:*                     LISTEN
1017/named
tcp        0      0 *:mysql                 *:*                     LISTEN
1016/mysqld
tcp        0    IP ESTABLISHED
25339/2
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN
1128/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN
1106/couriertcpd
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN
564/rpcbind
tcp6       0      0 [::]:51763              [::]:*                  LISTEN
767/rpc.statd
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN
1259/pure-ftpd (SER
tcp6       0      0 [::]:domain             [::]:*                  LISTEN
1017/named
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
732/sshd
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN
1237/master
tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN
1017/named
udp        0      0 *:sunrpc                *:*
564/rpcbind
udp        0      0 newfell.co.uk:ntp       *:*
800/ntpd
udp        0      0 server88-208-193-16:ntp *:*
800/ntpd
udp        0      0 server88-208-193-16:ntp *:*
800/ntpd
udp        0      0 localhost:ntp           *:*
800/ntpd
udp        0      0 *:ntp                   *:*
800/ntpd
udp        0      0 server88-208-193-1:snmp *:*
1270/snmpd
udp        0      0 *:735                   *:*
564/rpcbind
udp        0      0 localhost:943           *:*
767/rpc.statd
udp        0      0 *:42547                 *:*
767/rpc.statd
udp        0      0 newfell.co.uk:domain    *:*
1017/named
udp        0      0 server88-208-193:domain *:*
1017/named
udp        0      0 server88-208-193:domain *:*
1017/named
udp        0      0 localhost:domain        *:*
1017/named
udp6       0      0 [::]:sunrpc             [::]:*
564/rpcbind
udp6       0      0 ip6-localhost:ntp       [::]:*
800/ntpd
udp6       0      0 fe80::219:99ff:fe80:ntp [::]:*
800/ntpd
udp6       0      0 [::]:ntp                [::]:*
800/ntpd
udp6       0      0 [::]:59990              [::]:*
767/rpc.statd
udp6       0      0 [::]:735                [::]:*
564/rpcbind
udp6       0      0 [::]:domain             [::]:*
1017/named
root@server88-208-193-162:~#


QUOTE
If I'm not mistaken it's complaining about permission (give us a ls -la of your H@H folder).

For h1
CODE
root@server88-208-193-162:/h/h1# ls -la
total 6484
drwsrwsrwt 5 root root    4096 May 12 09:00 .
drwsrwsrwt 5 root root    4096 Jan  4 18:34 ..
-rw-r--r-- 1 root root      53 Oct 31  2010 autostartgui.bat
drwxr-sr-x 2 h1   root    4096 May 12 09:00 cache
drwxr-sr-x 2 h1   root    4096 May 14 13:25 data
-rw-r--r-- 1 root root 3285011 Sep  1  2012 HentaiAtHome_1.0.10.zip
-rw-r--r-- 1 root root   24978 Sep  1  2012 HentaiAtHomeGUI.jar
-rw-r--r-- 1 root root   90183 Sep  1  2012 HentaiAtHome.jar
-rw-r--r-- 1 root root 3201128 Jan 30  2012 sqlite-jdbc-3.7.2.jar
drwxr-sr-x 2 h1   root    4096 May 12 09:00 tmp


h2
CODE
root@server88-208-193-162:/h/h2# ls -la
total 3248
drwsrwsrwt   7 root root    4096 Jan  4 19:34 .
drwsrwsrwt   5 root root    4096 Jan  4 18:34 ..
drwxr-sr-x 258 h2   root    4096 Jan  5 15:58 cache
drwxr-sr-x   2 h2   root    4096 May 12 15:57 data
drwxr-sr-x   2 h2   root    4096 Jan  4 19:34 downloaded
drwxr-sr-x   2 h2   root    4096 Jan  4 19:34 hathdl
-rwsrwsrwt   1 root root   90183 Jan  4 18:35 HentaiAtHome.jar
-rw-r--r--   1 root root 3201128 Jan 30  2012 sqlite-jdbc-3.7.2.jar
drwxr-sr-x   2 h2   root    4096 May  9 19:29 tmp


h3
CODE
root@server88-208-193-162:/h/h3# ls -la
total 3248
drwsrwsrwt   7 root root    4096 Jan  4 20:10 .
drwsrwsrwt   5 root root    4096 Jan  4 18:34 ..
drwsrwsrwt 244 root root    4096 May 10 06:56 cache
drwsrwsrwt   2 h3   root    4096 May 12 15:58 data
drwxr-sr-x   2 h3   root    4096 Jan  4 20:10 downloaded
drwxr-sr-x   2 h3   root    4096 Jan  4 20:10 hathdl
-rwsrwsrwt   1 root root   90183 Jan  4 18:35 HentaiAtHome.jar
-rwsrwsrwt   1 root root 3201128 Jan 30  2012 sqlite-jdbc-3.7.2.jar
drwsrwsrwt   2 root root    4096 May  9 19:16 tmp


QUOTE
Did that error message come up when you tried port 80 or when you killed apache2?

When I tried to start h@h after I killed apache2

QUOTE
Nah.
Part of being a sysadmin is that you never start from scratch.

Okay no restart then (IMG:[invalid] style_emoticons/default/happy.gif)

QUOTE
Ichy, are you sure you are the only person using the seedbox? Or maybe you rebooted it one more time?

It is a Dedicated Server so I should be the only one using it. And no, I did not do anything after I typed my last post.

QUOTE
Another idea, although very violent, to effectively prevent the apache server from booting by itself again would be to do:

Done this and now I was able to start one of my Clients again (IMG:[invalid] style_emoticons/default/biggrin.gif)

QUOTE
One way or another, you shall email the guys at fasthosts that after the new disk was added to the seedbox the ports that were open to the internet are now closed. Adding the fact that the perl and telnet did work on port 80 to all facts we tested earlier we have proved that we are not making mistakes in testing the connectivity. I can post a skeleton email stating the facts that we tested (and how), but closer to the weekend I am having a horrible week right now...

I will send them a Support Ticked to fucking open my Ports. Everything above 1024 I guess? If they don't believe me we may have to show proof.

And thanks a lot you 2. Im sure this will be running again very soon (IMG:[invalid] style_emoticons/default/happy.gif)

/edit. The guys at fasthost told me to use
CODE
service ufw stop
and then test again. Obviously the ports was still blocked after I tried starting it with another Port then 80.

Also i noticed the following:
sudo java -jar HentaiAtHome.jar --disable_logging
This one lets me start the first h@h Clienat.

But when I tried sudo -u h1 java -jar HentaiAtHome.jar --disable_logging to start it it told me the port was used...

Maybe something gone bonkers with my users? Back then we set it up so each user staring with his own IP. Maybe something broke here?
Or maybe not because when I try to start with sudo java -jar HentaiAtHome.jar --disable_logging when I chose another port than 80 the usual error shows up. (IMG:[invalid] style_emoticons/default/sad.gif)

This post has been edited by Ichy: May 16 2013, 04:53
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 15 2013, 23:29
Post #235
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


again, your IP Ichy (IMG:[invalid] style_emoticons/default/wink.gif) it is in the netstat -vatupl
QUOTE(Ichy @ May 15 2013, 14:30) *

CODE

tcp        0    248 server88-208-193-16:ssh *** IT IS AROUND HERE *** .st:51245 ESTABLISHED
25339/2


QUOTE
And thanks a lot you 2. Im sure this will be running again very soon (IMG:[invalid] style_emoticons/default/happy.gif)

Happy to help, and I think I speak for both of us (GanGun and me).

QUOTE
The guys at fasthost told me to use
CODE
service ufw stop
and then test again. Obviously the ports was still blocked after I tried starting it with another Port then 80.

Also i noticed the following:
sudo java -jar HentaiAtHome.jar --disable_logging
This one lets me start the first h@h Clienat.

But when I tried sudo -u h1 java -jar HentaiAtHome.jar --disable_logging to start it it told me the port was used...

Maybe something gone bonkers with my users? Back then we set it up so each user staring with his own IP. Maybe something broke here?
Or maybe not because when I try to start with sudo java -jar HentaiAtHome.jar --disable_logging when I chose another port than 80 the usual error shows up. (IMG:[invalid] style_emoticons/default/sad.gif)

The idea is the following: there's a reason why the original operating system was called UNIX. It means unique user, i.e. there's one user on the system that have more power than all the other users together. That user is root, is you run something as root it is not bound by any limitation imposed by any other user of the system.

The ports from 1 to 1024 (i.e. port 80 is in there) are exclusive to use by the user root. Therefore when you are running: sudo -u h1 java -jar HentaiAtHome.jar --disable_logging, the user h1 asks for a port that only root can use and gets a reject. The error itself is "Permission denied". As currently we have only port 80 to run h@h on it will must run as root. Reminder to GanGun and myself: h@h is running as root! After we fix all this we need to run chown -R h1:h1 on all h@h files to ensure that user h1 can still write to them.

That "service ufw stop" thing you got from the support guys actually makes some sense, that's the firewall. Why there would be a firewall on a seedbox? That's a completely different question and a very hard one to answer.

Also, the apache server is running again! This time it is not working 100%, that pkill -9 must have been a hard hit, but apache is once again there on port 80. Something is restarting it.

The outputs from the netstat are very interesting. Before we email the support again let's try to properly wrack apache and ufw (the firewall), run either:
CODE
update-rc.d -f apache2 remove
update-rc.d -f ufw remove
or
CODE
chkconfig --del apache2
chkconfig --del ufw
(one of them will fail, ubuntu is using one or the other as the manager for services depending on the release)

Then:
CODE
mv /etc/init.d/apache2 /etc/init.d/no.apache2
mv /etc/init.d/ufw /etc/init.d/no.ufw


Finally, reboot the box and test if you can use port 80, and then if you can use some random port above 1024.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 16 2013, 02:00
Post #236
GanGun



Pans Pans Pans Pans Pans
****
Group: Gold Star Club
Posts: 428
Joined: 26-July 10
Level 226 (Godslayer)


QUOTE(Ichy @ May 15 2013, 15:30) *

CODE
Use pkill -9 apache2 to be sure.

done.
Nope I only run h@h there.


Alright, could you try and use top while in root and to confirm apache is gone?

QUOTE(Ichy @ May 15 2013, 15:30) *


netstat -vatupl shows:
CODE
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN





This worries me, you do have ftp access to the server?

QUOTE(Ichy @ May 15 2013, 15:30) *


For h1
CODE
root@server88-208-193-162:/h/h1# ls -la
total 6484
drwsrwsrwt 5 root root    4096 May 12 09:00 .
drwsrwsrwt 5 root root    4096 Jan  4 18:34 ..
-rw-r--r-- 1 root root      53 Oct 31  2010 autostartgui.bat
drwxr-sr-x 2 h1   root    4096 May 12 09:00 cache
drwxr-sr-x 2 h1   root    4096 May 14 13:25 data
-rw-r--r-- 1 root root 3285011 Sep  1  2012 HentaiAtHome_1.0.10.zip
-rw-r--r-- 1 root root   24978 Sep  1  2012 HentaiAtHomeGUI.jar
-rw-r--r-- 1 root root   90183 Sep  1  2012 HentaiAtHome.jar
-rw-r--r-- 1 root root 3201128 Jan 30  2012 sqlite-jdbc-3.7.2.jar
drwxr-sr-x 2 h1   root    4096 May 12 09:00 tmp



Save this on your computer (edit the variables if unnecessary):
CODE

#!/bin/bash


folder=h

for i in {1..3..1} #Only if you have bash 4.0, if you don't have it, put a # sign on the for loop and delete the other # sign with the for loop.
#for i in 1 2 3
do
    chown $folder$i $folder$i
done

and do chmod 775 on the saved file.

example:
if it's /usr/home/ the h@h folders are in, then you just put it in:
/usr/home/ and execute it from there (of course remove it after you're done):
./saved_filename

QUOTE(Ichy @ May 15 2013, 15:30) *

When I tried to start h@h after I killed apache2

Makes sense since the port was in use, so that's a good thing if it doesn't pop up anymore.

QUOTE(Ichy @ May 15 2013, 15:30) *

Okay no restart then (IMG:[invalid] style_emoticons/default/happy.gif)

That's the spirit!

QUOTE(Ichy @ May 15 2013, 15:30) *

It is a Dedicated Server so I should be the only one using it. And no, I did not do anything after I typed my last post.
Done this and now I was able to start one of my Clients again (IMG:[invalid] style_emoticons/default/biggrin.gif)
I will send them a Support Ticked to fucking open my Ports. Everything above 1024 I guess? If they don't believe me we may have to show proof.

Before you do that, could you check with them so that there hasn't been any foreign IP logging in.

QUOTE(Ichy @ May 15 2013, 15:30) *

And thanks a lot you 2. Im sure this will be running again very soon (IMG:[invalid] style_emoticons/default/happy.gif)

No problem, I like doing this kind of stuff anyway (sometimes at least).

QUOTE(Ichy @ May 15 2013, 15:30) *

/edit. The guys at fasthost told me to use
CODE
service ufw stop
and then test again. Obviously the ports was still blocked after I tried starting it with another Port then 80.

Also i noticed the following:
sudo java -jar HentaiAtHome.jar --disable_logging
This one lets me start the first h@h Clienat.

But when I tried sudo -u h1 java -jar HentaiAtHome.jar --disable_logging to start it it told me the port was used...

Maybe something gone bonkers with my users? Back then we set it up so each user staring with his own IP. Maybe something broke here?
Or maybe not because when I try to start with sudo java -jar HentaiAtHome.jar --disable_logging when I chose another port than 80 the usual error shows up. (IMG:[invalid] style_emoticons/default/sad.gif)


If I understood it correctly the correct setup regarding IP address should be:

H@H client 1 -> 1 unique IP
H@H client 2 -> 1 unique IP
H@H client 3 -> 1 unique IP

Could you try with su:
su username -c "/bin/java/ -jar /custom/path/here/" and see if the error still occur.

There's one way to diagnose and get proof if your host is blocking ports, I think..
But that until later.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 16 2013, 17:09
Post #237
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Tomorrow I will get my Book!

QUOTE
again, your IP Ichy

Thanks, edited out again.

QUOTE
The ports from 1 to 1024 (i.e. port 80 is in there) are exclusive to use by the user root. Therefore when you are running: sudo -u h1 java -jar HentaiAtHome.jar --disable_logging, the user h1 asks for a port that only root can use and gets a reject. The error itself is "Permission denied". As currently we have only port 80 to run h@h on it will must run as root.

And learned something new again (IMG:[invalid] style_emoticons/default/happy.gif)

QUOTE
That "service ufw stop" thing you got from the support guys actually makes some sense, that's the firewall. Why there would be a firewall on a seedbox? That's a completely different question and a very hard one to answer.

Since I did not have installed it I guess this one is pre installed on all their Servers I guess.

QUOTE
Also, the apache server is running again! This time it is not working 100%, that pkill -9 must have been a hard hit, but apache is once again there on port 80. Something is restarting it.

What? Again But I did not reboot or something! (IMG:[invalid] style_emoticons/default/faint.gif)

QUOTE
update-rc.d -f apache2 remove
update-rc.d -f ufw remove

this 2 did something while the other one complained about this thingie was not installed.

QUOTE
mv /etc/init.d/apache2 /etc/init.d/no.apache2
mv /etc/init.d/ufw /etc/init.d/no.ufw

said no such directory!

After Reboot the first client worked (Port 80) while the other did not. BUUUUT I noticed something!
sudo -u h2 java -jar HentaiAtHome.jar --disable_logging is using the Ip of the first Client while it was supposed to use my Second IP! (and did so before!)
same with the 3rd h@h.
Strange because i used this line to start Client 2 and the same just with h3 to use the third!
Now I need to find where I can check and fix this!

On a bright note: IT WORKS with a higher port Number! (IMG:[invalid] style_emoticons/default/biggrin.gif)
Sooo it was that Apache or the Firewall broke at some point? (or the guys at fasthost did someth

QUOTE
Alright, could you try and use top while in root and to confirm apache is gone?

Gone I think.

QUOTE
This worries me, you do have ftp access to the server?

Yep. Bitvise SFTP is working fine.

QUOTE
Save this on your computer (edit the variables if unnecessary):

Safe it as a txt document?

QUOTE
Before you do that, could you check with them so that there hasn't been any foreign IP logging in.

Sure i will ask them.

QUOTE
If I understood it correctly the correct setup regarding IP address should be:

H@H client 1 -> 1 unique IP
H@H client 2 -> 1 unique IP
H@H client 3 -> 1 unique IP

yep.

QUOTE
Could you try with su:
su username -c "/bin/java/ -jar /custom/path/here/" and see if the error still occur.

custom path meant path to my h@H folder? cause it hasnot worked. I even had to hit ctrl + c to get my command line back.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2013, 00:46
Post #238
GanGun



Pans Pans Pans Pans Pans
****
Group: Gold Star Club
Posts: 428
Joined: 26-July 10
Level 226 (Godslayer)


QUOTE(Ichy @ May 16 2013, 17:09) *

After Reboot the first client worked (Port 80) while the other did not. BUUUUT I noticed something!
sudo -u h2 java -jar HentaiAtHome.jar --disable_logging is using the Ip of the first Client while it was supposed to use my Second IP! (and did so before!)
same with the 3rd h@h.

On a bright note: IT WORKS with a higher port Number! (IMG:[invalid] style_emoticons/default/biggrin.gif)
Sooo it was that Apache or the Firewall broke at some point? (or the guys at fasthost did someth


Strange, it might be some error in a config file or the routing.

QUOTE(Ichy @ May 16 2013, 17:09) *

Gone I think.

...
write top
while in root.
Also post faillog and dmesg in /var/log for us.

QUOTE(Ichy @ May 16 2013, 17:09) *

Yep. Bitvise SFTP is working fine.

That's weird considering you got a pure-ftpd running which is either FTPS or FTP.

QUOTE(Ichy @ May 16 2013, 17:09) *

Safe it as a txt document?

whatever name you like, on unix filenames isn't as pesky as Windows but instead goes after what data is inside the file.
Sure i will ask them.
yep.
QUOTE(Ichy @ May 16 2013, 17:09) *

custom path meant path to my h@H folder? cause it hasnot worked. I even had to hit ctrl + c to get my command line back.

Yes.
What comes up?
I did forgot now when I look at it to add -m flag, so the command is:

CODE
su -m username -c "/bin/java -jar /blabla/"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2013, 04:37
Post #239
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,046
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Ichy @ May 16 2013, 16:09) *
On a bright note: IT WORKS with a higher port Number! (IMG:[invalid] style_emoticons/default/biggrin.gif)
Sooo it was that Apache or the Firewall broke at some point? (or the guys at fasthost did someth

Yay.

Cool Ichy. If I am not mistaken all that remains to be fixed is the fact that now all h@h clients use the same IP, yup? (as only one client is allowed by IP)

Hopefully, it is only the matter of sudo vs. su (and that -m flag) GanGun is talking.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2013, 18:21
Post #240
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


User is offlineProfile CardPM
Go to the top of the page
+Quote Post


15 Pages V « < 10 11 12 13 14 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 29th April 2025 - 01:04