pondersource / sciencemesh-php

Connect your Nextcloud server to Sciencemesh
MIT License
0 stars 1 forks source link

Uploads failing? #165

Open michielbdejong opened 1 year ago

michielbdejong commented 1 year ago

Daniel wrote:

I just investigated the failing health checks, and the reason is that uploads through Reva are currently failing for all the "real" deployments. I also checked with the Reva CLI, same effect: Uploads don't work.

michielbdejong commented 1 year ago

I just tested it, and I also got some problems but it seems that it depends on the config. If you use this config then uploads work, both in Network Alpha ("mentix-fixes" image) and even in Network Beta (latest Reva master), I tested that with this script.

But in this test, that uses the sciencemesh blessed config, uploads indeed seem to fail!

michielbdejong commented 1 year ago

Update: It wasn't actually using sciencemesh blessed config, but an out-of-date one, fixed here

michielbdejong commented 1 year ago

Apparently this is still failing for Daniel (and others?). maybe it happens when reva CLI runs on a different server than revad?

I'm trying to test this and nstalled the Reva CLI @ me/mentix-fixes on my laptop, but now blocked on https://github.com/pondersource/sciencemesh-php/issues/172 while trying to reproduce this. Will try to find time later this week to look into this further.

Daniel-WWU-IT commented 1 year ago

This doesn't only happen with the Reva CLI, it also happens with the health checks that our monitoring is performing. And yes, it happens for most other sites as well (which are running the integration). With our "old" deployment (the central brain), which runs a recent Reva but not your blessed version, uploading still works. So either something has been broken, or it's a configuration issue.

michielbdejong commented 1 year ago

I found this error in the Nextcloud logs that might be related:

 Call to undefined method OC\\Files\\Node\\Folder::putContent() in file '/var/www/html/apps/sciencemesh/lib/Controller/RevaController.php' line 841
michielbdejong commented 1 year ago

Ah that happens when you try upload -protocol=simple ./README.md /home/asdf instead of upload -protocol=simple ./README.md /home/asdf/README.md. With the latter, it works for me.

Daniel-WWU-IT commented 1 year ago

No difference for me (I always add the filename, as that issue is known for 3 years now ;)).

michielbdejong commented 1 year ago

See https://bbe.sciencemesh.uni-muenster.de/