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

502 error after disabling auto accepting #7441

Closed
ScharfViktor opened this issue Oct 9, 2023 · 1 comment · Fixed by #7460
Closed

502 error after disabling auto accepting #7441

ScharfViktor opened this issue Oct 9, 2023 · 1 comment · Fixed by #7460
Assignees
Labels

Comments

@ScharfViktor
Copy link
Contributor

  • start ocis with FRONTEND_AUTO_ACCEPT_SHARES: "true"
  • marie shares folder1 to admin
  • set FRONTEND_AUTO_ACCEPT_SHARES: "false" and run ocis again or set FRONTEND_AUTO_ACCEPT_SHARES: "false" only for one user. see how here Auto Accept Shares #7097
  • marie shares folder2 to admin and admin accepts share

Actual: 502 error. amin cannot accepts folder
Screenshot 2023-10-09 at 17 26 28

log:

2023-10-09 17:30:45 2023/10/09 15:30:45 http: panic serving 127.0.0.1:37492: runtime error: invalid memory address or nil pointer dereference
2023-10-09 17:30:45 goroutine 6717 [running]:
2023-10-09 17:30:45 net/http.(*conn).serve.func1()
2023-10-09 17:30:45     net/http/server.go:1854 +0xb0
2023-10-09 17:30:45 panic({0x3e17580, 0x5c54240})
2023-10-09 17:30:45     runtime/panic.go:890 +0x258
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares.(*Handler).AcceptReceivedShare.func1(0x8?, 0x60?)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go:97 +0x48
2023-10-09 17:30:45 sort.insertionSort_func({0x4007fa1c08?, 0x4001aeafc0?}, 0x0, 0x2)
2023-10-09 17:30:45     sort/zsortfunc.go:12 +0xc0
2023-10-09 17:30:45 sort.pdqsort_func({0x4007fa1c08?, 0x4001aeafc0?}, 0x18?, 0x4001321400?, 0x40089c4348?)
2023-10-09 17:30:45     sort/zsortfunc.go:73 +0x264
2023-10-09 17:30:45 sort.Slice({0x3c5cf80?, 0x40089c4348?}, 0x2?)
2023-10-09 17:30:45     sort/slice.go:26 +0x114
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares.(*Handler).AcceptReceivedShare(0x400192eb00, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go:99 +0x5cc
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x3de5d00?, {0xffff934d9c98?, 0x400347f230?}, 0x3a37968?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40012b2720, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:444 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x400347fb00?, {0xffff934d9c98?, 0x400347f230?}, 0xc21a50?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40012b2720, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:73 +0x328
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).Mount.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:316 +0x1ec
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x3de5d00?, {0xffff934d9c98?, 0x400347f230?}, 0x4001e0ff00?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40012b26c0, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:444 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40023ec0c8?, {0xffff934d9c98?, 0x400347f230?}, 0x40023ec0a8?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40012b26c0, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:73 +0x328
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).Mount.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:316 +0x1ec
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x3de5d00?, {0xffff934d9c98?, 0x400347f230?}, 0x4001e0fe80?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40012b2660, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:444 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40023ec258?, {0xffff934d9c98?, 0x400347f230?}, 0x40023ec238?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40012b2660, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:73 +0x328
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).Mount.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:316 +0x1ec
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x3de5d00?, {0xffff934d9c98?, 0x400347f230?}, 0x4002db0820?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40012b2600, {0xffff934d9c98, 0x400347f230}, 0x40020b6f00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:444 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x4388608?, {0xffff934d9c98?, 0x400347f230?}, 0x3a36d78?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/services/owncloud/ocs/response.VersionCtx.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6e00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/services/owncloud/ocs/response/response.go:284 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x400347fb00?, {0xffff934d9c98?, 0x400347f230?}, 0x40023ec4b8?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40012b2600, {0xffff934d9c98, 0x400347f230}, 0x40020b6e00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:73 +0x328
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).Mount.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6e00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:316 +0x1ec
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x3de5d00?, {0xffff934d9c98?, 0x400347f230?}, 0x40079c4309?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).routeHTTP(0x40012b2540, {0xffff934d9c98, 0x400347f230}, 0x40020b6e00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:444 +0x234
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x4388608?, {0xffff934d9c98?, 0x400347f230?}, 0x5c52380?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5.(*Mux).ServeHTTP(0x40012b2540, {0xffff934d9c98, 0x400347f230}, 0x40020b6d00)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/mux.go:90 +0x2e4
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/services/owncloud/ocs.(*svc).Handler.func1({0xffff934d9c98?, 0x400347f230}, 0x40020b6d00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/services/owncloud/ocs/ocs.go:176 +0x17c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x0?, {0xffff934d9c98?, 0x400347f230?}, 0x4387420?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6c00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40079c4306?, {0xffff934d9c98?, 0x400347f230?}, 0x40023ec8c8?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.(*Server).getHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6c00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:249 +0x194
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x10?, {0xffff934d9c98?, 0x400347f230?}, 0x4387420?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6b00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40018c9380?, {0xffff934d9c98?, 0x400347f230?}, 0x40020b6b00?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/rs/cors.(*Cors).Handler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6b00)
2023-10-09 17:30:45     github.com/rs/cors@v1.9.0/cors.go:236 +0x1e4
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40023ecae8?, {0xffff934d9c98?, 0x400347f230?}, 0x4387420?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6a00)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0xf8?, {0xffff934d9c98?, 0x400347f230?}, 0xf920?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/interceptors/prometheus.prometheusHandler.ServeHTTP({{0x43721a0?, 0x40012a7f40?}, {0x43913a0?, 0x40012b2c00?}}, {0xffff934d9c98?, 0x400347f230?}, 0x40023ecc48?)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/interceptors/prometheus/prometheus.go:67 +0x50
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6900)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x4388608?, {0xffff934d9c98?, 0x400347f230?}, 0x3a3ff50?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/go-chi/chi/v5/middleware.RequestID.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6800)
2023-10-09 17:30:45     github.com/go-chi/chi/v5@v5.0.10/middleware/request_id.go:76 +0x214
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0xf8?, {0xffff934d9c98?, 0x400347f230?}, 0x1354e70?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/interceptors/requestid.requestIDHandler.ServeHTTP(...)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/interceptors/requestid/requestid.go:53
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6700)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x400347f710?, {0xffff934d9c98?, 0x400347f230?}, 0x40009abea0?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/interceptors/auth.New.func2.1({0xffff934d9c98, 0x400347f230}, 0x40020b6600)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/interceptors/auth/auth.go:212 +0x628
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x400299f248?, {0xffff934d9c98?, 0x400347f230?}, 0x4387420?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0xffff934d9c98, 0x400347f230}, 0x40020b6500)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x4385a10?, {0xffff934d9c98?, 0x400347f230?}, 0x0?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/interceptors/log.loggingHandler.ServeHTTP({{0x43721a0?, 0x400133c000?}}, {0x4385a10, 0x40068d3dc0}, 0x40020b6500)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/interceptors/log/log.go:57 +0xec
2023-10-09 17:30:45 github.com/cs3org/reva/v2/pkg/rhttp.traceHandler.func1({0x4385a10, 0x40068d3dc0}, 0x40020b6400)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/pkg/rhttp/rhttp.go:316 +0x23c
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x4388608?, {0x4385a10?, 0x40068d3dc0?}, 0x5f2bae8?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 github.com/cs3org/reva/v2/internal/http/interceptors/appctx.handler.func1({0x4385a10, 0x40068d3dc0}, 0x40020b6300)
2023-10-09 17:30:45     github.com/cs3org/reva/v2@v2.16.1-0.20231004143709-c089e31b8175/internal/http/interceptors/appctx/appctx.go:58 +0x5f0
2023-10-09 17:30:45 net/http.HandlerFunc.ServeHTTP(0x40079c43a9?, {0x4385a10?, 0x40068d3dc0?}, 0x872048?)
2023-10-09 17:30:45     net/http/server.go:2122 +0x38
2023-10-09 17:30:45 net/http.serverHandler.ServeHTTP({0x400347efc0?}, {0x4385a10, 0x40068d3dc0}, 0x40020b6300)
2023-10-09 17:30:45     net/http/server.go:2936 +0x2d8
2023-10-09 17:30:45 net/http.(*conn).serve(0x40079fb320, {0x4388608, 0x4000fea690})
2023-10-09 17:30:45     net/http/server.go:1995 +0x560
2023-10-09 17:30:45 created by net/http.(*Server).Serve
2023-10-09 17:30:45     net/http/server.go:3089 +0x520
2023-10-09 17:30:45 2023/10/09 15:30:45 http: proxy error: EOF
@kobergj kobergj self-assigned this Oct 10, 2023
@kobergj kobergj moved this from Qualification to In progress in Infinite Scale Team Board Oct 10, 2023
@kobergj
Copy link
Collaborator

kobergj commented Oct 10, 2023

Reason is the mountpoint is not set correctly when auto accepting shares. Needs trip through reva: cs3org/reva#4244

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

Successfully merging a pull request may close this issue.

2 participants