Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4728

FIWARE.Request.Tech.Cloud.ObjectStorage.Cloud.CloudPortal.Problem downloading object from object storage

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None
    • HD-Chapter:
      Cloud
    • HD-Enabler:
      Object Storage

      Description

      From: Massimo Corna massimo.corna@krill.eu
      Sent: Thursday, October 08, 2015 11:20 AM
      To: Chulani, Ilknur
      Subject: Problem download object from object storage

      Good morning

      Sorry to bother you again, but I have a problem with the download of charged objects in the object storage.

      Load an object (file) in containers through code:

      curl -i $publicURL/janeausten/helloworld.txt -X PUT -H "Content-Length: 1" -H "Content-Type: text/html; charset=UTF-8" -H "X-Auth-Token: $token"

      the object is loaded correctly

      "Problem" If I try to download the object with web interface fiware lab I am waiting without being able to download the item
      as shown in attached (Wait.jpg)

      if I try to download the object through this code:

      curl -i $publicURL/marktwain/goodbye -X GET -H "X-Auth-Token: $token"

      object is downloaded without problems and without errors

      If I load the object from the web of fiware lab (containers.jpg upload.jpg)

      and then later try to download (download object )I do not remain in wait state (wait.jpg) and the object download.

      I apologize again for the inconvenience but I made many unsuccessful attempts to solve this problem

      thanks for the help


      http://www.e-levelcom.com/elevel/krill.png
      Massimo Corna
      Developer

      Krill Srl
      Via Casale, 5
      20144 Milano (MI)
      Tel: +39 02 8907 5413
      Fax: +39 02 3206 6978
      Mob: +39 393 911 3793
      Skype: massimo.corna
      http://www.<http://www.e-levelcom.com/>krill.eu<http://krill.eu/>
      _______________________________________________
      Fiware-fiadopt-coaching mailing list
      Fiware-fiadopt-coaching@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-fiadopt-coaching

      1. Upload-3.jpg
        195 kB
      2. Upload-2.jpg
        194 kB
      3. Upload-1.jpg
        186 kB
      4. Result Download.jpg
        119 kB
      5. Result-1.jpg
        141 kB
      6. Download.jpg
        146 kB

        Issue Links

          Activity

          Hide
          ichulani ilknur chulani added a comment -

          Dear Kalman,

          Thanks very much for your help with this ticket. For future tickets, may I kindly request you to use the email functionality (top right corner) of JIRA to add a comment, so the external users can receive it. You can find their email address in the original text of the ticket.

          Thanks & regards,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Kalman, Thanks very much for your help with this ticket. For future tickets, may I kindly request you to use the email functionality (top right corner) of JIRA to add a comment, so the external users can receive it. You can find their email address in the original text of the ticket. Thanks & regards, ilknur
          Hide
          ichulani ilknur chulani added a comment -

          Dear Massimo,

          Here is the comment from the Object Storage GE owner, incase this comment did not reach your inbox:

          "From what I understand, the issue is that there is incorrect documentation in the tutorial https://edu.fiware.org/mod/scorm/view.php?id=723. I am unable to access https://edu.fiware.org/mod/scorm/view.php?id=723, and it seems to have been removed.

          I do not know what was the content of that tutorial. All current tutorials are accessible through https://edu.fiware.org/course/view.php?id=130. Do you perhaps mean https://edu.fiware.org/mod/scorm/view.php?id=823?

          It seems that certain operations through the portal or CDMI convert objects to base64.

          I recommend to not mix the access methods. Either use only the native Swift interfaces as presented in the courses on https://edu.fiware.org/course/view.php?id=130 or use only the portal interface."

          Therefore the ticket is closed.

          Show
          ichulani ilknur chulani added a comment - Dear Massimo, Here is the comment from the Object Storage GE owner, incase this comment did not reach your inbox: "From what I understand, the issue is that there is incorrect documentation in the tutorial https://edu.fiware.org/mod/scorm/view.php?id=723 . I am unable to access https://edu.fiware.org/mod/scorm/view.php?id=723 , and it seems to have been removed. I do not know what was the content of that tutorial. All current tutorials are accessible through https://edu.fiware.org/course/view.php?id=130 . Do you perhaps mean https://edu.fiware.org/mod/scorm/view.php?id=823? It seems that certain operations through the portal or CDMI convert objects to base64. I recommend to not mix the access methods. Either use only the native Swift interfaces as presented in the courses on https://edu.fiware.org/course/view.php?id=130 or use only the portal interface." Therefore the ticket is closed.
          Hide
          meth Kalman Meth added a comment -

          From what I understand, the issue is that there is incorrect documentation in the tutorial https://edu.fiware.org/mod/scorm/view.php?id=723. I am unable to access https://edu.fiware.org/mod/scorm/view.php?id=723, and it seems to have been removed. I do not know what was the content of that tutorial. All current tutorials are accessible through https://edu.fiware.org/course/view.php?id=130. Do you perhaps mean https://edu.fiware.org/mod/scorm/view.php?id=823?

          It seems that certain operations through the portal or CDMI convert objects to base64. I recommend to not mix the access methods. Either use only the native Swift interfaces as presented in the courses on https://edu.fiware.org/course/view.php?id=130 or use only the portal interface.

          Show
          meth Kalman Meth added a comment - From what I understand, the issue is that there is incorrect documentation in the tutorial https://edu.fiware.org/mod/scorm/view.php?id=723 . I am unable to access https://edu.fiware.org/mod/scorm/view.php?id=723 , and it seems to have been removed. I do not know what was the content of that tutorial. All current tutorials are accessible through https://edu.fiware.org/course/view.php?id=130 . Do you perhaps mean https://edu.fiware.org/mod/scorm/view.php?id=823? It seems that certain operations through the portal or CDMI convert objects to base64. I recommend to not mix the access methods. Either use only the native Swift interfaces as presented in the courses on https://edu.fiware.org/course/view.php?id=130 or use only the portal interface.
          Hide
          ichulani ilknur chulani added a comment -

          Dear Kalman, could you take a look at this issue again? It seems the problem is reproducable with example in the Object storage tutorial.

          It happens when you download an object through the portal, after having uploaded it through the code of the tutorial. Could you kindly try to see if you observe the same behavior with your setup?

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Kalman, could you take a look at this issue again? It seems the problem is reproducable with example in the Object storage tutorial. It happens when you download an object through the portal, after having uploaded it through the code of the tutorial. Could you kindly try to see if you observe the same behavior with your setup? Thanks, ilknur
          Hide
          ichulani ilknur chulani added a comment -

          comment from Massimo

          "The problem only if i download object from portal.
          I upload the object as a tutorial and download always as tutorials without problem, but If I try to download the object from the portal can not.

          If upload object through the portal I can download it from the portal without problem.

          upload object command and code --------> download object command and code but no portal

          upload object portal ----------> download object portal"

          Show
          ichulani ilknur chulani added a comment - comment from Massimo "The problem only if i download object from portal. I upload the object as a tutorial and download always as tutorials without problem, but If I try to download the object from the portal can not. If upload object through the portal I can download it from the portal without problem. upload object command and code --------> download object command and code but no portal upload object portal ----------> download object portal"
          Hide
          ichulani ilknur chulani added a comment -

          Dear Massimo,

          Just a question, regarding “I am attaching also a piece of code that I used node js and that the same problem that occurs using the procedure of the tutorial.”..

          When you use the procedure of the tutorial, do you mean you have the problem also when downloading through the command line? Or only when you download the object through the portal?

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Massimo, Just a question, regarding “I am attaching also a piece of code that I used node js and that the same problem that occurs using the procedure of the tutorial.”.. When you use the procedure of the tutorial, do you mean you have the problem also when downloading through the command line? Or only when you download the object through the portal? Thanks, ilknur
          Hide
          aalonsog Alvaro Alonso added a comment -

          The question now is related with the Object Storage course. Could you assign the ticket to the owner of this GE? Thanks

          Show
          aalonsog Alvaro Alonso added a comment - The question now is related with the Object Storage course. Could you assign the ticket to the owner of this GE? Thanks
          Hide
          ichulani ilknur chulani added a comment -

          Dear Alvaro,

          Here is additional info from Massimo:

          "I tried the command that has shown me and everything works but it is not practical to convert a large file and then send it in base64.

          To send the file without converting it into base64 I used the steps in your course online at this address:
          https://edu.fiware.org/mod/scorm/view.php?id=723

          if it isn't a problem related to my account as Wstore, and follow the tutorial able to replicate the problem : The file is loaded in object storage correctly, download correctly throw command but not download from web.

          Fortunately not an issue that affects our project wanted to understand why this was happening I am attaching also a piece of code that I used node js and that the same problem that occurs using the procedure of the tutorial.

          Source code node js
          -----------------
          var token = req.session.token_objst;
          console.log(token);
          var filename = "filename";
          var user = "username";
          request({
          method: 'PUT';
          headers:

          { 'X-Auth-Token': token, 'X-Object-Meta-Desc': 'Descrizione', }

          ,
          uri: 'http://148.6.80.5:8080/v1/......./' + user + "/" + filename,
          multipart: [

          { 'Content-Type': 'text/html; charset=UTF-8', body: fs.createReadStream('public/temp/' + user + '/temp/' + filename), }

          ]
          },
          function (error, response, body) {
          if (error)

          { return console.error('upload failed:', error); }

          console.log('Upload successful! Server responded with:', response);
          });
          ---------------------------------------

          Thanks a lot"

          Show
          ichulani ilknur chulani added a comment - Dear Alvaro, Here is additional info from Massimo: "I tried the command that has shown me and everything works but it is not practical to convert a large file and then send it in base64. To send the file without converting it into base64 I used the steps in your course online at this address: https://edu.fiware.org/mod/scorm/view.php?id=723 if it isn't a problem related to my account as Wstore, and follow the tutorial able to replicate the problem : The file is loaded in object storage correctly, download correctly throw command but not download from web. Fortunately not an issue that affects our project wanted to understand why this was happening I am attaching also a piece of code that I used node js and that the same problem that occurs using the procedure of the tutorial. Source code node js ----------------- var token = req.session.token_objst; console.log(token); var filename = "filename"; var user = "username"; request({ method: 'PUT'; headers: { 'X-Auth-Token': token, 'X-Object-Meta-Desc': 'Descrizione', } , uri: 'http://148.6.80.5:8080/v1/......./' + user + "/" + filename, multipart: [ { 'Content-Type': 'text/html; charset=UTF-8', body: fs.createReadStream('public/temp/' + user + '/temp/' + filename), } ] }, function (error, response, body) { if (error) { return console.error('upload failed:', error); } console.log('Upload successful! Server responded with:', response); }); --------------------------------------- Thanks a lot"
          Hide
          ichulani ilknur chulani added a comment -

          Dear Massimo,

          Emailing you the response from Alvaro just incase you were not able to get notified through the JIRa system:

          "Hi,
          I'm trying to reproduce the problem but I can't.
          I'm uploading an object using a curl request:
          curl publicURL/container/object -X PUT -H "X-Auth-Token: token" -d '{"mimeType":"mimetype","metadata":{},"valuetransferencoding":"base64","value":"value"}'
          and then downloading it succesfully from the cloud portal.
          Please, check that you are using the correct body. If not, contact the owner of the specific node you are using."

          Could you kindly let us know if you can download objects if you upload them using a curl command like Alvaro's? can we close the ticket?

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Massimo, Emailing you the response from Alvaro just incase you were not able to get notified through the JIRa system: "Hi, I'm trying to reproduce the problem but I can't. I'm uploading an object using a curl request: curl publicURL/container/object -X PUT -H "X-Auth-Token: token" -d '{"mimeType":"mimetype","metadata":{},"valuetransferencoding":"base64","value":"value"}' and then downloading it succesfully from the cloud portal. Please, check that you are using the correct body. If not, contact the owner of the specific node you are using." Could you kindly let us know if you can download objects if you upload them using a curl command like Alvaro's? can we close the ticket? Thanks, ilknur
          Hide
          ichulani ilknur chulani added a comment -

          Dear Massimo,

          Can we close this ticket? Are you able to download the object if you upload it using a similar command as the one Alvaro used?

          Best regards,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Massimo, Can we close this ticket? Are you able to download the object if you upload it using a similar command as the one Alvaro used? Best regards, ilknur
          Hide
          aalonsog Alvaro Alonso added a comment -

          Hi,

          I'm trying to reproduce the problem but I can't.

          I'm uploading an object using a curl request:

          curl publicURL/container/object -X PUT -H "X-Auth-Token: token" -d '{"mimeType":"mimetype","metadata":{},"valuetransferencoding":"base64","value":"value"}'

          and then downloading it succesfully from the cloud portal.

          Please, check that you are using the correct body. If not, contact the owner of the specific node you are using.

          BR

          Show
          aalonsog Alvaro Alonso added a comment - Hi, I'm trying to reproduce the problem but I can't. I'm uploading an object using a curl request: curl publicURL/container/object -X PUT -H "X-Auth-Token: token" -d '{"mimeType":"mimetype","metadata":{},"valuetransferencoding":"base64","value":"value"}' and then downloading it succesfully from the cloud portal. Please, check that you are using the correct body. If not, contact the owner of the specific node you are using. BR
          Hide
          ichulani ilknur chulani added a comment -

          Dear Alvaro,

          Is the info Massimo provided sufficient for you? Can you kindly help? Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Alvaro, Is the info Massimo provided sufficient for you? Can you kindly help? Thanks, ilknur
          Hide
          fw.ext.user FW External User added a comment -

          Good morning
          I have attached to this mail the images of the procedure that i used to
          load the object in objectstorage (Upload-1, Upload-2, Upload-3), the image
          of the result (Result-1) and the image of the procedure to download the
          object from the web (download) the result of this procedure (error) is seen
          in the result-Download, the wheel of wait is always visible and does not
          display the download window.

          I hope it is clear what the problem is, as I wrote earlier discharge if the
          object using the tools indicated in the figures and I can use the GET
          command to download the object correctly.

          Thankyou
          Massimo Corna

          Massimo Corna
          Developer

          Krill Srl
          Via Casale, 5
          20144 Milano (MI)
          Tel: +39 02 8907 5413
          Fax: +39 02 3206 6978
          Mob: +39 393 911 3793
          Skype: massimo.corna
          http://www. <http://www.e-levelcom.com/>krill.eu

          Please consider the environment before printing this e-mail.
          This email and any attachments are confidential to the intended recipient
          and may also be privileged. If you are not the intended recipient please
          delete it from your system and notify the sender. You should not copy it or
          use it for any purpose nor disclose or distribute its contents to any other
          person. Any improper use of this email and its attachments will lead to the
          person responsible having to deal with all the associated civil and
          criminal consequences of their actions (Legislative Decree 196/03 and
          Directive 2002/58/EC). The sender shall not be liable for the improper or
          incomplete transmission of the information contained in this communication
          nor for any delay in its receipt or damage to your system. The sender does
          not guarantee that the integrity of this communication has been maintained
          nor that this communication is free of viruses, interceptions or
          interference.

          Show
          fw.ext.user FW External User added a comment - Good morning I have attached to this mail the images of the procedure that i used to load the object in objectstorage (Upload-1, Upload-2, Upload-3), the image of the result (Result-1) and the image of the procedure to download the object from the web (download) the result of this procedure (error) is seen in the result-Download, the wheel of wait is always visible and does not display the download window. I hope it is clear what the problem is, as I wrote earlier discharge if the object using the tools indicated in the figures and I can use the GET command to download the object correctly. Thankyou Massimo Corna – Massimo Corna Developer Krill Srl Via Casale, 5 20144 Milano (MI) Tel: +39 02 8907 5413 Fax: +39 02 3206 6978 Mob: +39 393 911 3793 Skype: massimo.corna http://www . < http://www.e-levelcom.com/ >krill.eu Please consider the environment before printing this e-mail. This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. Any improper use of this email and its attachments will lead to the person responsible having to deal with all the associated civil and criminal consequences of their actions (Legislative Decree 196/03 and Directive 2002/58/EC). The sender shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. The sender does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference.
          Hide
          ichulani ilknur chulani added a comment -

          Dear Massimo,

          Alvaro is asking for an example of the code/command you used to upload the object so he can reproduce the issue.

          Here is his comment from Thursday, incase it was not delivered to you through JIRA:
          "Hi,
          the only tests I performed are downloading objects that have been uploaded using the cloud portal. It is working also for you, right?
          could you send me a complete example of the curl request to upload an object?"

          Please kindly reply to this email (adding me to cc) so we can further investigate the issue.

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Massimo, Alvaro is asking for an example of the code/command you used to upload the object so he can reproduce the issue. Here is his comment from Thursday, incase it was not delivered to you through JIRA: "Hi, the only tests I performed are downloading objects that have been uploaded using the cloud portal. It is working also for you, right? could you send me a complete example of the curl request to upload an object?" Please kindly reply to this email (adding me to cc) so we can further investigate the issue. Thanks, ilknur
          Hide
          aalonsog Alvaro Alonso added a comment -

          Hi,

          the only tests I performed are downloading objects that have been uploaded using the cloud portal. It is working also for you, right?

          could you send me a complete example of the curl request to upload an object?

          Show
          aalonsog Alvaro Alonso added a comment - Hi, the only tests I performed are downloading objects that have been uploaded using the cloud portal. It is working also for you, right? could you send me a complete example of the curl request to upload an object?
          Hide
          ichulani ilknur chulani added a comment -

          Dear Alvaro,

          Are you the owner of the Cloud portal? Would you be able to check the issue reported about downloading objects from the portal?

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Alvaro, Are you the owner of the Cloud portal? Would you be able to check the issue reported about downloading objects from the portal? Thanks, ilknur
          Hide
          meth Kalman Meth added a comment -

          The user reports that direct calls to the Object Storage work OK. it is only when going through the fiware web interface that there is a problem. I suggest to forward this issue to the fiware portal component, so they can check out the web interface.

          Show
          meth Kalman Meth added a comment - The user reports that direct calls to the Object Storage work OK. it is only when going through the fiware web interface that there is a problem. I suggest to forward this issue to the fiware portal component, so they can check out the web interface.
          Hide
          ichulani ilknur chulani added a comment -

          Btw, since the system does not allow me to change the reporter of the bug, Massimo won't be able to see your response in the comments. Could you also kindly use the email menu on top right most corner on this page and email massimo.corna@krill.eu with your comments?

          Thanks in advance,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Btw, since the system does not allow me to change the reporter of the bug, Massimo won't be able to see your response in the comments. Could you also kindly use the email menu on top right most corner on this page and email massimo.corna@krill.eu with your comments? Thanks in advance, ilknur
          Hide
          ichulani ilknur chulani added a comment -

          Dear Kalman,

          Could you kindly provide some assistance to Massimo? He is from TeachByApp, a beneficiary SME of the FI-ADOPT accelerator.

          The related screenshots of the error he is getting is in the main ticket from the coahing help desk. HELC-1077.

          Thanks in advance for your help.

          illknur

          Show
          ichulani ilknur chulani added a comment - Dear Kalman, Could you kindly provide some assistance to Massimo? He is from TeachByApp, a beneficiary SME of the FI-ADOPT accelerator. The related screenshots of the error he is getting is in the main ticket from the coahing help desk. HELC-1077 . Thanks in advance for your help. illknur

            People

            • Assignee:
              meth Kalman Meth
              Reporter:
              ichulani ilknur chulani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: