Coder Social home page Coder Social logo

Comments (9)

poupotte avatar poupotte commented on June 23, 2024

Hi @19emtuck,

Can you give me logs in /usr/local/var/log/cozy/data-system.log or /usr/local/cozy/data-system.log-backup ?

from cozy-data-system.

19emtuck avatar 19emtuck commented on June 23, 2024

test@cubietruck:~$ cat /usr/local/var/log/cozy/data-system.log-backup
[2015-07-06 08:26:30:843] info - lib/db | Database cozy on localhost:5984 doesn't exist.
[2015-07-06 08:26:30:923] info - lib/db | Error on database creation :
[2015-07-06 08:26:30:927] info - lib/db | {"name":"CouchError","message":"unauthorized: Name or password is incorrect.","error":"unauthorized","reason":"Name or password is incorrect.","headers":{"server":"CouchDB/1.6.0 (Erlang OTP/R16B03)","date":"Mon, 06 Jul 2015 06:26:30 GMT","content-type":"text/plain; charset=utf-8","content-length":"67","cache-control":"must-revalidate","status":401}}
[2015-07-06 08:26:36:5] info - lib/db | Database cozy on localhost:5984 doesn't exist.
[2015-07-06 08:26:36:103] info - lib/db | Error on database creation :
[2015-07-06 08:26:36:105] info - lib/db | {"name":"CouchError","message":"unauthorized: Name or password is incorrect.","error":"unauthorized","reason":"Name or password is incorrect.","headers":{"server":"CouchDB/1.6.0 (Erlang OTP/R16B03)","date":"Mon, 06 Jul 2015 06:26:36 GMT","content-type":"text/plain; charset=utf-8","content-length":"67","cache-control":"must-revalidate","status":401}}
[2015-07-06 08:26:41:289] info - lib/db | Database cozy on localhost:5984 doesn't exist.
[2015-07-06 08:26:41:419] info - lib/db | Error on database creation :
[2015-07-06 08:26:41:421] info - lib/db | {"name":"CouchError","message":"unauthorized: Name or password is incorrect.","error":"unauthorized","reason":"Name or password is incorrect.","headers":{"server":"CouchDB/1.6.0 (Erlang OTP/R16B03)","date":"Mon, 06 Jul 2015 06:26:41 GMT","content-type":"text/plain; charset=utf-8","content-length":"67","cache-control":"must-revalidate","status":401}}
[2015-07-06 08:26:46:421] info - lib/db | Database cozy on localhost:5984 doesn't exist.
[2015-07-06 08:26:46:504] info - lib/db | Error on database creation :
[2015-07-06 08:26:46:506] info - lib/db | {"name":"CouchError","message":"unauthorized: Name or password is incorrect.","error":"unauthorized","reason":"Name or password is incorrect.","headers":{"server":"CouchDB/1.6.0 (Erlang OTP/R16B03)","date":"Mon, 06 Jul 2015 06:26:46 GMT","content-type":"text/plain; charset=utf-8","content-length":"67","cache-control":"must-revalidate","status":401}}
[2015-07-06 08:26:51:761] info - lib/db | Database cozy on localhost:5984 doesn't exist.
[2015-07-06 08:26:51:873] info - lib/db | Error on database creation :
[2015-07-06 08:26:51:875] info - lib/db | {"name":"CouchError","message":"unauthorized: Name or password is incorrect.","error":"unauthorized","reason":"Name or password is incorrect.","headers":{"server":"CouchDB/1.6.0 (Erlang OTP/R16B03)","date":"Mon, 06 Jul 2015 06:26:51 GMT","content-type":"text/plain; charset=utf-8","content-length":"67","cache-control":"must-revalidate","status":401}}

from cozy-data-system.

poupotte avatar poupotte commented on June 23, 2024

Thanks @19emtuck ,

your problem is a difference between login stored in /etc/cozy/couchdb.login and couchdb admin.

To solve this problem, we can :

  • Remove couchDB admin : remove lines in part [admin] in file /etc/couchdb/local.ini (end of file).
  • Restart couchDB.
  • Remove file /etc/cozy/couchdb.login
  • Execute command config_couchdb from fabfile.py
  • Restart cozy-controller : sudo supervisorctl restart cozy-controller

from cozy-data-system.

19emtuck avatar 19emtuck commented on June 23, 2024

documentation says : "rm -rf /etc/cozy"
so it might explain password differences :( In the mean time I removed /usr/local/var/lib/couchdb
and restart from scratch install. the path has been correctly recreated with some db files
like _users.couch db

and "sudo fab -H pi@localhost install" is still stuck on data-sytem step

right now :

test@cubietruck:~$ sudo ls -al /usr/local/var/lib/couchdb/
total 28
drwxrwx--- 3 couchdb couchdb 4096 juil. 6 13:22 .
drwxr-xr-x 3 root root 4096 juil. 6 13:22 ..
drwxr-xr-x 2 couchdb couchdb 4096 juil. 6 13:22 .delete
-rw-r--r-- 1 couchdb couchdb 4194 juil. 6 13:22 _replicator.couch
-rw-r--r-- 1 couchdb couchdb 4194 juil. 6 13:22 _users.couch

remark : I don't have /etc/couchdb/local.init file

last but not least : what shall I miss to restart install from scratch (don't forget, that fab script
install most in /usr/local)

from cozy-data-system.

19emtuck avatar 19emtuck commented on June 23, 2024

ok find my local.ini file /usr/local/etc/couchdb/local.ini

gonna try your fix

from cozy-data-system.

19emtuck avatar 19emtuck commented on June 23, 2024

ok thx for the tip ! it works.
how can I restore my datas from an other couchdb instance ? (I backup couchdb files and also
backup my data with another couchdb instance, but if I loose my password I'm stuck)

from cozy-data-system.

poupotte avatar poupotte commented on June 23, 2024

You can use the same tip :

  • Remove admin in file configuration
  • Restart couchDB.
  • Create new admin for couchDB

To restore, you can use command reverse-backup from cozy-monitor : sudo cozy-monitor reverse-backup <backup_url> <usernameBackup> <passwordBackup>

from cozy-data-system.

poupotte avatar poupotte commented on June 23, 2024

@clochix , I think, we can close this issue.

from cozy-data-system.

clochix avatar clochix commented on June 23, 2024

Ok, thanks :-)

from cozy-data-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.