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

run from source code #147

Open
rotragit opened this issue Aug 20, 2024 · 3 comments
Open

run from source code #147

rotragit opened this issue Aug 20, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@rotragit
Copy link

I'm trying to run locally from source code, but I get:

src/onvif/main.go:1264:38: relayoutputs.RelayOutputs.Token undefined (type []"github.com/kerberos-io/onvif/xsd/onvif".RelayOutput has no field or method Token)

@rotragit
Copy link
Author

rotragit commented Aug 20, 2024

git clone https://github.com/kerberos-io/agent.git
cd agent/machinery
./update-mod.sh
go run main.go -action run -port 1234

output is:

$ go run main.go -action run -port 1234
# github.com/kerberos-io/agent/machinery/src/onvif
src/onvif/main.go:1264:38: relayoutputs.RelayOutputs.Token undefined (type []"github.com/kerberos-io/onvif/xsd/onvif".RelayOutput has no field or method Token)

@rotragit
Copy link
Author

rotragit commented Aug 21, 2024

Same running build.sh, btw:

=> CACHED [build-ui 4/7] COPY ui /go/src/github.com/kerberos-io/agent/ui                                                                                                                                                               0.0s
 => ERROR [build-machinery  9/13] RUN cd /go/src/github.com/kerberos-io/agent/machinery &&  go mod download &&  go build -tags timetzdata,netgo,osusergo --ldflags '-s -w -extldflags "-static -latomic"' main.go &&  mkdir -p /agent  74.0s
 => CANCELED [build-ui 5/7] RUN cd /go/src/github.com/kerberos-io/agent/ui && rm -rf yarn.lock && yarn config set network-timeout 300000 &&  yarn && yarn build                                                                        76.4s
------                                                                                                                                                                                                                                       
 > [build-machinery  9/13] RUN cd /go/src/github.com/kerberos-io/agent/machinery &&     go mod download &&      go build -tags timetzdata,netgo,osusergo --ldflags '-s -w -extldflags "-static -latomic"' main.go &&    mkdir -p /agent &&  mv main /agent &&        mv version /agent &&    mv data /agent &&       mkdir -p /agent/data/cloud &&   mkdir -p /agent/data/snapshots &&       mkdir -p /agent/data/log &&     mkdir -p /agent/data/recordings &&      mkdir -p /agent/data/capture-test &&         mkdir -p /agent/data/config &&  rm -rf /go/src/gitlab.com/:                                                                                                                                                          
60.28 # github.com/kerberos-io/agent/machinery/src/onvif                                                                                                                                                                                     
60.28 src/onvif/main.go:1264:38: relayoutputs.RelayOutputs.Token undefined (type []"github.com/kerberos-io/onvif/xsd/onvif".RelayOutput has no field or method Token)                                                                        
------                                     

@cedricve
Copy link
Member

hey @rotragit, make sure the latest onvif library is used.
https://github.com/kerberos-io/agent/blob/master/machinery/go.mod#L24

@cedricve cedricve added the question Further information is requested label Aug 27, 2024
@cedricve cedricve self-assigned this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants