Can not make worker container working
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
Hi everyone,
I'm writing this post cause I have an issue regarding the WORKER part of gocrack project.
I managed to make the SERVER part working, so I have the frontend part perfectly working and I can access the web interface easily.
Now I'm struggling with the worker container part. So I can access the worker via this command :
**docker run -it \
-e USER_ID=1000 \
-v "/tmp;/opt/gocrack" \
gocrack/worker**
I have go version 1.21.3 on my container. When I'm launching the command : $go run worker.go -config config.yaml
Almost all the package are properly installed, but at the end I have those errors :
**worker.go:15:2: no required module provides package [github.com/mandiant/gocrack/server](http://github.com/mandiant/gocrack/server); to add it:
go get github.com/mandiant/gocrack/server
worker/child/child.go:8:2: no required module provides package [github.com/mandiant/gocrack/server/rpc](http://github.com/mandiant/gocrack/server/rpc); to add it:
go get github.com/mandiant/gocrack/server/rpc
worker/child/child.go:9:2: no required module provides package [github.com/mandiant/gocrack/server/storage](http://github.com/mandiant/gocrack/server/storage); to add it:
go get github.com/mandiant/gocrack/server/storage**
When I try : $go get github.com/mandiant/gocrack/server or $go get github.com/mandiant/gocrack/server/rpc, I have this next error :
**go: github.com/mandiant/gocrack/server/rpc: no matching versions for query "upgrade"**
My go.mod file is correct and the thing I dont understand is that on the SERVER part when I launch it via go run server.go -config config.yaml, it is working and the package are the same in the code from server.go than worker.go, but with the server I dont have any problem.
Well I'm very new using GO so if someone could enlighten me I will be very grateful !
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the worker container command and running `go run worker.go -config config.yaml`. Inspect `go.mod`, `worker.go`, and `worker/child/child.go` to trace the missing `github.com/mandiant/gocrack/server` imports. Done means the worker starts without the reported module errors and can use the configured server components.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- backend, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100