Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Mediawiki works only if I ssh on the server

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


devicerandom at gmail

Aug 1, 2012, 2:15 AM

Post #1 of 5 (493 views)
Permalink
Mediawiki works only if I ssh on the server

Hi,

I have a very odd issue with a MediaWiki 1.19 install. Since a few days
it happens that the site usually is inaccessible with the error "403
Forbidden".

However if I access the server with ssh and open a shell, the site
works. It's /enough/ to login and open the shell -no Apache restarts
etc. needed. As soon as there are no more ssh connections to the server,
the site stops working again.

Can someone point me at what it could be?

Thanks,
Massimo


--
Massimo Sandal, Ph.D.
http://devicerandom.org

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


fossa-artem at mail

Aug 1, 2012, 5:16 AM

Post #2 of 5 (454 views)
Permalink
Re: Mediawiki works only if I ssh on the server [In reply to]

Hi!

Few years ago i have similar problem (but no with MediaWiki). I used
small server, placed at my home, and connected via ISP. ISP gave public
"white" IPs, but this IP was dynamic, so i used DynDNS to update my
domain settings.

Symptoms was like your - when i connected to server with ssh (and do
nothing) - HTTP connection is going. After near 30 minutes after SSH
disconnect server stops to respond.

I found the problem and solution, in my case it was:

1) ISP give me IP through DHCP. This IP is static.
2) My computer have public IP in internet (dynamic)
3) ISP gates this it one to another.
4) <PROBLEM> When all connections with my computer closed (ssh
disconnected, no external connects), ISP gave my public IP to another
user (for white IP economy)
5) When DynDNS try to update domain info - ISP give me new public IP,
this IP goes to my domain record, but, after it, DynDNS closes
connection and IP lost.

6) To solve this behaviour i installed on my server an IRC-bot, which
seat on my irc channel and regularry post random symbols. So, connection
never closes, IP newer changes and all OK.

Maybe, you have similar problem? For the first - make sure, that "403
Forbidden" says _YOUR_ server, but no other.

01.08.2012 13:15, ms пишет:
> Hi,
>
> I have a very odd issue with a MediaWiki 1.19 install. Since a few
> days it happens that the site usually is inaccessible with the error
> "403 Forbidden".
>
> However if I access the server with ssh and open a shell, the site
> works. It's /enough/ to login and open the shell -no Apache restarts
> etc. needed. As soon as there are no more ssh connections to the
> server, the site stops working again.
>
> Can someone point me at what it could be?
>
> Thanks,
> Massimo
>
>



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


devicerandom at gmail

Aug 1, 2012, 6:14 AM

Post #3 of 5 (452 views)
Permalink
Re: Mediawiki works only if I ssh on the server [In reply to]

Hi Фосса,

Thanks for your answer but I doubt it is the problem I'm having. First
of all, it is a public server with static public IP. Second, it's only
Mediawiki that has that problem -other websites on the same machine work
fine.

Mediawiki works from a directory in my home which is symlinked to
/var/www : I've read that there can be permission problems in this case,
but why should permissions change whenever I ssh in the machine?

cheers,
M.

On 01/08/12 14:16, Фосса wrote:
> Hi!
>
> Few years ago i have similar problem (but no with MediaWiki). I used
> small server, placed at my home, and connected via ISP. ISP gave public
> "white" IPs, but this IP was dynamic, so i used DynDNS to update my
> domain settings.
>
> Symptoms was like your - when i connected to server with ssh (and do
> nothing) - HTTP connection is going. After near 30 minutes after SSH
> disconnect server stops to respond.
>
> I found the problem and solution, in my case it was:
>
> 1) ISP give me IP through DHCP. This IP is static.
> 2) My computer have public IP in internet (dynamic)
> 3) ISP gates this it one to another.
> 4) <PROBLEM> When all connections with my computer closed (ssh
> disconnected, no external connects), ISP gave my public IP to another
> user (for white IP economy)
> 5) When DynDNS try to update domain info - ISP give me new public IP,
> this IP goes to my domain record, but, after it, DynDNS closes
> connection and IP lost.
>
> 6) To solve this behaviour i installed on my server an IRC-bot, which
> seat on my irc channel and regularry post random symbols. So, connection
> never closes, IP newer changes and all OK.


> Maybe, you have similar problem? For the first - make sure, that "403
> Forbidden" says _YOUR_ server, but no other.



>
> 01.08.2012 13:15, ms пишет:
>> Hi,
>>
>> I have a very odd issue with a MediaWiki 1.19 install. Since a few
>> days it happens that the site usually is inaccessible with the error
>> "403 Forbidden".
>>
>> However if I access the server with ssh and open a shell, the site
>> works. It's /enough/ to login and open the shell -no Apache restarts
>> etc. needed. As soon as there are no more ssh connections to the
>> server, the site stops working again.
>>
>> Can someone point me at what it could be?
>>
>> Thanks,
>> Massimo
>>
>>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


--
Massimo Sandal, Ph.D.
http://devicerandom.org

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Aug 20, 2012, 2:15 PM

Post #4 of 5 (403 views)
Permalink
Re: Mediawiki works only if I ssh on the server [In reply to]

On 01/08/12 15:14, ms wrote:
> Hi Фосса,
>
> Thanks for your answer but I doubt it is the problem I'm having. First
> of all, it is a public server with static public IP. Second, it's only
> Mediawiki that has that problem -other websites on the same machine work
> fine.
>
> Mediawiki works from a directory in my home which is symlinked to
> /var/www : I've read that there can be permission problems in this case,
> but why should permissions change whenever I ssh in the machine?
>
> cheers,
> M.

Looks like your $HOME is mounted when you log in, and umounted when you
disconnect. Furhter suggested by /var/www symlinked to your home.
Encrypted $HOME setups work like this. You should look at the way it is
configured on your server. As a workaround, have you tried leaving open
a screen(1) session?




_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


devicerandom at gmail

Aug 22, 2012, 1:09 AM

Post #5 of 5 (398 views)
Permalink
Re: Mediawiki works only if I ssh on the server [In reply to]

On 20/08/12 23:15, Platonides wrote:
> Looks like your $HOME is mounted when you log in, and umounted when you
> disconnect. Furhter suggested by /var/www symlinked to your home.
> Encrypted $HOME setups work like this. You should look at the way it is
> configured on your server. As a workaround, have you tried leaving open
> a screen(1) session?
>

Thanks, this is an interesting insight!



--
Massimo Sandal, Ph.D.
http://devicerandom.org

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.