@Niphlod:
OK, I reinstalled Windows from source and this time web2py is back in
working order. However, I'm still unable to connect to postgresql. I'm
getting this ticket:
Traceback (most recent call last):
File "G:\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
File "G:/web2py/applications/myapp/models/0_0_globals.py"
<http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_0_globals.py>, line 43, in
<module>
migrate=True, # True causes db changes to propagate immediately
File "G:\web2py\gluon\packages\dal\pydal\base.py", line 174, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "G:\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 10 times:
Traceback (most recent call last):
File "G:\web2py\gluon\packages\dal\pydal\base.py", line 437, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File "G:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 57, in
__call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py", line 151, in
__init__
self.reconnect()
File "G:\web2py\gluon\packages\dal\pydal\connection.py", line 126, in
reconnect
self.connection = f()
File "G:\web2py\gluon\packages\dal\pydal\adapters\postgres.py", line 148, in
connector
return self.driver.connect(**driver_args)
File "G:\web2py\gluon\contrib\pg8000\__init__.py", line 336, in connect
user, host, unix_sock, port, database, password, ssl)
File "G:\web2py\gluon\contrib\pg8000\core.py", line 969, in __init__
raise InterfaceError("communication error", exc_info()[1])
InterfaceError: ('communication error', error(10061, 'No connection could be
made because the target machine actively refused it'))
Wonder if anyone has ever run into this with postgresql before? The only
difference in my setup is I upgraded my postgres to the most recent version
(9.4). I believe I got the user/password combos correct when I restored the db
into the new postgresql install. Any thoughts, anyone? Thanks for reading.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.