Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-22 Thread Luís de Sousa
Hi Jessica, thank you for the swift fix. I confirm that it now works without
the end slash.

For future reference here is how to checkout a tag from GitHub:

git pull

git checkout tags/v0.1.2

Btw, the interface is far more complex than I expected, a manual will be
handy at some point.

Regards,

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073759.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-21 Thread Jessica Lapointe
Hi Luis,

I was finally able to reproduce your problem. For now, you should
access your scribeUI application using : http://localhost/ScribeUI/
The trailing slash at the end is very important. I am currently
looking for a way to adjust the configuration so that both url work.
What happens here is that since the alias scribeui refers to a python
file, apache will not treat it as a directory unless the trailing
slash is present.

I'll keep you updated and will edit the installation instructions for
the app once I find a fix for this.

Thanks a lot,
Jessica

On Tue, Aug 20, 2013 at 3:40 AM, Luís de Sousa
luis.a.de.so...@gmail.com wrote:
 On 19 August 2013 16:16, Jessica Lapointe jlapoi...@mapgears.com wrote:

 Hi Luis,

 You are right that the url should be localhost/ScribeUI/static.
 In your config.py file, this ip = 0.0.0.0 should be the domain you
 access the app with, in your case, it should be  ip = localhost


 Hi again Jessica,

 I tried with localhost and localhost/ScribeUI, but in both cases it
 tries to load the css and js files from localhost/static.

 Thanks,

 Luís
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-21 Thread Jessica Lapointe
Hi Luis,

I pushed a new version of the app that should fix the problem. You
will get the update by doing git checkout v0.1.2
You won't need to do any changes to your config files, just checking
out the version will do the trick.

Thank you,
Jessica

On Wed, Aug 21, 2013 at 10:14 AM, Jessica Lapointe
jlapoi...@mapgears.com wrote:
 Hi Luis,

 I was finally able to reproduce your problem. For now, you should
 access your scribeUI application using : http://localhost/ScribeUI/
 The trailing slash at the end is very important. I am currently
 looking for a way to adjust the configuration so that both url work.
 What happens here is that since the alias scribeui refers to a python
 file, apache will not treat it as a directory unless the trailing
 slash is present.

 I'll keep you updated and will edit the installation instructions for
 the app once I find a fix for this.

 Thanks a lot,
 Jessica

 On Tue, Aug 20, 2013 at 3:40 AM, Luís de Sousa
 luis.a.de.so...@gmail.com wrote:
 On 19 August 2013 16:16, Jessica Lapointe jlapoi...@mapgears.com wrote:

 Hi Luis,

 You are right that the url should be localhost/ScribeUI/static.
 In your config.py file, this ip = 0.0.0.0 should be the domain you
 access the app with, in your case, it should be  ip = localhost


 Hi again Jessica,

 I tried with localhost and localhost/ScribeUI, but in both cases it
 tries to load the css and js files from localhost/static.

 Thanks,

 Luís
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-20 Thread Luís de Sousa
On 19 August 2013 16:16, Jessica Lapointe jlapoi...@mapgears.com wrote:

 Hi Luis,

 You are right that the url should be localhost/ScribeUI/static.
 In your config.py file, this ip = 0.0.0.0 should be the domain you
 access the app with, in your case, it should be  ip = localhost


Hi again Jessica,

I tried with localhost and localhost/ScribeUI, but in both cases it
tries to load the css and js files from localhost/static.

Thanks,

Luís
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-19 Thread Luís de Sousa
Hi Jessica, you'll find below the contents of the files you ask plus the
Apache config.

Here's an example of an address ScirbeUI is trying to access that doesn't
exist:

http://localhost/static/css/reset.css

I believe it should be:

http://localhost/ScribeUI/static/css/reset.css

But I can't see where this particular path could be configured.

Thanks for helping,

Luís


#--
# config.py

#Replace 0.0.0.0 with your server's ip or hostname
#Examples: 127.0.0.1, my.host.com
ip = 0.0.0.0


#--
# runserver.wsgi

from runserver.py import app as application

import sys

#Replace scribeui_path with the path to the root of your scribeui
installation
#Example: /opt/ScribeUI/application/runserver.py

sys.path.insert(0,'/opt/ScribeUI/application/runserver.py')

WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py


#--
# ScribeUI.conf

#ScribeUI

WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py
AddType text/html .py
Directory /opt/ScribeUI/application/templates
  Order deny,allow
  Allow from all
/Directory

Alias /ScribeUI/download/ /opt/ScribeUI/application/www/
Directory /opt/ScribeUI/application/www/
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
/Directory




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073155.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-19 Thread Jessica Lapointe
Hi Luis,

You are right that the url should be localhost/ScribeUI/static.
In your config.py file, this ip = 0.0.0.0 should be the domain you
access the app with, in your case, it should be  ip = localhost
After changing this the easiest way to see your changes instantly will
be to restart apache, because otherwise mod_wsgi will not necessarily
acknowledge your changes immediately.
Thank you,
Jessica

