Comments (9)
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.
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.
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.
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.
ok find my local.ini file /usr/local/etc/couchdb/local.ini
gonna try your fix
from cozy-data-system.
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.
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.
@clochix , I think, we can close this issue.
from cozy-data-system.
Ok, thanks :-)
from cozy-data-system.
Related Issues (20)
- Creation of a sharing controller HOT 4
- Fine-grained permission control through id
- TypeError: Cannot read property 'targetDocType' of null HOT 1
- 30G of cozy.couch - any chance of reducing it ? HOT 5
- “Application not authorized” should be less verbose
- cozy update crash on data-system update HOT 7
- Don't crash when index is not available HOT 2
- Convert binaries error
- TypeError: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length HOT 1
- Improve "Error: Application is not authorized" error handling
- TypeError: Cannot read property 'docType' of undefined HOT 1
- Diacritics in file name makes data-system crash HOT 4
- Add file checksum automatically HOT 1
- Error trying to download a large folder HOT 3
- Extract EXIF data when adding pictures HOT 1
- Allow to disable the inner indexer
- Files doesn't (always) generate previews of pictures HOT 1
- Error creating thumbnails: TypeError: Cannot read property 'id' of undefined
- Allow replication to access /replication/_all_docs URLs HOT 1
- Server error: Forbidden operation | Buffer isn't a JSON valid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cozy-data-system.