Discussion Forums

Problems Running the Sample Analysis in Octave

9 replies [Last post]
dbjrmn
Offline
Joined: 2010-11-14
Posts: 6

I am in this document:

   http://support.cloudant.com/faqs/seticloud/introduction-to-seticloud-res...

At one point it states:
   Duplicate the design document by doing the following cURL command:
   curl http://username:password@username.seti.cloudant.com/_design/myfirstanalysis -X COPY -H 'Destination:_design/newanalysis'

Up to that point there has been little or no information on executing commands using the right-side input area. So I attemt to execute the curl command locally (i.e. Terminal on OS X). When I do I receive the following:

   {"error":"forbidden","reason":"_admin access is required for this request"}

Can someone who has successfully completed the steps in the above document comment on what I am doing wrong, and possibly provide input on their experience in comming up to speed withthe cloudant environment?

Thanks

David

 

dbjrmn
Offline
Joined: 2010-11-14
Posts: 6
I was able to execute this

I was able to execute this command:
   curl -X PUT http://username:password@username.seti.cloudant.com/newdb

Receiving:
   {"ok":true}

dbjrmn
Offline
Joined: 2010-11-14
Posts: 6
Other commands that do not

Other commands that do not work when I provide my username and password:

curl -X GET http://username:password@username.seti.cloudant.com/rawdata/_design/myfi...

  {"error":"forbidden","reason":"_reader access is required for this request"}

curl -X GET http://username:password@username.seti.cloudant.com/rawdata/_design/myfi...

  {"code":500,"error":"unknown_error","reason":"dead_shards"}

Anders Feder
Offline
Joined: 2010-04-22
Posts: 618
Have you received any

Have you received any response from David Hardtke on this? I'm not currently on a system that supports cURL, so I can't test it out.

d.brownjr
Offline
Joined: 2010-10-05
Posts: 10
Have you received any

The problems I have been having I have reported to cloudant support. I do expect anyone to address them immediately. I just think it is worthwile that such issues are documented.

avinash
Offline
Joined: 2010-01-26
Posts: 278
It will be best if we can

It will be best if we can record all our issues at a single place. For now, that place is issues.setiquest.org. So, if you have not already done so, I suggest that you create a login account there, and enter all issues that you find. Put Cloudant related issues under setiCloud.

Thanks.

gregclinton
Offline
Joined: 2011-01-16
Posts: 1
I am getting the same error

I am getting the same error when trying to upload a design doc or delete a database with curl. Have you figured it out yet?

dbjrmn
Offline
Joined: 2010-11-14
Posts: 6
Copy via CURL

I tried this again and it worked. The response is appended below. I was ready to chalk this up to the bad copy-n-paste from the browser, but I tried that and it worked. Due to my experience with curl over the past 3 months, the error comes up the most when I forget to include my username after the @ symbol. So it is:

username : password @ username . seti.cloudant.com

The error suggests validation failed for the operation you were attempting, so if you selected an admin only resource I assume a similar message would be posted. Ensure you have spaces in the correct place. I copied the example from the webpage and placed a carrot (^) symbol where a space should be.

curl^http://username:password@username.seti.cloudant.com/rawdata/_design/myfirstanalysis^-X^COPY^-H^'Destination:_design/newanalysis'

A typical response.
{"id":"_design/newanalysis","rev":"1-6b1e14c9d992dc859e275426c2ad5ce0"}

avinash
Offline
Joined: 2010-01-26
Posts: 278
Good to hear that it worked

Good to hear that it worked ... I think.

I am also looking for some advice from you all. Given that the current implementation is buggy and there is no further development going on, we have two choices - either to leave it as it is, or to remove it so that others are not led down a futile path. What would your suggestion be?

Thanks.

Avinash

dbjrmn
Offline
Joined: 2010-11-14
Posts: 6
Leave it for now

I think it contais good information, good enought that I just saved myself a copy in the event it someday goes away. However, to me it seems more geared for someone with some experience. An example would be the "Uploading a Design Document" section, which contains more JSON detail than I have ever had to deal with.  Based on my experience I feel that a beginner should initially only be concerned with how to get things done through the UI, how to determine chop to URL mapping, how to retrieve the URL and then retrieve the data (for processing), and how to ensure you are returning a valid JSON structure (e.g. using %s for string and %d for int).

So as opposed to doing away with it I think an entry level version is needed. However, I do agree that it could be cleaned up and possibly made more relevant to the type of tasks one would normally carry out.

David.