On Mon, Aug 19, 2013 at 9:52 AM, Luís de Sousa
luis.a.de.so...@gmail.com wrote:
 Hi Jessica, you'll find below the contents of the files you ask plus the
 Apache config.

 Here's an example of an address ScirbeUI is trying to access that doesn't
 exist:

 http://localhost/static/css/reset.css

 I believe it should be:

 http://localhost/ScribeUI/static/css/reset.css

 But I can't see where this particular path could be configured.

 Thanks for helping,

 Luís


 #--
 # config.py

 #Replace 0.0.0.0 with your server's ip or hostname
 #Examples: 127.0.0.1, my.host.com
 ip = 0.0.0.0


 #--
 # runserver.wsgi

 from runserver.py import app as application

 import sys

 #Replace scribeui_path with the path to the root of your scribeui
 installation
 #Example: /opt/ScribeUI/application/runserver.py

 sys.path.insert(0,'/opt/ScribeUI/application/runserver.py')

 WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py


 #--
 # ScribeUI.conf

 #ScribeUI

 WSGIScriptAlias /ScribeUI /opt/ScribeUI/application/runserver.py
 AddType text/html .py
 Directory /opt/ScribeUI/application/templates
   Order deny,allow
   Allow from all
 /Directory

 Alias /ScribeUI/download/ /opt/ScribeUI/application/www/
 Directory /opt/ScribeUI/application/www/
   AllowOverride None
   Options Indexes FollowSymLinks Multiviews
   Order allow,deny
   Allow from all
 /Directory




 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5073155.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-16 Thread Luís de Sousa
Hi again Jessica,

After a second restart the server seems to be back to normal and I can now
load the main ScribeUI page. That was a good tip, thanks.

Unfortunately ScribeUI is trying to load a heap of assets from
localhost/static, which does not exist at this stage. Should I map an alias
from there to /opt/ScribeUI/application/static?

Thanks.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072841.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-16 Thread Jessica Lapointe
Hi Luis,

There shouldn't be a need for a new alias. What does your
runserver.wsgi and config.py files look like ? Do you access the app
from localhost/ScribeUI or another url ?

Thanks,
Jessica

On Fri, Aug 16, 2013 at 8:26 AM, Luís de Sousa
luis.a.de.so...@gmail.com wrote:
 Hi again Jessica,

 After a second restart the server seems to be back to normal and I can now
 load the main ScribeUI page. That was a good tip, thanks.

 Unfortunately ScribeUI is trying to load a heap of assets from
 localhost/static, which does not exist at this stage. Should I map an alias
 from there to /opt/ScribeUI/application/static?

 Thanks.



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072841.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Luís de Sousa
Dear all,

I just installed ScribeUI on Ubuntu 12.04. When I try to access it there's
a timeout:

--2013-08-13 21:48:07--  (try:20)  http://localhost/ScribeUI
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out)
in headers.

In the apache log I have a segmentation fault registered every second since
I installed ScribeUI, like:

[Tue Aug 13 16:46:18 2013] [notice] child pid 5556 exit signal Segmentation
fault (11)

Is there any log file specific to ScribeUI? Otherwise, is there any other
way to get some debug messages to understand what's going wrong?

Thank you,

Luís
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Jessica Lapointe
Hi Luis,

I don't have an answer for you right now, but could you take a look at your
access log to see what request is causing the fault at every second ? That
might give us some clue of where the problem is.

Thank you,
Jessica


On Wed, Aug 14, 2013 at 3:26 AM, Luís de Sousa luis.a.de.so...@gmail.comwrote:

 Dear all,

 I just installed ScribeUI on Ubuntu 12.04. When I try to access it there's
 a timeout:

 --2013-08-13 21:48:07--  (try:20)  http://localhost/ScribeUI
 Connecting to localhost (localhost)|127.0.0.1|:80... connected.
 HTTP request sent, awaiting response... Read error (Connection timed out)
 in headers.

 In the apache log I have a segmentation fault registered every second
 since I installed ScribeUI, like:

 [Tue Aug 13 16:46:18 2013] [notice] child pid 5556 exit signal
 Segmentation fault (11)

 Is there any log file specific to ScribeUI? Otherwise, is there any other
 way to get some debug messages to understand what's going wrong?

 Thank you,

 Luís




 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Luís de Sousa
Hi Jessica, thank you for the reply.

Those segmentation fault messages were being issued even when no requests
were made. The only way to stop it was to remove the ScribeUI config file
from sites-enabled. I believe there is something going wrong with the cgi.

Beyond diving into the code, is there any other easy way of debugging?

Luís



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072538.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ScribeUI: Possible segmentation fault on Ubuntu 12.04

2013-08-14 Thread Jessica Lapointe
Hi Luis,

ScribeUI uses the flask framework, and this url might help:
http://flask.pocoo.org/docs/deploying/mod_wsgi/

In particular, this part: If you encounter segfaulting child
processes after the first apache reload you can safely ignore them.
Just restart the server. Did you try restarting apache ?

About the logs, when python fails, it outputs to the apache2 error
logs. That leads me to think no python is actually executed and we
have an error earlier than that.

The apache config only define a few alias, those are quite passive and
should not crash apache. I think this is unlikely to change anything,
but you could try putting the config in your virtual host, I appended
an example at the end of this email.

Thanks,
Jessica

VirtualHost *:80
ServerAdmin webmaster@localhost

WSGIScriptAlias /ScribeUI /opt/apps/ScribeUI/application/runserver.py
AddType text/html .py
Directory /opt/apps/ScribeUI/application/templates
  Order deny,allow
  Allow from all
/Directory

Alias /ScribeUI/download/ /opt/apps/ScribeUI/application/www/
Directory /opt/apps/ScribeUI/application/www/
  AllowOverride None
  Options Indexes FollowSymLinks Multiviews
  Order allow,deny
  Allow from all
/Directory
/VirtualHost

On Wed, Aug 14, 2013 at 11:19 AM, Luís de Sousa
luis.a.de.so...@gmail.com wrote:
 Hi Jessica, thank you for the reply.

 Those segmentation fault messages were being issued even when no requests
 were made. The only way to stop it was to remove the ScribeUI config file
 from sites-enabled. I believe there is something going wrong with the cgi.

 Beyond diving into the code, is there any other easy way of debugging?

 Luís



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/ScribeUI-Possible-segmentation-fault-on-Ubuntu-12-04-tp5072423p5072538.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users