1. | Traceback (most recent call last): |
web2py™ | Version 2.12.3-stable+timestamp.2015.08.19.00.18.03 |
---|
Traceback (most recent call last):
File "/opt/www-data/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "/opt/www-data/web2py/applications/test/models/db.py", line 20, in <module>
db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', cast=int), check_reserved=['all'])
File "/opt/www-data/web2py/gluon/packages/dal/pydal/base.py", line 174, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/base.py", line 459, in __init__
raise RuntimeError("Failure to connect, tried %d times:\n%s" % (attempts, tb))
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
File "/opt/www-data/web2py/gluon/packages/dal/pydal/base.py", line 437, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 57, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/oracle.py", line 105, in __init__
if do_connect: self.find_driver(adapter_args,uri)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 188, in find_driver
raise RuntimeError("no driver available %s" % str(self.drivers))
RuntimeError: no driver available ('cx_Oracle',)
I set the envoirment variables
export ORACLE_HOME=/usr/include/oracle/11.1
export LD_LIBRARY_PATH=$ORACLE_HOME/
export PATH=$ORACLE_HOME/bin:$PATH
Created a symlink: ln -s libclntsh.so.11.1 libclntsh.soIt has been slow going on my part due to my new job. I just joined the ranks of Unix OS admins. Coming from a Windows world my job of getting up to speed has been a monumental task. ;-)
If there is an updated nginx and uwsgi or gunicorn scripts for version 7 of rhel/cent?
/usr/include/oracle/11.1
Traceback (most recent call last):
File "/opt/www-data/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "/opt/www-data/web2py/applications/test/models/db.py", line 61, in <module>
auth.define_tables(username=False, signature=False)
File "/opt/www-data/web2py/gluon/tools.py", line 2059, in define_tables
format='%(first_name)s %(last_name)s (%(id)s)'))
File "/opt/www-data/web2py/gluon/packages/dal/pydal/base.py", line 834, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/base.py", line 873, in lazy_define_table
polymodel=polymodel)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 482, in create_table
self.create_sequence_and_triggers(query, table)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/oracle.py", line 145, in create_sequence_and_triggers
self.execute(query)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/oracle.py", line 138, in execute
return self.log_execute(command, args)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 1379, in log_execute
ret = self.get_cursor().execute(command, *a[1:], **b)
DatabaseError: ORA-00955: name is already used by an existing object
So it looks like its working I just have to clean the tables and start fresh.
SELECT TABLE_NAME FROM USER_TABLES ORDER BY TABLE_NAME;
SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS ORDER BY 2, 1;
How did you get here?
-My answer:Traceback (most recent call last):
File "/opt/www-data/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "/opt/www-data/web2py/applications/test/controllers/appadmin.py", line 703, in <module>
File "/opt/www-data/web2py/gluon/globals.py", line 412, in <lambda>
self._caller = lambda f: f()
File "/opt/www-data/web2py/applications/test/controllers/appadmin.py", line 151, in insert
if form.accepts(request.vars, session):
File "/opt/www-data/web2py/gluon/sqlhtml.py", line 1725, in accepts
self.vars.id = self.table.insert(**fields)
File "/opt/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 728, in insert
ret = self._db._adapter.insert(self, self._listify(fields))
File "/opt/www-data/web2py/gluon/packages/dal/pydal/adapters/oracle.py", line 233, in insert
rid = Reference(id)
NameError: global name 'Reference' is not defined
Any Ideas?