gaia icon indicating copy to clipboard operation
gaia copied to clipboard

Any way to know the status of a GAIA hub service?

Open paradigma-cl opened this issue 5 years ago • 12 comments

Since Jan 18 2020 we have seen a change of behaviour when putting a file in a gaia hub space. We get a file update it, and put it back. Then getting it again, only the initial contents are seen. Behaves as a blocked file. The same happens for different users. Is there any commands to know the status of a Gaia hub service? Space available, state of the files, etc?

paradigma-cl avatar Jan 21 '20 21:01 paradigma-cl

Has the behaviour of the Gaia Hub funtionality changed?

paradigma-cl avatar Jan 22 '20 15:01 paradigma-cl

Are you seeing this behavior on the PBC hosted hub at https://hub.blockstack.org? Or are you running your own Gaia hub?

zone117x avatar Jan 22 '20 17:01 zone117x

Yes, the behaviour is seen on https://hub.blockstack.org . The putfile works when there is no existing file, but now if exists, it does not replace it. The .then indicates that the saving was succesful, but when we get the contents of the file, it only has the original data.

paradigma-cl avatar Jan 22 '20 18:01 paradigma-cl

@zone117x We are still facing problems with the update of files (put a file with an existant file with the same name) in the Gaia Hub Server hosted by PBC. Can create a file, but then cannot be updated. It maintains the same content. Also we see some intermittance when putting a new file. This started happening last Friday 17th. It behaves like this, does not matter if the user has a new account or old. Our application cannot be used because of this. Any ideas?

paradigma-cl avatar Jan 22 '20 23:01 paradigma-cl

@zone117x We are still facing problems with the update of files (put a file with an existant file with the same name) in the Gaia Hub Server hosted by PBC. Can create a file, but then cannot be updated. It maintains the same content. Also we see some intermittance when putting a new file. This started happening last Friday 17th. It behaves like this, does not matter if the user has a new account or old. Our application cannot be used because of this. Any ideas?

Experiencing the same thing.

Nsandomeno avatar Jan 23 '20 18:01 Nsandomeno

@Nsandomeno Did you notice that new files now (today) are not set as readonly? And probably some of the old ones kept like that?

paradigma-cl avatar Jan 23 '20 21:01 paradigma-cl

@paradigma-cl I have not noticed that but my files are still not successfully uploading to Gaia as they once were. Still no sign of any solution to this. I would have thought an issue like this would have been experienced more broadly.

Nsandomeno avatar Jan 24 '20 00:01 Nsandomeno

@Nsandomeno Have you seen the same behaviour with different users? Since, this morning (Thursday) we noticed that new files could be uploaded and updated. The older ones, most of them, the behave as readonly. Maybe the folder you are using is redonly also? It could be good to check that.

paradigma-cl avatar Jan 24 '20 00:01 paradigma-cl

I ran into the following today:

POST https://hub.blockstack.org/store/1AdqWQnAMsb8uQsrZy96G2P7HYd1zkpMnr/key.json 500
App.vue?234e:175 error uploading public key:  Error: Error when uploading to Gaia hub
    at Object.eval (hub.js?a757:45)
    at Generator.next (<anonymous>)
    at fulfilled (hub.js?a757:4)```

I'm using blockstack 19.3.0.

dantrevino avatar Jan 28 '20 23:01 dantrevino

Looks like there was an unintended breaking change with the Azure driver (used by the public hub), where uploading zero-byte length files triggers this error. Can anyone confirm that this is the use case?

The error is also triggered when content-length is missing from the POST request. However, if I understand correctly, it is not possible to omit that content-length in a regular web browser fetch POST request w/ CORs. It would require using a lib/tool outside the web browser (like in a node.js app, electron, native mobile app, etc) -- is anyone doing this?

I'll open issues for fixing the zero-byte error and improved error handling rather than a 5xx. Could also allow unspecified content-length, need to review and make sure this won't cause any other problems.

zone117x avatar Jan 29 '20 14:01 zone117x

This started working for me again on Monday without any changes to my code. Today I am now running into: Failed to load resource: the server responded with a status of 404 ()... again no changes to code.

Nsandomeno avatar Jan 29 '20 19:01 Nsandomeno

We need to write a diagnostic tool telling us what is the state of the Gaia Storage as I proposed in https://forum.blockstack.org/t/problems-of-permissions-and-accesability-of-gaia-hub/10208/7?u=proe

paradigma-cl avatar Jan 29 '20 23:01 paradigma-cl