CKAN docker db init:错误:字符435

时间:2017-11-14 18:02:16

标签: docker docker-compose ckan

我正在使用从源码头构建的最新ckan docker图像和我自己的.env文件

docker-compose build

在运行docker-compose up之后,在映像中执行了一些更改以解决小错误(最新的ckan需要安装dev-requirements.txt,并且入口点需要等待db准备好)。我在db容器中遇到了四个类似的错误,之后ckan无法启动。

db容器的错误是这样的: ERROR: relation "user" does not exist at character 435 STATEMENT: SELECT "user".password AS user_password, "user".id AS user_id, "user".name AS user_name, "user".fullname AS user_fullname, "user".email AS user_email, "user".apikey AS user_apikey, "user".created AS user_creat ed, "user".reset_key AS user_reset_key, "user".about AS user_about, "user".activity_streams_email_notifications AS user_activity_streams_email_notifications, "user".sysadmin AS user_sysadmin, "user".state AS user_state FROM "user" WHERE "user".name = 'default' OR "user".id = 'default' ORDER BY "user".name LIMIT 1

可在以下位置找到相关日志条目:http://www.wepaste.com/ckan%20image%20log/

有关正在发生的事情的任何提示?

1 个答案:

答案 0 :(得分:0)

最后我使用了最新的“稳定版”2.7.2版本,并再次解决了几个错误以使其正常工作。

可以找到修改原始dockerfile并构建正确图像的脚本here