supervisord: authentication and webpage is not working

Hi ,

My configure is

[unix_http_server]
file=/tmp/supervisord.sock
[inet_http_server]
port=127.0.0.1:9001
username=root
password=root
[supervisorctl]
serverurl=http://127.0.0.1:9001
[supervisord]
logfile=supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=supervisor         ; ('AUTO' child log dir, default $TEMP)
loglevel =debug
user=root

[program:cat]
command = /bin/cat

when I start as

./supervisord -c supervisor.conf

and

./supervisord  -c supervisor.conf    ctl status
Bad Response: 401 Unauthorized

even the web page can’t display

404 page not found

image

I tried

 git pull --rebase
go install

but with no luck.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

It looks like in version v0.6.6 there was a switch from go_rice to fileb0x and the build instructions haven’t been updated. As of current “main” branch, v0.6.8, you need to go generate, then go get -u, then add the -tags release flag to build. The following works for me:

RUN apk add --no-cache --update git gcc build-base && \
  go get -v -u github.com/ochinchina/supervisord && \
  cd /go/src/github.com/ochinchina/supervisord && \
  go generate && \
  go get -u && \
  GOOS=linux go build -tags release -a -ldflags "-linkmode external -extldflags -static" -o /usr/local/bin/supervisord github.com/ochinchina/supervisord

FROM ubuntu
COPY --from=builder /usr/local/bin/supervisord /usr/local/bin/supervisord

P.S. placing webgui folder next to the compiled binary and changing working directory before executing the binary seems to have solved 404 problem which makes me more convinced that the problem is with packaging static assets. Please update instructions on how to build full self-contained binary from sources.

The web GUI is in planning, hope the web GUI feature will be available soon