Open gabrielbdornas opened 1 year ago
cat ckan/config/solr/schema.xml
revelou <schema name="ckan-2.10" version="1.6">
.pip install --upgrade -r requirements.txt
estava apresentando problemas na atualização biblioteca pysolar
. Este issue sugeriu a utilização da versão 3.10.0b0
, o que eu fiz modificando a mesma no arquivo requirements.txt
.ckan -c /etc/ckan/default/ckan.ini db upgrade
recebi o erro: 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
ckan.ini
. Olhei o arquivo e, de fato ele testava com um @cge
a mais (comparei com o mesmo arquivo da máquina projeto ckan). Editei o ckan.ini
para corrigir este erro: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
ckan -c /etc/ckan/default/ckan.ini db upgrade
recebi o erro: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"
ckan.ini
recebi o seguinte erro: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)
Conforme descrito em card do trello.