Open link in a new tab

Content

Expand project menu

SOLVED: Nextcloud integration session expires, no access to files

Hi all

I managed to get my Nextcloud 28 connected to OpenProject successfully, and all was working like a charm! That was yesterday. I remember during my tests that at some point I had to log into Nextcloud and 'grant access' to OP. This tells me there is some cookie that was set. So yesterday everything worked excellently. However, I came back today, wanted to check out a few more things, and I ran into this error:

{
 "headers": {
   "normalizedNames": {},
   "lazyUpdate": null
 },
 "status": 500,
 "statusText": "Internal Server Error",
 "url": "https://projects.example.com/api/v3/work_packages/235/file_links?filters=[{%22storage%22:{%22operator%22:%22=%22,%22values%22:[%222%22]}}]",
 "ok": false,
 "name": "HttpErrorResponse",
 "message": "Http failure response for https://projects.example.com/api/v3/work_packages/235/file_links?filters=[{%22storage%22:{%22operator%22:%22=%22,%22values%22:[%222%22]}}]: 500 Internal Server Error",
 "error": {
   "_type": "Error",
   "errorIdentifier": "urn:openproject-org:api:v3:errors:InternalServerError",
   "message": "An internal error has occurred. unexpected token at '<?xml version=\"1.0\"?>\n<ocs>\n <meta>\n  <status>failure</status>\n  <statuscode>996</statuscode>\n  <message>Internal Server Error\n</message>\n </meta>\n <data/>\n</ocs>\n'"
 }
}

As you can clearly see, I have no access to my Nextcloud Storages. Checking from the admin pages, the integration shows all green.

All of my services run behind an HAProxy loadbalancer with SSL termination. So Nextcloud reaches OpenProject on HTTPS, but via the load balancer, and vice versa. I don't know if I need to set something special here? I also have both services connected via LDAP. So the same user is logged into both OP and NC via LDAP.

This baffles me as this was fully functional and might I say, working really nicely yesterday. But this session expiration thing is a kind of a deal-breaker, seeing as you cannot get to your work done 'yesterday'.

Any way I can fix this? TIA for any help.

Message actions

Anyone have any ideas?

Message actions

This was an issue with NC 28. I installed the latest 27 version and it seems the app is working as expected.

Message actions

Hello Hans,

do you still have the OpenProject logs for this time by any chance?
It woudl be interesting to know what the backend error message for the internal server error was.

Message actions

I ran into the same issue after upgrading to NC28.

Versions

  • OpenProject: 13.1.2 (also tried with 13.0.0)
  • Nextcloud Hub 7 (28.0.1)
  • OpenProject Integration 2.5.1

Logs

E, [2024-01-12T19:06:13.874406 #122] ERROR -- : [d5391390-ac38-4744-a874-b1301a293e21] user=5 unexpected token at '<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>996</statuscode>
  <message>Internal Server Error
</message>
 </meta>
 <data/>
</ocs>
': unexpected token at '<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>996</statuscode>
  <message>Internal Server Error
</message>
 </meta>
 <data/>
</ocs>
'

Solution

sadly, downgrading simply to NextCloud 27 is not an option for me. Any ideas? Is there an issue that tracks this?

Message actions

There is a Nextcloud issue for the bug. It's been closed in the meantime. But I have no idea if that actually means the bug has been fixed and when it will be released.

https://github.com/nextcloud/server/issues/42394

Message actions

Nice source for me.

There is a Nextcloud issue for the bug. It's been closed in the meantime. But I have no idea if that actually means the bug has been fixed and when it will be released.

https://github.com/nextcloud/server/issues/42394 battleship online

Message actions

Have you learned any more information yet?

There is a Nextcloud issue for the bug. It's been closed in the meantime. But I have no idea if that actually means the bug has been fixed and when it will be released.

https://github.com/nextcloud/server/issues/42394 geometry dash