Hi there,
I'm attempting a basic install on Ubunbu 16.04 LTS. All packages seem to be loaded, but as root, when I run:
python setup.py -r
I get this:
root@filelocker:/opt/filelocker# python setup.py -r
Traceback (most recent call last):
File "setup.py", line 2, in <module>
from lib import Models
File "/opt/filelocker/lib/Models.py", line 18, in <module>
from lib.SQLAlchemyTool import configure_session_for_app, session, _engines
File "/opt/filelocker/lib/SQLAlchemyTool.py", line 90, in <module>
class SATransaction(cherrypy.Tool):
AttributeError: 'module' object has no attribute 'Tool'
Any idea what is missing here?
Any info or leads you can provide would be much appreciated.
I reviewed package requirements in INSTALL.txt. Packages installed on the machine are:
python 2.7.12.
mysql-server-5.7/xenial-updates,xenial-security,now 5.7.22-0ubuntu0.16.04.1 amd64 [installed]
python-crypto/xenial-updates,xenial-security,now 2.6.1-6ubuntu0.16.04.3 amd64 [installed]
python-cryptography/xenial-updates,xenial-security,now 1.2.3-1ubuntu0.1 amd64 [installed,automatic]
python-cheetah/xenial,now 2.4.4-3.fakesyncbuild1 amd64 [installed]
libjson-c2/xenial,now 0.11-4ubuntu2 amd64 [installed]
libjson-perl/xenial,xenial,now 2.90-1 all [installed,automatic]
libjson-xs-perl/xenial,now 3.010-2build1 amd64 [installed,automatic]
python-json-patch/xenial,xenial,now 1.19-3 all [installed]
python-json-pointer/xenial,xenial,now 1.9-3 all [installed]
python-json-schema-validator/xenial,xenial,now 2.3.1-3 all [installed]
python-json-schema-validator-doc/xenial,xenial,now 2.3.1-3 all [installed]
python-jsonpatch/xenial,xenial,now 1.19-3 all [installed]
python-jsonpath-rw/xenial,xenial,now 1.4.0-1 all [installed]
python-jsonpath-rw-ext/xenial,xenial,now 0.1.9-1 all [installed]
python-jsonpath-rw-ext-doc/xenial,xenial,now 0.1.9-1 all [installed]
python-jsonpickle/xenial,xenial,now 0.9.2-1 all [installed]
python-jsonpickle-doc/xenial,xenial,now 0.9.2-1 all [installed]
python-jsonpipe/xenial,xenial,now 0.0.8-5 all [installed]
python-jsonrpc2/xenial,xenial,now 0.4.1-2 all [installed]
python-jsonrpclib/xenial,xenial,now 0.1.3-1build1 all [installed]
python-jsonschema/xenial,xenial,now 2.5.1-4 all [installed]
python-simplejson/xenial,now 3.8.1-1ubuntu2 amd64 [installed,automatic]
python-sqlalchemy/xenial,xenial,now 1.0.11+ds1-1ubuntu2 all [installed]
python-sqlalchemy-doc/xenial,xenial,now 1.0.11+ds1-1ubuntu2 all [installed]
python-sqlalchemy-ext/xenial,now 1.0.11+ds1-1ubuntu2 amd64 [installed]
python-sqlalchemy-utils/xenial,xenial,now 0.30.12-2 all [installed]
python-sqlalchemy-utils-doc/xenial,xenial,now 0.30.12-2 all [installed]
python-twisted/xenial-updates,xenial-updates,xenial-security,xenial-security,now 16.0.0-1ubuntu0.2 all [installed]
python-twisted-bin/xenial-updates,xenial-security,now 16.0.0-1ubuntu0.2 amd64 [installed,automatic]
python-twisted-core/xenial-updates,xenial-updates,xenial-security,xenial-security,now 16.0.0-1ubuntu0.2 all [installed,automatic]
python-ldap/xenial,now 2.4.22-0.1 amd64 [installed]
python-soappy/xenial,xenial,now 0.12.22-1 all [installed]
python-cherrypy/xenial,xenial,now 2.3.0-5 all [installed]
Hey all - just an update. I was able to get it working with CentOS 7.5. Installation I used is here:
MariaDB installation:
https://www.tecmint.com/install-mariadb-in-centos-7/
Packages installed by yum:
python MySQL-python python-crypto python-cheetah python-json python-ldap SOAPpy python-cherrypy python-twisted-core python-sqlalchemy
Last edit: Xavi 2018-06-06
Just got it working over SSL
This is my working Apache Proxy and SSL Configuration:
<VirtualHost *:443="">
Servername filelocker.ebbahubba.edu
RequestHeader set X-Forwarded-Proto "https"
Options +FollowSymLinks
ProxyPass / http://[ip of local machine]:8080/
ProxyPassReverse / http://[ip of local machine]:8080/
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
SSLCertificateFile /etc/pki/tls/certs/filelocker.crt
SSLCertificateKeyFile /etc/pki/tls/private/filelocker.key
SSLCertificateChainfile /etc/pki/tls/certs/intermediate.crt
CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
</VirtualHost>
This is my filelocker.conf file (I uncompressed the tar file in /opt/filelocker)
[global]
tools.sessions.on=True
tools.sessions.httponly=True
tools.sessions.persistent=False
engine.autoreload.on=False
tools.sessions.secure=False
server.thread_pool=20
log.screen=False
tools.sessions.name="filelocker"
server.socket_port=8080
tools.gzip.on=True
log.access_file="/var/filelocker/filelocker.access.log"
server.reverse_dns=False
tools.gzip.mime_types=['text/html', 'text/css', 'image/jpeg', 'image/gif', 'text/javascript', 'image/png']
tools.sessions.storage_type="ram"
tools.sessions.timeout=15
server.environment="production"
server.socket_timeout=60
log.error_file="/var/filelocker/filelocker.error.log"
server.socket_host="[ip of your local machine]"
[/]
tools.SATransaction.on = True
tools.SATransaction.dburi = "mysql+mysqldb://filelocker:xxxxxxxx@localhost/filelocker_sqlalchemy"
tools.SATransaction.echo = False
[filelocker]
vault="/vault"
root_url="https://filelocker.ebbahubba.edu"
root_path="/opt/filelocker"
cluster_member_id=0
[/static]
tools.staticdir.root="/opt/filelocker"
tools.staticdir.dir="static"
tools.staticdir.on=True
Last edit: Xavi 2018-06-06