Closed itsacorn closed 7 years ago
Looks like you have two problems: Go won't compile some packages because it's missing certain built-in package. Probably you have the wrong Go version.
Also, protobuf-compiler is failing to build. I'm not sure why; you'd have to review the error messages to see.
I'd strongly recommend using the Docker version, since it handles all these dependencies for you automatically and will be easier to update.
I tried the Docker version, on my VPS, Docker doesnt support the kernel, on the Linux Subsystem on Windows, it just doesnt run without any crash codes, in my VM with Debian, it says it cant find protobuf(i tried redownloading), so im only left with the slow start version. I am trying that on my VPS with Go1.7 in my PATH
I now have tried updating protobuf to 3.2.0(the Python version) Still the same error. I also updated Go once more, go version shows 1.7
If you're planning to just run Boulder, and don't need to run the tests or develop Boulder, you can skip protobuf, since it's only used to generate code. You can also skip all of the go get
except goose
.
and how can i do that?
Just edit out those lines from setup.sh.
So remove all protobuf stuff? From the test/setup.sh?
and how can i specify a database password?
Now i get this output:
root@shutteddown:~/work/src/github.com/letsencrypt/boulder# ./test/setup.sh
go get \ bitbucket.org/liamstask/goose/cmd/goose \ github.com/golang/lint/golint \ github.com/golang/mock/mockgen \ github.com/jsha/listenbuddy \ github.com/kisielk/errcheck \ github.com/mattn/goveralls \ github.com/modocache/gover \ github.com/tools/godep \ golang.org/x/tools/cover \ golang.org/x/tools/cmd/stringer &
go run cmd/rabbitmq-setup/main.go -server amqp://boulder-rabbitmq &
wait E140927 main [AUDIT] Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused exit status 1
./test/create_db.sh Enter password: ERROR 1049 (42000): Unknown database 'PASSWORD :)'
The setup script assumes passwordless DB access. To set up a password, try making a ~/.my.cnf with the credentials, e.g.
[mysql]
user=root
password=PASSWORD :-)
Now comes this:
wait E142118 main [AUDIT] Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused exit status 1
./test/create_db.sh Database boulder_sa_test already exists - skipping create Database boulder_sa_integration already exists - skipping create 2017/02/08 14:21:18 Error 1045: Access denied for user 'root'@'localhost' (using password: NO) unable to migrate boulder_sa_test with ./sa/_db/ 2017/02/08 14:21:18 Error 1045: Access denied for user 'root'@'localhost' (using password: NO) unable to migrate boulder_sa_integration with ./sa/_db/ created all databases
I got through setup, but when i launch start.py, it errors:
root@shutteddown:~/work/src/github.com/letsencrypt/boulder# python3 start.py File "start.py", line 28 print "\nstopping servers." ^ SyntaxError: Missing parentheses in call to 'print'
When i use python 2.7.9, it comes this far:
root@shutteddown:(a tilde)/work/src/github.com/letsencrypt/boulder# python start.py started exec listenbuddy -listen :5673 -speak boulder-rabbitmq:5672 with pid 30959 export GO15VENDOREXPERIMENT=1 GOBIN=/root/work/src/github.com/letsencrypt/boulder/bin go install ./... protobuf-2.6.1-old/examples/add_person.go:13:2: cannot find package "github.com/google/protobuf/examples/tutorial" in any of: /root/work/src/github.com/letsencrypt/boulder/vendor/github.com/google/protobuf/examples/tutorial (vendor tree) /usr/local/go/src/github.com/google/protobuf/examples/tutorial (from $GOROOT) /root/work/src/github.com/google/protobuf/examples/tutorial (from $GOPATH) Makefile:42: recipe for target 'build_cmds' failed make: *** [build_cmds] Error 1 root@shutteddown:~/work/src/github.com/letsencrypt/boulder#
Can you paste the output of go version
?
I'd be happy to take any patches to make the tests py3 compatible, like wrapping prints in parens.
Nvm, its version 1.6 i have installed: go version go1.6 linux/amd64
I guess i removed 1.7...
Hm, looks like you have your protobuf build dir in your boulder dir, you should remove that.
so, just the protobuf folder?
I ran setup.sh one more time as MySQL couldnt be connected to with boulder, but this came up:
root@shutteddown:~/work/src/github.com/letsencrypt/boulder# ./test/setup.sh
go get \ bitbucket.org/liamstask/goose/cmd/goose \ github.com/golang/lint/golint \ github.com/golang/mock/mockgen \ github.com/jsha/listenbuddy \ github.com/kisielk/errcheck \ github.com/mattn/goveralls \ github.com/modocache/gover \ github.com/tools/godep \ golang.org/x/tools/cover \ golang.org/x/tools/cmd/stringer &
go run cmd/rabbitmq-setup/main.go -server amqp://boulder-rabbitmq &
wait E053307 main [AUDIT] Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused Could not connect to AMQP: dial tcp 127.0.0.1:5672: getsockopt: connection refused exit status 1
./test/create_db.sh Database boulder_sa_integration already exists - skipping create Database boulder_sa_test already exists - skipping create goose: no migrations to run. current version: 20160914105917 migrated boulder_sa_integration database with ./sa/_db/ goose: no migrations to run. current version: 20160914105917 migrated boulder_sa_test database with ./sa/_db/ goose: no migrations to run. current version: 20160914105917 migrated boulder_sa_test database with ./sa/_db-next/ goose: no migrations to run. current version: 20160914105917 migrated boulder_sa_integration database with ./sa/_db-next/ ERROR 1064 (42000) at line 19: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS 'policy'@'localhost'' at line 1 unable to add users to boulder_sa_integration ERROR 1064 (42000) at line 19: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS 'policy'@'localhost'' at line 1 unable to add users to boulder_sa_test created all databases
Your RabbitMQ isn't running, and you're running the wrong version of MariaDB. You need to be running MariaDB 10.1+.
I use MySQL as Vesta CP uses that, and moving it will make it unstable
Then I recommend getting Docker working. Boulder has a hard dependency on MariaDB.
I cant. Boulder doesnt work on that kernel and the host cant update it because it would break other VMs
If you have no other host you can run Boulder on, your other option is to find a way to run MariaDB alongside MySQL. You can have it listen on a different port, set up a different datadir, etc. Unfortunately I can't guide you through that, but you can check out the docs for MariaDB.
Closing for now. Since this is more of a conversational back-and-forth rather than a bug, if you need more help, it would be easier to provide it on the forums at https://community.letsencrypt.org/. Thanks, and good luck with the rest of your setup!
I am planning to make a small internal CA, but i cant get boulder set up. I run the ./test/setup.sh, but this is what comes out(i cancelled it, it just looped):