Deployment from AWS Debian 10 image

32 views
Skip to first unread message

David Billsbrough

unread,
Sep 3, 2021, 10:10:07 PM9/3/21
to Sahana-Eden

Hello,

I have 'almost' setup a copy of 'Eden' from an AWS image.

When I attempt to launch 'webpy'  as a web server I have been errors about S3base or
S3model not being something happy!

-=-=-=-=-

Traceback (most recent call last):
  File "/home/web2py/gluon/restricted.py", line 219, in restricted
    exec(ccode, environment)
  File "/home/web2py/applications/eden/models/00_db.py", line 87, in <module>
    import s3 as s3base
  File "/home/web2py/gluon/custom_import.py", line 59, in custom_importer
    return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python3.7/dist-packages/s3/__init__.py", line 1, in <module>
    from .s3 import *
  File "/home/web2py/gluon/custom_import.py", line 87, in custom_importer
    return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python3.7/dist-packages/s3/s3.py", line 253
    except Exception, e:

-=-=-=-=-=-

admin@eden:~$ uname -a
Linux eden 4.19.0-17-cloud-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
admin@eden:~$ python -V
Python 3.7.3
admin@eden:~$


regards,

David

Fran Boon

unread,
Sep 4, 2021, 3:27:38 AM9/4/21
to Sahana Software Foundation
On Sat, 4 Sept 2021 at 03:10, David Billsbrough <dbills...@gmail.com> wrote:
> I have 'almost' setup a copy of 'Eden' from an AWS image.

You don't say what process you followed.
Was it this one?:
https://eden.sahanafoundation.org/wiki/InstallationGuidelines/Amazon

> When I attempt to launch 'webpy' as a web server

What do you mean here?
For production installs, our installation scripts launch a real web
server, which loads web2py via WSGI.
Is this the WebSetup co-app from our scripts? If so, then it should
launch web2py for you

> I have been errors about S3base or
> S3model not being something happy!
> Traceback (most recent call last):
> File "/home/web2py/gluon/restricted.py", line 219, in restricted
> exec(ccode, environment)
> File "/home/web2py/applications/eden/models/00_db.py", line 87, in <module>
> import s3 as s3base
> File "/home/web2py/gluon/custom_import.py", line 59, in custom_importer
> return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
> File "/usr/local/lib/python3.7/dist-packages/s3/__init__.py", line 1, in <module>
> from .s3 import *
> File "/home/web2py/gluon/custom_import.py", line 87, in custom_importer
> return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
> File "/usr/local/lib/python3.7/dist-packages/s3/s3.py", line 253
> except Exception, e:

Unfortunately this isn't a very helpful error message.
If you didn't use our installation scripts, then I guess this is a
missing dependency.
The most critical ones are:
apt-get install -y python3-dateutil python3-lxml
pip install shapely

> admin@eden:~$ uname -a
> Linux eden 4.19.0-17-cloud-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
> admin@eden:~$ python -V
> Python 3.7.3

This is fine

Best Wishes,
Fran.

David Billsbrough

unread,
Sep 5, 2021, 5:29:08 PM9/5/21
to Sahana-Eden
re-posted:

Hello Fran,

 Actual I have spent the most time with this script:

   https://raw.githubusercontent.com/sahana/eden_deploy_manual/master/configure-eden-apache-mysql.sh

  I am/was trying to use Apache/Mysql/Postfix as I am more familiar with these packages and not Cherokee/Postgresql database.

  I did check that WSGI was working under Apache web server.

  I did check these:


> The most critical ones are:
>  apt-get install -y python3-dateutil python3-lxml
>  pip install shapely

 they are installed.

I have manually copied and modified  (000_config.py)  but I do not successfully ever get the 'noop' script to run so I guess I never get a populated database.
 Without never running the first time it also doesn't launch in web server but I have from Lynx (locally on server) seen the admin panel run.  Hope that is more
 detail of the path of progress.

regards,

 David

Fran Boon

unread,
Sep 5, 2021, 6:33:37 PM9/5/21
to Sahana Software Foundation
Hi David,

I pushed some fixes for this script.
Please try again on a fresh server.

Best wishes,
Fran

--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/ceedc3f3-ffb7-4660-a17e-46759ef4db8fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages