문제

It's my first time to install ckan2.2 in ubuntu12.04. I followed the document to set up the datastore,but when I executed command line "paster datastore set-permissions postgres -c xxxx/development.ini",it was failed and returned

 AttributeError: 'NoneType' object has no attribute 'auth_audit_exempt'
I have configed "ckan.datastore.write_url" and "ckan.datastore.read_url",I'm sure the password is right. If i skip this set up, i can not run the ckan.

 sqlalchemy.exc.OperationalError: (OperationalError) FATAL:  role "datastore_default" is not permitted to log in
 None None 

Can anyone help me ??

at last, i have solved this problem...

just login the database "datastore_default" with superuser "postgres",and "alter role datastore_default login;"

wtf...

도움이 되었습니까?

해결책

I think you created a bad user. Can you sure you created the user command is: sudo -u postgres createuser -S -D -R -P ckan_default . The optional -S -D -R -P must be capital.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top