Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
paradigma-cl opened this issue Jan 21, 2020 · 12 comments
Open

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

paradigma-cl opened this issue Jan 21, 2020 · 12 comments

Comments

@paradigma-cl
Copy link

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
Copy link
Author

Has the behaviour of the Gaia Hub funtionality changed?

@zone117x
Copy link
Member

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

@paradigma-cl
Copy link
Author

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
Copy link
Author

@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?

@Nsandomeno
Copy link

@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.

@paradigma-cl
Copy link
Author

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

@Nsandomeno
Copy link

@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.

@paradigma-cl
Copy link
Author

paradigma-cl commented Jan 24, 2020

@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.

@dantrevino
Copy link
Contributor

dantrevino commented Jan 28, 2020

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.

@zone117x
Copy link
Member

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.

@Nsandomeno
Copy link

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.

@paradigma-cl
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants