gaia icon indicating copy to clipboard operation
gaia copied to clipboard

Missing File : Unexpected 404 Error : Used to Resolve, Now Missing

Open cryptocracy opened this issue 2 years ago • 12 comments

Describe the bug File that was Stored now returns a 404. No explanation, no Update or Delete calls were ever made after the initial write. The file size is 12.5 MB

To Reproduce Steps to reproduce the behavior:

  1. Go to https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647123247869.mp4
  2. Returns 404 Blob not found.

Expected behavior The file was previously resolvable, as it was the first file reference in the first Chime at served as an initial promo launch so to speak. At our app https://mia.derupt.io. (See next screenshot, of it being previously used as a src in video element, you can see the video is at 2 seconds into its 15 seconds)

Screenshots image

Share your zonefile zonefile: https://gaia.blockstack.org/hub/1J97mmBPXuv6p1EUX9EESiPnUNZXSVpETn/profile.json

Console log image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Latest: 99.0.4844.74

Additional context I do have a bit of an aggressive scan that attempts to find files sometimes at the wrong gaia hub, but I'm positive this is the correct hub, I'm wondering if my aggressive scanning some how flagged this promo video as spam or something?

cryptocracy avatar Mar 19 '22 01:03 cryptocracy

No idea what changed but this file now appears to be resolving again. Can anyone shed light on why it was 404'ing for awhile?

cryptocracy avatar Mar 22 '22 22:03 cryptocracy

Glad its working again. To understand why it happened, I think someone would have to check the logs on the server.

criadoperez avatar Mar 23 '22 08:03 criadoperez

So once again I'm having troubles again with GAIA returning 404's for Files that I know should be there. This time its not only the same file as before ... but also a new different files from the same account and different account.

The new missing file(404'ing) should be a png at: https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647988098857.png but returns 404 blob not found when attempting to get the file

Another missing file(404'ing) should be a gif at: https://gaia.blockstack.org/hub/1MzJdLMwQ66KZvtBAFKnESynKGthyt4sh1/gaia-1647245409819.gif but returns 404 blob not found when attempting to get the file (note this file is from a separate .btc name account then the others)

cryptocracy avatar Mar 25 '22 06:03 cryptocracy

unclear if you are the person to look into the servers logs, but @criadoperez I'm tagging you to bring this back to your attention since something seemingly is up with the host environments being periodically unavailable.

cryptocracy avatar Mar 25 '22 06:03 cryptocracy

@cryptocracy The only file that exists in this hub (19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC) is: https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647641797279.png

Do multiple users have access to this hub? Hiro hasn't deleted anything from it.

CharlieC3 avatar Mar 30 '22 18:03 CharlieC3

@CharlieC3 The file is not randomly returning still I see. No multiple users do not have access to this hub. The other file(s) in question should be there, so still no clue why they are not being found.

To give more context on our UI/UX here:

app: https://mia.derupt.io All users auth with their Hiro Extension. then if they own a Deruptar NFT and have the MIA and STX to complete a tx, they can Create a Chime(with a file attachment path included).

So the way this works is after auth, users can goto our form for creating a new Chime. If they own a .btc name they can upload a File(png, gif, mp3, or mp4) to GAIA per the stacks storage library. The file naming convention is just a epoch timestamp relative to time of upload initialization. After(if) a file is upload, the app sets the file name as a value in transaction argument data of a Derupt smart contract call send-message.

Our app UX has 0 methods facilitated to manage files whats so ever, its literally just a upload and attach file uri value as a tx argument basically. (upon which later we get the gaia hub per name and app origin, then concat that hub url to the file name, then use that full public path as the src in our front end media elements by type)

cryptocracy avatar Mar 30 '22 22:03 cryptocracy

So to be extra clear here are the multiple missing files that do not make any sense from what I can tell:

relative to user: cryptocracy.btc https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647123247869.mp4 https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647988098857.png

relative to user: cryptony.btc https://gaia.blockstack.org/hub/1MzJdLMwQ66KZvtBAFKnESynKGthyt4sh1/gaia-1647245409819.gif

cryptocracy avatar Mar 30 '22 22:03 cryptocracy

@cryptocracy Are you seeing this issue happen with files uploaded more recently? The one file that loads successfully (https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647641797279.png) was uploaded on March 18th, and we don't keep logs that far back. I'm wondering if this was an underlying issue caused by the storage provider.

Are you able to re-upload the files for now? I think our best chance at debugging this would have to come from a more recent case.

CharlieC3 avatar Mar 30 '22 23:03 CharlieC3

@CharlieC3 Are you seeing this issue happen with files uploaded more recently?

Yes: file: https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1647988098857.png epoch/time: 1647988098857 (~Tuesday, March 22, 2022 10:28:18.857 PM GMT)

The image is just a flyer graphic for announcing the recent in app competition for trying to incentivize users to create Chimes and get some initial Chimes content created.

cryptocracy avatar Mar 31 '22 07:03 cryptocracy

@cryptocracy Anything within the past 7 days?

CharlieC3 avatar Mar 31 '22 13:03 CharlieC3

Makes me wonder if its worth creating a feature so any user can easily see his own logs on the gaia hub, to confirm the activity.

criadoperez avatar Apr 01 '22 11:04 criadoperez

@cryptocracy Anything within the past 7 days?

Not yet, I've uploaded a new file https://gaia.blockstack.org/hub/19D1FXF4BQmfgvreuYZ4qncLhSr2Hx4uuC/gaia-1648859602303.png to see if it will reproduce.

It should be noted that the .mp4 file in question from the op followed this pattern:

  • 404'ing at around the time of my original post here(14 days ago).
  • then, as indicated above, for some reason was accessible again(10 days ago).
  • then 2 days later, started 404'ing again(8 days ago).

cryptocracy avatar Apr 02 '22 01:04 cryptocracy