What user are you running disco as?
>
> I tried to fix that using a blog post I found, but I have another
> problem that is messing everything up.
> I can't do:
>
> ssh localhost erl
>
> I get "Command not found."
>
> On this machine (Mac), erl is a symbolic link to /usr/local/lib/
> erlang/
> bin/erl
> I can successfully do
> ssh localhost /usr/local/lib/erlang/bin/erl
>
> How can I get the SSH path, or Disco, to recognize /usr/local/lib/
> erlang/bin/erl?
One way is to unset the DISCO_ERLANG variable and add /usr/local/lib/
erlang/bin to your PATH in ~/.bashrc (export PATH=$PATH:/usr/local/lib/
erlang/bin). Another is to set DISCO_ERLANG = '/usr/libexec/
StartupItemContext /usr/local/lib/erlang/bin/erl'.
jared
>
> I am running Disco as user disco (UID 504), but in order to start the
> server I have to use an admin account, otherwise
>
> disco master start
> outputs:
> Only root can change DISCO_USER
Right, if you want to run disco as a different user, you either need
to login as a different user, or execute the start command as root.
Can you just run it without changing as your user until you get it
working?
>
> I tried unsetting the variable, then restarting the master, no change.
> Still says "Command not found."
Still? Isn't that a different error? Command not found meaning
lighttpd? erlang? The user you want to run as should have the correct
path for both and permissions to run them.
> I also tried setting DISCO_ERLANG = '/usr/libexec/
> StartupItemContext /
> usr/local/lib/erlang/bin/erl'
No space between: '/usr/libexec/' and 'StartupItemContext'. That is
the command, the argument is the path to erlang.
> Now when I start disco, I get
>
> Disco encountered a fatal system error:
> [Errno 13] Permission denied
Since you were previously running as a different user, delete the log/
run directories, to make sure the log/pid files are writable by the
new user. If you haven't changed these settings, they are in
DISCO_HOME. You can do disco -p if you can't figure out where they are.
jared