filestash/server/common
Mickael Kerjean ce935525db fix (config): concurrent issue
fatal error: sync: unlock of unlocked mutex

goroutine 6 [running]:
runtime.throw(0x1420562, 0x1e)
	/usr/local/go/src/runtime/panic.go:1117 +0x72 fp=0xc0000b5ec8 sp=0xc0000b5e98 pc=0x439e92
sync.throw(0x1420562, 0x1e)
	/usr/local/go/src/runtime/panic.go:1103 +0x35 fp=0xc0000b5ee8 sp=0xc0000b5ec8 pc=0x46e395
sync.(*Mutex).unlockSlow(0x1f97138, 0xffffffff)
	/usr/local/go/src/sync/mutex.go:196 +0xd8 fp=0xc0000b5f10 sp=0xc0000b5ee8 pc=0x47d458
sync.(*Mutex).Unlock(...)
	/usr/local/go/src/sync/mutex.go:190
github.com/mickael-kerjean/filestash/server/common.(*Configuration).Get(0x1f97120, 0x140a506, 0x14, 0x0)
	/home/mickael/Documents/projects/filestash/server/common/config.go:438 +0x113 fp=0xc0000b5f90 sp=0xc0000b5f10 pc=0x7ba313
github.com/mickael-kerjean/filestash/server/common.init.0.func1(0x0)
	/home/mickael/Documents/projects/filestash/server/common/api.go:16 +0x46 fp=0xc0000b5fc0 sp=0xc0000b5f90 pc=0x7c7906
github.com/mickael-kerjean/filestash/server/common.init.0.func3()
	/home/mickael/Documents/projects/filestash/server/common/api.go:40 +0x29 fp=0xc0000b5fe0 sp=0xc0000b5fc0 pc=0x7c7c49
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc0000b5fe8 sp=0xc0000b5fe0 pc=0x4733e1
created by github.com/mickael-kerjean/filestash/server/common.init.0
	/home/mickael/Documents/projects/filestash/server/common/api.go:39 +0x5a

goroutine 1 [runnable, locked to thread]:
os.(*File).Read(0xc000186000, 0xc000280400, 0x100, 0x100, 0x401, 0xc000280000, 0x400)
	/usr/local/go/src/os/file.go:113 +0x265
io.ReadAll(0x1677e40, 0xc000186000, 0x0, 0x1ff, 0xc000186000, 0x0, 0x0)
	/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
	/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/mickael-kerjean/filestash/server/common.LoadConfig(0x0, 0x0, 0x0, 0x1fc66e0, 0x0)
	/home/mickael/Documents/projects/filestash/server/common/config_state.go:32 +0x85
github.com/mickael-kerjean/filestash/server/common.(*Configuration).Load(0x1f97120)
	/home/mickael/Documents/projects/filestash/server/common/config.go:214 +0x34
github.com/mickael-kerjean/filestash/server/common.init.1()
	/home/mickael/Documents/projects/filestash/server/common/config.go:53 +0x85
2022-10-10 08:22:45 +11:00
..
ssl fix (selfsigned): self signed certificate issues 2022-09-15 22:38:54 +10:00
api.go fix (config): concurrent issue 2022-10-10 08:22:45 +11:00
app.go feature (cancellation): logic to cancel request in client and server 2022-09-02 17:26:32 +10:00
backend.go clean (code): cleanup the laundry on the server 2022-01-07 01:25:43 +11:00
cache.go fix (cache): RLock instead of lock 2022-09-13 13:01:03 +10:00
config.go fix (config): concurrent issue 2022-10-10 08:22:45 +11:00
config_state.go refactoring (config): separate config loading and saving 2022-02-04 00:51:57 +11:00
constants.go maintain (generator): simplify build command 2022-09-28 18:11:58 +10:00
crypto.go feature (crypto): nonce generator as a counter 2022-09-09 23:22:47 +10:00
debug.go maintain (go): go format 2021-08-22 16:47:09 +10:00
default.go fix (vet): go vet - #505 2022-09-13 14:12:13 +10:00
dummy.go maintain (go): go format 2021-08-22 16:47:09 +10:00
error.go maintain (error): add internal error 2022-09-13 17:28:53 +10:00
files.go fix (window): cross compile for windows 2022-09-28 21:16:10 +10:00
files_all.go fix (window): cross compile for windows 2022-09-28 21:16:10 +10:00
files_linux.go fix (window): cross compile for windows 2022-09-28 21:16:10 +10:00
log.go improve (logger): logger interface for tests or plugin swap 2022-10-06 08:02:25 +11:00
mime.go improve (config): common issue on install problems 2020-06-18 00:16:42 +10:00
plugin.go feature (auditing): pluggable auditing in admin console 2022-09-01 07:37:59 +10:00
response.go feature (api): public api 2022-09-20 17:43:26 +10:00
token.go maintain (go): go format 2021-08-22 16:47:09 +10:00
types.go improve (logger): logger interface for tests or plugin swap 2022-10-06 08:02:25 +11:00
utils.go fix (#422): retrocompatibility with authentication middleware 2022-02-01 17:24:27 +11:00