owncloud / owncloud/ocis

Infinite loop when trying to login

Open
#6,722 15 comments 0 reactions 0 assignees View on GitHub
Status:Needs-Info Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

## Describe the bug

Hello,
I host Owncloud OCIS app in TrueNas Scale.
Recently, maybe after some upgrade of the app, I cannot login to Owncloud anymore.
I get into an infinite loop when I try to login.

The earliest error is `runtime error: invalid memory address or nil pointer dereference`..

Here is the log:
```

2023-07-05 08:05:28.097167+00:00pkg=rgrpc service=storage-system traceid=00000000000000000000000000000000
2023-07-05 08:05:28.097202+00:002023-07-05T08:05:28Z ERR unary code=Internal end="05/Jul/2023:08:05:28 +0000" from=tcp://127.0.0.1:40236 pkg=rgrpc service=storage-system start="05/Jul/2023:08:05:28 +0000" time_ns=2650725 traceid=00000000000000000000000000000000 uri=/cs3.storage.provider.v1beta1.ProviderAPI/Stat user-agent=grpc-go/1.51.0
2023-07-05 08:05:28.097238+00:002023-07-05T08:05:28Z ERR error initializing metadata client error="rpc error: code = Internal desc = runtime error: invalid memory address or nil pointer dereference" service=ocis
2023-07-05 08:05:28.097265+00:002023-07-05T08:05:28Z ERR Could not load roles error="{\"id\":\"go.micro.server\",\"code\":500,\"detail\":\"panic recovered: runtime error: invalid memory address or nil pointer dereference\",\"status\":\"Internal Server Error\"}" service=proxy
2023-07-05 08:05:28.097387+00:002023-07-05T08:05:28Z ERR Could not get user by claim error="{\"id\":\"go.micro.server\",\"code\":500,\"detail\":\"panic recovered: runtime error: invalid memory address or nil pointer dereference\",\"status\":\"Internal Server Error\"}" service=proxy
2023-07-05 08:05:28.784435+00:002023-07-05T08:05:28Z ERR Could not load roles error="{\"id\":\"com.owncloud.api.settings\",\"code\":502,\"detail\":\"circuit breaker is open\",\"status\":\"Bad Gateway\"}" service=proxy
2023-07-05 08:05:28.784754+00:002023-07-05T08:05:28Z ERR Could not get user by claim error="{\"id\":\"com.owncloud.api.settings\",\"code\":502,\"detail\":\"circuit breaker is open\",\"status\":\"Bad Gateway\"}" service=proxy
2023-07-05 08:05:29.133182+00:002023-07-05T08:05:29Z ERR Could not load roles error="{\"id\":\"com.owncloud.api.settings\",\"code\":502,\"detail\":\"circuit breaker is open\",\"status\":\"Bad Gateway\"}" service=proxy
2023-07-05 08:05:29.133278+00:002023-07-05T08:05:29Z ERR Could not get user by claim error="{\"id\":\"com.owncloud.api.settings\",\"code\":502,\"detail\":\"circuit breaker is open\",\"status\":\"Bad Gateway\"}" service=proxy
failed to create fsnotify watcher: too many open files
```

## Steps to reproduce

Steps to reproduce the behavior:

1. open login page
2. enter login and password

## Expected behavior
The user should be signed in

## Actual behavior
Loop loop loop

## Setup
TrueNas Scale Bluefin

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.