Re: Accessing Django through ssh tunneling and error to get status

2018-07-16 Thread Melvyn Sopacua
On maandag 16 juli 2018 08:56:06 CEST Dikus Extrange wrote:

> Not Found: /http:/127.0.0.1:8000/status
> Etc,etc...
> 
> 
> I wonder why the protocol has only a slash (http:/ rather http://). Could it
> be a wrong message?

This looks like a wrongly configured status monitor of some sorts, like for 
example using 
nginx health checks[1]. But there are more implementations, so don't focus on 
the nginx 
part.

Probably the quickest way to identify the culprit is to use sysadmin utilities 
like sockstat, 
netstat and similar.

-- 
Melvyn Sopacua


[1] https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/
#specifying-the-requested-uri

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6625591.uGLnyAZ1v9%40fritzbook.
For more options, visit https://groups.google.com/d/optout.


Re: Accessing Django through ssh tunneling and error to get status

2018-07-16 Thread Dikus Extrange
Hi Robert. Thank you for your piece of advice. I tried writting

ALLOWED HOSTS = ['*',]

And after running the server, it throws the same message:

Not Found: /http:/127.0.0.1:8000/status
Etc,etc...


I wonder why the protocol has only a slash (http:/ rather http://). Could it be 
a wrong message? 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/49c2ebc7-c7ae-4ddd-920e-6c2f543a833e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Accessing Django through ssh tunneling and error to get status

2018-07-13 Thread Robert Edward
Hey, uhm I faced a similar problem lately. Try this in the Settings.py
file,

Inside the brackets insert an asterisk ✳
It should look something like this

Allowed host = [ *];
Then try again.


On Thu, Jul 12, 2018, 7:34 PM Dikus Extrange 
wrote:

> Hi Jason. Thank you for your reply. I tried with your suggestion.
>
> Django complained about putting then name of my laptop and its domain in
> allowed hosts (I had to put 'localhost' and '127.0.0.1' before). So I put
> it in settings.py and the. Result is the same with the same message.
>
> El jueves, 12 de julio de 2018, 13:27:50 (UTC+2), Jason escribió:
>>
>> you should use *0.0.0.0* for the ip address rather than 127.0.0.1
>>
>> On Thursday, July 12, 2018 at 7:22:33 AM UTC-4, Dikus Extrange wrote:
>>>
>>> Hi everyone. I'm accessing to a Django application through a ssh tunnel
>>> with putty as client. I run the server with ./manage.py run server
>>> 127.0.0.1:8000 and it starts right but launching an infinite and
>>> annoying message:
>>>
>>> Not found: /http:/127.0.0.1:8000/status
>>> [12/Jul/2018 10:02:59] "GET
>>> http://127.0.0.1:8000/status?plain=b64_os_username=RE1Dx=1
>>> HTTP/1.1" 404 1768
>>> ...
>>> ...
>>>
>>> Could anyone tell me if it's a bug of Django, a missconfiguration or
>>> what?
>>>
>>> Running the server without ssh tunneling is OK. I had to add
>>> localhost.localdomain and 127.0.0.1 to allowed hosts in settings.py.
>>>
>>> Django version 2.0.6.
>>>
>>> Thank you in advance.
>>> Dikus
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a42794fb-e9d8-4aa5-8e22-3180e4ef53eb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAH9y-HygyFWSYymfoYQQC%2BkeOMJRq1uBPJ%2Ber3rboX8M1agREQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Dikus Extrange
Hi Jason. Thank you for your reply. I tried with your suggestion. 

Django complained about putting then name of my laptop and its domain in 
allowed hosts (I had to put 'localhost' and '127.0.0.1' before). So I put 
it in settings.py and the. Result is the same with the same message. 

El jueves, 12 de julio de 2018, 13:27:50 (UTC+2), Jason escribió:
>
> you should use *0.0.0.0* for the ip address rather than 127.0.0.1
>
> On Thursday, July 12, 2018 at 7:22:33 AM UTC-4, Dikus Extrange wrote:
>>
>> Hi everyone. I'm accessing to a Django application through a ssh tunnel 
>> with putty as client. I run the server with ./manage.py run server 
>> 127.0.0.1:8000 and it starts right but launching an infinite and 
>> annoying message:
>>
>> Not found: /http:/127.0.0.1:8000/status
>> [12/Jul/2018 10:02:59] "GET 
>> http://127.0.0.1:8000/status?plain=b64_os_username=RE1Dx=1
>>  
>> HTTP/1.1" 404 1768
>> ...
>> ...
>>
>> Could anyone tell me if it's a bug of Django, a missconfiguration or what?
>>
>> Running the server without ssh tunneling is OK. I had to add 
>> localhost.localdomain and 127.0.0.1 to allowed hosts in settings.py.
>>
>> Django version 2.0.6.
>>
>> Thank you in advance. 
>> Dikus
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a42794fb-e9d8-4aa5-8e22-3180e4ef53eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Jason
you should use *0.0.0.0* for the ip address rather than 127.0.0.1

On Thursday, July 12, 2018 at 7:22:33 AM UTC-4, Dikus Extrange wrote:
>
> Hi everyone. I'm accessing to a Django application through a ssh tunnel 
> with putty as client. I run the server with ./manage.py run server 
> 127.0.0.1:8000 and it starts right but launching an infinite and annoying 
> message:
>
> Not found: /http:/127.0.0.1:8000/status
> [12/Jul/2018 10:02:59] "GET 
> http://127.0.0.1:8000/status?plain=b64_os_username=RE1Dx=1
>  
> HTTP/1.1" 404 1768
> ...
> ...
>
> Could anyone tell me if it's a bug of Django, a missconfiguration or what?
>
> Running the server without ssh tunneling is OK. I had to add 
> localhost.localdomain and 127.0.0.1 to allowed hosts in settings.py.
>
> Django version 2.0.6.
>
> Thank you in advance. 
> Dikus
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e18a423-ceaa-4843-a138-7ec72c0f0671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Accessing Django through ssh tunneling and error to get status

2018-07-12 Thread Dikus Extrange
Hi everyone. I'm accessing to a Django application through a ssh tunnel 
with putty as client. I run the server with ./manage.py run server 
127.0.0.1:8000 and it starts right but launching an infinite and annoying 
message:

Not found: /http:/127.0.0.1:8000/status
[12/Jul/2018 10:02:59] "GET 
http://127.0.0.1:8000/status?plain=b64_os_username=RE1Dx=1 
HTTP/1.1" 404 1768
...
...

Could anyone tell me if it's a bug of Django, a missconfiguration or what?

Running the server without ssh tunneling is OK. I had to add 
localhost.localdomain and 127.0.0.1 to allowed hosts in settings.py.

Django version 2.0.6.

Thank you in advance. 
Dikus

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10c768a5-25ea-4a9a-81a9-dc5226dcb0e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.