-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
- Refer to the documentation on this page
- Check the issues page to see if a fix is in development
- Ask the support community
Solution
- Change settings in pg_hba.conf from "peer" to "trust"
- Restart postgres
Background
When postgres is first installed on most systems, it defaults to highly restrictive security settings that prevent the postgres user from having full access. To setup Zephyr, the postgres user needs access to create the hstore extension and add new db users.
Solution
- Install postgres contribs package
- Restart postgres
Background
Hstore is a contrib package extension and is not installed by default with postgresql-server.
If you see a rebar error during make, it's likely one of three things
- Erlang version is too old
- Necessary build tools are not installed
- Old version of Erlang is conflicting with symlinks of new version
Check which version of Erlang/OTP you have installed by starting the Erlang shell with erl ...
$ erl
Erlang R15B03 (erts-5.9.3) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]
Eshell V5.9.3 (abort with ^G)
1>
If you don't see R15B03 or later, then you need to upgrade Erlang.
Follow the steps in the Install Guide to install the correct version.
If you have the correct version of Elrang, make sure you have installed development tools needed to compile C extensions used by Erlang.
# yum
su yum groupinstall "Development Tools"
# apt
sudo apt-get install build-essential
./rebar generate
==> rel (generate)
ERROR: Unable to generate spec: read file info /usr/lib/erlang/man/man1/gserialver.1.gz failed
ERROR: Unexpected error: rebar_abort
ERROR: generate failed while processing /home/user/zephyr/cloudstore/rel: rebar_abort
make[1]: *** [generate] Error 1
make[1]: Leaving directory `/home/user/zephyr/cloudstore'
make: *** [all] Error 2
This is most likely caused by an old version of Erlang conflicting with your newly installed version.
Solution
Yeah. Annoying, but it works. You may have to divert multiple files. Just keep diverting and retrying.
Zephyr's Erlang components use rebar to manage dependencies. If a component crashes on startup, try deleting the component's deps directory, rerunning make, and then starting up the component.
rm -rf cloudstore/deps
make
script/zephyr start