gocrack icon indicating copy to clipboard operation
gocrack copied to clipboard

Can not make worker container working

Open MonkeyCst opened this issue 1 year ago • 0 comments

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; 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; 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; 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 !

MonkeyCst avatar Nov 10 '23 14:11 MonkeyCst