You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/29 04:58:35 UTC

[GitHub] [couchdb] wohali opened a new issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL

wohali opened a new issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL
URL: https://github.com/apache/couchdb/issues/2500
 
 
   @rnewson I tried all variants but can't get this to work...
   
   ```
   $ dev/run -n 1 -a admin:password >/dev/null &
   # wait a few seconds, then...
   $ curl -X PUT http://admin:password@localhost:15984/abc
   {"ok":true}
   $ ls dev/lib/node1/data/shards/00000000-7fffffff
   abc.1580273428.couch              _replicator.1580273362.couch
   _global_changes.1580273362.couch  _users.1580273361.couch
   $ curl http://admin:password@localhost:15984/_node/_local/_all_dbs
   ["_dbs","_nodes","_users","shards/00000000-7fffffff/_global_changes.1580273362","shards/00000000-7fffffff/_replicator.1580273362","shards/00000000-7fffffff/_users.1580273361","shards/00000000-7fffffff/abc.1580273428","shards/80000000-ffffffff/_global_changes.1580273362","shards/80000000-ffffffff/_replicator.1580273362","shards/80000000-ffffffff/_users.1580273361","shards/80000000-ffffffff/abc.1580273428"]
   $ curl http://admin:password@localhost:15984/_node/_local/abc
   {"error":"not_found","reason":"no_db_file"}
   $ curl http://admin:password@localhost:15984/_node/_local/shards/00000000-7fffffff/abc.1580273428
   {"error":"not_found","reason":"no_db_file"}
   $ curl http://admin:password@localhost:15984/_node/_local/shards%2f00000000-7fffffff%2fabc.1580273428
   {"error":"not_found","reason":"no_db_file"}
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali closed issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL

Posted by GitBox <gi...@apache.org>.
wohali closed issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL
URL: https://github.com/apache/couchdb/issues/2500
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL
URL: https://github.com/apache/couchdb/issues/2500#issuecomment-579592896
 
 
   Needless to say this also extends to being able to access a ddoc shard, e.g. `GET /_node/{nodename}/{db-shard}/{ddoc}/_info`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] wohali commented on issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL

Posted by GitBox <gi...@apache.org>.
wohali commented on issue #2500: Cannot access individual shard through /_node/{node-name}/shard-path URL
URL: https://github.com/apache/couchdb/issues/2500#issuecomment-579814053
 
 
   Looks like we're not parsing the URL sufficiently intelligently to support this, per the logfile:
   
   ```
   error] 2020-01-29T15:32:02.998063Z node1@127.0.0.1 <0.1421.0> -------- Could not open file /home/joant/couchdb/dev/lib/node1/data/shards.couch: no such file or directory
   [notice] 2020-01-29T15:32:02.999013Z node1@127.0.0.1 <0.1385.0> 208178fff9 localhost:15984 127.0.0.1 admin GET /_node/_local/shards/00000000-7fffffff/abc.1580273428 404 ok 5
   [info] 2020-01-29T15:32:02.999583Z node1@127.0.0.1 <0.1420.0> -------- open_result error {not_found,no_db_file} for shards
   [error] 2020-01-29T15:32:10.914265Z node1@127.0.0.1 <0.1559.0> -------- Could not open file /home/joant/couchdb/dev/lib/node1/data/shards.couch: no such file or directory
   [info] 2020-01-29T15:32:10.914852Z node1@127.0.0.1 <0.1558.0> -------- open_result error {not_found,no_db_file} for shards
   [notice] 2020-01-29T15:32:10.915021Z node1@127.0.0.1 <0.1519.0> e92985c5e2 localhost:15984 127.0.0.1 admin GET /_node/_local/shards%2f00000000-7fffffff%2fabc.1580273428 404 ok 4
   ```
   
   I'll see if I can work around this.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services