transparencia-mg / ckan-source-code-installation

0 stars 0 forks source link

Atualizar versão CKAN 2.10 ambiente treinamento #5

Open gabrielbdornas opened 1 year ago

gabrielbdornas commented 1 year ago

Conforme descrito em card do trello.

gabrielbdornas commented 1 year ago
 conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "cge@localhost" to address: Name or service not known
Antes
## Database Settings
sqlalchemy.url = postgresql://ckan_default:ckan@cge@localhost/ckan_default

ckan.datastore.write_url = postgresql://ckan_default:ckan@cge@localhost/datastore_default
ckan.datastore.read_url = postgresql://datastore_default:datastore@cge@localhost/datastore_default

Depois
## Database Settings
sqlalchemy.url = postgresql://ckan_default:ckan@localhost/ckan_default                        
ckan.datastore.write_url = postgresql://ckan_default:ckan@localhost/datastore_default         ckan.datastore.read_url = postgresql://datastore_default:datastore@localhost/datastore_default
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL:  password authentication failed for user "ckan_default"
FATAL:  password authentication failed for user "ckan_default"
Exception: Config option `ckan.datapusher.api_token` must be set to use the DataPusher.

Retirei a extensão datapusher da propriedade plugins do arquivo ckan.ini.

from ckan.config.environment import load_environment
  File "/usr/local/lib/python3.8/dist-packages/ckan-2.9.5-py3.8.egg/ckan/config/environment.py", line 15, in <module>
    import ckan.model as model
  File "/usr/local/lib/python3.8/dist-packages/ckan-2.9.5-py3.8.egg/ckan/model/_init_.py", line 20, in <module>
    from ckan.model import meta
  File "/usr/local/lib/python3.8/dist-packages/ckan-2.9.5-py3.8.egg/ckan/model/meta.py", line 10, in <module>
    from sqlalchemy.orm.session import SessionExtension
ImportError: cannot import name 'SessionExtension' from 'sqlalchemy.orm.session' (/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py)