AIFDR / riab

Risk in a Box - main project
Other
17 stars 6 forks source link

risiko-install #81

Closed yusbu closed 13 years ago

yusbu commented 13 years ago

I did risiko-install at BPPT office (proxyfied, port 80 only) on Debian Squeeze. What I changed on the risiko-install file is all the word https into http and everything was fine. I just knew that git (clone) works over http.

When i did risiko-activate (well after changing ~/.bash_aliases ... Wait a minute, it reminds me the way how to change the riab_env. I did

$ export RIAB_HOME=/home/enviromatics/dev

and now everything is ok .. Nevermind!

I hope this stupid note worth something, though.

yusbu commented 13 years ago

500 INTERNAL SERVER ERROR Exception at /api/v1/functions/

Server http://localhost:8001/geoserver-geonode-dev/ows is not reachable

Request Method: GET Request URL: http://localhost:8000/api/v1/functions/?_dc=1306232644195 Django Version: 1.2 Exception Type: Exception Exception Value:

Server http://localhost:8001/geoserver-geonode-dev/ows is not reachable

Exception Location: /home/enviromatics/dev/riab/impact/storage/utilities.py in get_layers_metadata, line 94 Python Executable: /home/enviromatics/dev/riab_env/bin/python Python Version: 2.6.6

yusbu commented 13 years ago

Run geonode (kan localhost:8001 sudah nyala) .. hm .. (check risiko-activate cek juga "Exception at /api/v1/functions/" diatas .. apa juga itu ya)

ingenieroariel commented 13 years ago

Yus, your problems seem to be related to a restricted network. Can you reproduce those problems in another network (for example, your home internet connection)?

Can you go directly to: http://localhost:8001/geoserver-geonode-dev/

And verify that you can access the server?

yusbu commented 13 years ago

I have the same feeling, because I don't quiet understand with what's going, too. The download (1.3 GB) was done pretty quick. I tried risiko-install at home, but still fail. Some https is not accessible. This occurs both on ADSL and cable network. However, http://localhost:8001/geoserver-geonode-dev/ is accessible. I tried my luck past weekend, but I caught flu, so make no progress on this ... sorry. Below is the full error. Strange that it call "ja_teline_iii" on port 8001, since that thing is Joomla's template residing at port 80 (Apache): (sorry, I deleted that. I'll email you as attachment. Too many information for github reader.)

uniomni commented 13 years ago

Hi Yus, maybe the issue is as you say that there could be a conflict between joomla and risiko. Can you email me the full error message?

yusbu commented 13 years ago

Well, I just noticed that my joomla was not running. I used a newly installed Debian Squeeze, in the sense that I my /var/www is nearly empty.

Looking at the fact, I think riab_env accessed my old folder (/home/archive/2010/) that contains ja_teline_iii. Perhaps it runs back several folders and got lost somewhere, since my installation is at /home/enviromatics/dev/.

Below is part of the error I have sent that contains 'ja_teline_iii'.


  <module 'django.core.exceptions' from

'/home/enviromatics/dev/riab_env/lib/python2.6/site-packages/django/core/exceptions.pyc'> middleware_method
<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0xa50f4ac>> receivers
[(<function _rollback_on_exception at 0xa5728ec>, None)] request
<WSGIRequest GET:<QueryDict: {u'_dc': [u'1306232644195']}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '843c8a75f8c962c23a7713ac10fb92df', 'ja_teline_iii_tpl': 'ja_teline_iii', 'ja_teline_iii_v2_tpl': 'ja_teline_iii_v2', 'style': 'black', 'tutorialExamplesURL': 'http://localhost:8081/examples'}, META:{'CONTENT_LENGTH': '0', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '843c8a75f8c962c23a7713ac10fb92df', 'HTTPACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'tutorialExamplesURL="http://localhost:8081/examples"; style=black; ja_teline_iii_tpl=ja_teline_iii; ja_teline_iii_v2_tpl=ja_teline_iii_v2; csrftoken=843c8a75f8c962c23a7713ac10fb92df', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110430 Iceweasel/3.5.16 (like Firefox/3.5.16)', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/api/v1/functions/', 'QUERY_STRING': '_dc=1306232644195', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xa1647ac>, 'wsgi.errors': <open file '', mode 'w' at 0xb74ba0d0>, 'wsgi.input': <socket._fileobject object at 0xb43b62c length=0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver


I hope that's not an (WSGI) exploit.

Cheers,

Yus Budiyono

Ecosystem modeler Linux Registered User #385634 Agency for the Assessment and Application of Technology BPPT Bld. II Lvl. 18, Jl. MH. Thamrin 8 Jakarta 10340

On Tue, Jun 7, 2011 at 8:04 AM, uniomni reply@reply.github.com wrote:

Hi Yus, maybe the issue is as you say that there could be a conflict between joomla and risiko. Can you email me the full error message?

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1312993

ingenieroariel commented 13 years ago

That indonesian variable is being passed to django as a browser cookie. You can clear the cookies in your browser to see it go away but it is not the source.of.the.issue.

Honestly I have no idea what kind of.network problem would make localhost:8000 not accesible to your python script but accesible to your browser.

Perhaps Ole has some ideas? On Jun 6, 2011 9:54 PM, "yusbu" < reply@reply.github.com> wrote:

Well, I just noticed that my joomla was not running. I used a newly installed Debian Squeeze, in the sense that I my /var/www is nearly empty.

Looking at the fact, I think riab_env accessed my old folder (/home/archive/2010/) that contains ja_teline_iii. Perhaps it runs back several folders and got lost somewhere, since my installation is at /home/enviromatics/dev/.

Below is part of the error I have sent that contains 'ja_teline_iii'.


<module 'django.core.exceptions' from

'/home/enviromatics/dev/riab_env/lib/python2.6/site-packages/django/core/exceptions.pyc'> middleware_method <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0xa50f4ac>> receivers [(<function _rollback_on_exception at 0xa5728ec>, None)] request <WSGIRequest GET:<QueryDict: {u'_dc': [u'1306232644195']}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '843c8a75f8c962c23a7713ac10fb92df', 'ja_teline_iii_tpl': 'ja_teline_iii', 'ja_teline_iii_v2_tpl': 'ja_teline_iii_v2', 'style': 'black', 'tutorialExamplesURL': 'http://localhost:8081/examples'}, META:{'CONTENT_LENGTH': '0', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '843c8a75f8c962c23a7713ac10fb92df', 'HTTPACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'tutorialExamplesURL="http://localhost:8081/examples"; style=black; ja_teline_iii_tpl=ja_teline_iii; ja_teline_iii_v2_tpl=ja_teline_iii_v2; csrftoken=843c8a75f8c962c23a7713ac10fb92df', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110430 Iceweasel/3.5.16 (like Firefox/3.5.16)', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/api/v1/functions/', 'QUERY_STRING': '_dc=1306232644195', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xa1647ac>, 'wsgi.errors': <open file '', mode 'w' at 0xb74ba0d0>, 'wsgi.input': <socket._fileobject object at 0xb43b62c length=0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver


I hope that's not an (WSGI) exploit.

Cheers,

Yus Budiyono

Ecosystem modeler Linux Registered User #385634 Agency for the Assessment and Application of Technology BPPT Bld. II Lvl. 18, Jl. MH. Thamrin 8 Jakarta 10340

On Tue, Jun 7, 2011 at 8:04 AM, uniomni reply@reply.github.com wrote:

Hi Yus, maybe the issue is as you say that there could be a conflict between joomla and risiko. Can you email me the full error message?

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1312993

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1313150

yusbu commented 13 years ago

On Tue, Jun 7, 2011 at 9:02 AM, ingenieroariel reply@reply.github.com wrote:

That indonesian variable is being passed to django as a browser cookie. You can clear the cookies in your browser to see it go away but it is not the source.of.the.issue.

Thanks about the cookie. I supposed WSGI returned back several folders because I haven't long accessed joomla. ja_teline_iii was an old project that has been concluded around January 2010. hopefully it doesn't exist anywhere in the browser's cookie. I agree, this is not the source of the issue.

Honestly I have no idea what kind of.network problem would make localhost:8000 not accesible to your python script but accesible to your browser.

This one I'm totally dark.

Perhaps Ole has some ideas?

Perhaps, I should try riab-install in a freshly installed system with nothing. I experienced Plone also behave strange in a mixed /usr/share and ~/presentfolder installation, sometime ...

Perhaps this is the case with pure Debian system like my desktop.

On Jun 6, 2011 9:54 PM, "yusbu" < reply@reply.github.com> wrote:

Well, I just noticed that my joomla was not running. I used a newly installed Debian Squeeze, in the sense that I my /var/www is nearly empty.

Looking at the fact, I think riab_env accessed my old folder (/home/archive/2010/) that contains ja_teline_iii. Perhaps it runs back several folders and got lost somewhere, since my installation is at /home/enviromatics/dev/.

Below is part of the error I have sent that contains 'ja_teline_iii'.


<module 'django.core.exceptions' from

'/home/enviromatics/dev/riab_env/lib/python2.6/site-packages/django/core/exceptions.pyc'> middleware_method <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0xa50f4ac>> receivers [(<function _rollback_on_exception at 0xa5728ec>, None)] request <WSGIRequest GET:<QueryDict: {u'_dc': [u'1306232644195']}>, POST:<QueryDict: {}>, COOKIES:{'csrftoken': '843c8a75f8c962c23a7713ac10fb92df', 'ja_teline_iii_tpl': 'ja_teline_iii', 'ja_teline_iii_v2_tpl': 'ja_teline_iii_v2', 'style': 'black', 'tutorialExamplesURL': 'http://localhost:8081/examples'}, META:{'CONTENT_LENGTH': '0', 'CONTENT_TYPE': '', 'CSRF_COOKIE': '843c8a75f8c962c23a7713ac10fb92df', 'HTTPACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'tutorialExamplesURL="http://localhost:8081/examples"; style=black; ja_teline_iii_tpl=ja_teline_iii; ja_teline_iii_v2_tpl=ja_teline_iii_v2; csrftoken=843c8a75f8c962c23a7713ac10fb92df', 'HTTP_HOST': 'localhost:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://localhost:8000/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110430 Iceweasel/3.5.16 (like Firefox/3.5.16)', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/api/v1/functions/', 'QUERY_STRING': '_dc=1306232644195', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': u'', 'SERVER_NAME': '0.0.0.0', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xa1647ac>, 'wsgi.errors': <open file '', mode 'w' at 0xb74ba0d0>, 'wsgi.input': <socket._fileobject object at 0xb43b62c length=0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver


I hope that's not an (WSGI) exploit.

Cheers,

Yus Budiyono

Ecosystem modeler Linux Registered User #385634 Agency for the Assessment and Application of Technology BPPT Bld. II Lvl. 18, Jl. MH. Thamrin 8 Jakarta 10340

On Tue, Jun 7, 2011 at 8:04 AM, uniomni reply@reply.github.com wrote:

Hi Yus, maybe the issue is as you say that there could be a conflict between joomla and risiko. Can you email me the full error message?

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1312993

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1313150

Reply to this email directly or view it on GitHub: https://github.com/AIFDR/riab/issues/81#comment_1313177

Yus Budiyono

Ecosystem modeler Linux Registered User #385634 Agency for the Assessment and Application of Technology BPPT Bld. II Lvl. 18, Jl. MH. Thamrin 8 Jakarta 10340