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

panic: runtime error: invalid memory address or nil pointer dereference on filer.sync #3826

Closed
michagruner opened this issue Oct 11, 2022 · 0 comments

Comments

@michagruner
Copy link

Describe the bug

mgruner@debianbackup:~$ ./weed filer.sync -a=weed1:8888 -b=debianbackup:8888 -isActivePassive -concurrency=1
I1011 10:57:09.825632 filer_sync.go:242 start sync weed1:8888(251043236) => debianbackup:8888(316868620) from 2022-10-10 15:24:03.14703727 +0200 CEST(1665408243147037270)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xcd18ab]

goroutine 73 [running]:
github.com/seaweedfs/seaweedfs/weed/util.(*LimitedConcurrentExecutor).Execute(0x0, 0xc0001446e0)
	/github/workspace/weed/util/limited_executor.go:32 +0x2b
github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink.(*FilerSink).replicateChunks(0xc000532320, {0xc0005b9a70, 0x1, 0x0?}, {0xc0007aa5a0, 0x8e})
	/github/workspace/weed/replication/sink/filersink/fetch_write.go:28 +0xe5
github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink.(*FilerSink).CreateEntry.func1({0x3603610, 0xc00081db40})
	/github/workspace/weed/replication/sink/filersink/filer_sink.go:123 +0x225
github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink.(*FilerSink).WithFilerClient.func1(0xc000b5c700)
	/github/workspace/weed/replication/sink/filersink/fetch_write.go:117 +0x6f
github.com/seaweedfs/seaweedfs/weed/pb.WithGrpcClient(0x0?, 0xc000b62b28, {0xc000b721b0, 0x12}, 0x8f?, {0xc000b62b18?, 0x35ad9d4?, 0x2?})
	/github/workspace/weed/pb/grpc_client_server.go:128 +0x2fb
github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink.(*FilerSink).WithFilerClient(0x455e08?, 0xd4?, 0x1?)
	/github/workspace/weed/replication/sink/filersink/fetch_write.go:115 +0x67
github.com/seaweedfs/seaweedfs/weed/replication/sink/filersink.(*FilerSink).CreateEntry(0x35f2f18?, {0xc0007aa5a0?, 0xc00084ccb0?}, 0x35ad9d4?, {0xc0004ccca0?, 0xc0007aa3f0?, 0x8e?})
	/github/workspace/weed/replication/sink/filersink/filer_sink.go:106 +0x74
github.com/seaweedfs/seaweedfs/weed/command.genProcessFunction.func1(0xc000aeeaa0)
	/github/workspace/weed/command/filer_sync.go:400 +0x729
github.com/seaweedfs/seaweedfs/weed/command.doSubscribeFilerMetaChanges.func1(0x0?)
	/github/workspace/weed/command/filer_sync.go:261 +0x123
github.com/seaweedfs/seaweedfs/weed/command.(*MetadataProcessor).AddSyncJob.func1.1()
	/github/workspace/weed/command/filer_sync_jobs.go:45 +0x25
github.com/seaweedfs/seaweedfs/weed/util.Retry({0x2eef13a, 0x12}, 0xc00054ff30)
	/github/workspace/weed/util/retry.go:16 +0xb1
github.com/seaweedfs/seaweedfs/weed/command.(*MetadataProcessor).AddSyncJob.func1()
	/github/workspace/weed/command/filer_sync_jobs.go:44 +0x8a
created by github.com/seaweedfs/seaweedfs/weed/command.(*MetadataProcessor).AddSyncJob
	/github/workspace/weed/command/filer_sync_jobs.go:42 +0x24a
mgruner@debianbackup:~$ ./weed version
version 30GB 3.31 0711870f43e6c5eadd3df70f22478e6e9998e5a2 linux amd64
mgruner@debianbackup:~$ 

System Setup

mgruner@debianbackup:~$ uname -a
Linux debianbackup 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux

Expected behavior
filer.sync working

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

No branches or pull requests

1 participant