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

Docker doesn't work #4083

Closed
JamesDAdams opened this issue Aug 4, 2023 · 2 comments
Closed

Docker doesn't work #4083

JamesDAdams opened this issue Aug 4, 2023 · 2 comments

Comments

@JamesDAdams
Copy link

Hi,

i'm trying to install Cozy with docker, and i have this error with the cozy-stack container :

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

Thanks.

@JamesDAdams
Copy link
Author

I'm downgrade golang to 1.17 and i have this :

github.com/cozy/cozy-stack/pkg/tlsclient
# github.com/oschwald/maxminddb-golang
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/errors.go:18:53: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/errors.go:33:34: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/reader.go:133:43: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/reader.go:155:9: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/reader.go:220:48: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/reader.go:227:48: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/reader.go:295:52: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/traverse.go:161:35: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/verifier.go:192:11: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/verifier.go:193:9: undefined: any
/go/pkg/mod/github.com/oschwald/maxminddb-golang@v1.11.0/verifier.go:193:9: too many errors
note: module requires Go 1.19
github.com/spf13/viper/internal/encoding/toml
# github.com/ohler55/ojg
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:20:25: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:23:29: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:26:29: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:29:28: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:32:21: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:112:31: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:117:31: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/converter.go:191:16: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/error.go:20:17: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/options.go:309:49: undefined: any
/go/pkg/mod/github.com/ohler55/ojg@v1.19.1/options.go:309:49: too many errors
note: module requires Go 1.20
github.com/spf13/viper
github.com/labstack/gommon/color
github.com/pquerna/otp/hotp
github.com/cozy/cozy-stack/pkg/keyring
golang.org/x/crypto/ssh/terminal
github.com/sideshow/apns2/certificate
github.com/sirupsen/logrus/hooks/syslog
google.golang.org/protobuf/internal/encoding/messageset
google.golang.org/protobuf/internal/descfmt
google.golang.org/protobuf/internal/descopts
google.golang.org/protobuf/internal/genid
google.golang.org/protobuf/internal/strs
google.golang.org/protobuf/internal/order
google.golang.org/protobuf/runtime/protoiface
github.com/howeyc/gopass
github.com/pquerna/otp/totp
github.com/labstack/gommon/log
golang.org/x/text/internal
github.com/leonelquinteros/gotext
github.com/stretchr/testify/mock
google.golang.org/protobuf/internal/encoding/text
golang.org/x/text/cases
github.com/cpuguy83/go-md2man/v2/md2man
google.golang.org/protobuf/reflect/protoregistry
github.com/spf13/cobra/doc
google.golang.org/protobuf/proto
google.golang.org/protobuf/internal/encoding/defval
google.golang.org/protobuf/encoding/prototext
google.golang.org/protobuf/internal/filedesc
github.com/sideshow/apns2
golang.org/x/net/http2/h2c
github.com/labstack/echo/v4
google.golang.org/protobuf/internal/encoding/tag
google.golang.org/protobuf/internal/impl
github.com/cozy/cozy-stack/pkg/manager
github.com/cozy/cozy-stack/web/conncheck
github.com/cozy/cozy-stack/web/version
github.com/cozy/cozy-stack/web/tools
github.com/labstack/echo/v4/middleware
google.golang.org/protobuf/internal/filetype
google.golang.org/protobuf/runtime/protoimpl
google.golang.org/protobuf/types/known/timestamppb
google.golang.org/protobuf/types/descriptorpb
github.com/golang/protobuf/ptypes/timestamp
google.golang.org/protobuf/reflect/protodesc
github.com/golang/protobuf/proto
github.com/prometheus/client_model/go
github.com/matttproud/golang_protobuf_extensions/pbutil
github.com/prometheus/client_golang/prometheus/internal
github.com/prometheus/common/expfmt
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/promhttp
github.com/yuin/goldmark/text
github.com/yuin/goldmark/ast
github.com/yuin/goldmark/renderer
github.com/yuin/goldmark/extension/ast
github.com/yuin/goldmark/parser
github.com/yuin/goldmark/renderer/html
github.com/yuin/goldmark
github.com/cozy/cozy-stack/model/note/custom
github.com/cozy/prosemirror-go/markdown
github.com/yuin/goldmark/extension

** Press ANY KEY to close this window ** 

@nono
Copy link
Member

nono commented Aug 21, 2023

Hello,

can you give us a bit more details about what you are doing? In particular, what commands are you running?

Maybe, you are trying to use https://docs.cozy.io/en/cozy-stack/docker/#building-a-cozy-stack-via-docker. If it is the case, the comment From your cozy-stack developement folder is important. You have to git clone the cozy-stack repository and going into it (cd cozy-stack) before running the command.

@nono nono closed this as completed Sep 12, 2023
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

2 participants