Homeland 部署完成 homeland 之后,重启后使用 sudo make start 报错,页面提示 502BAD Gateway

luming · 2017年04月10日 · 最后由 xiangfan211 回复于 2017年08月18日 · 2129 次阅读

报错如下:

hcpf@hccz:~$ cd homeland-docker/
hcpf@hccz:~/homeland-docker$ sudo make start
[sudo] password for hcpf:
Starting homelanddocker_memcached_1
Starting homelanddocker_elasticsearch_1
Starting homelanddocker_postgresql_1
Starting homelanddocker_redis_1
Starting homelanddocker_worker_1
Starting homelanddocker_app_1
Starting homelanddocker_web_1
hcpf@hccz:~/homeland-docker$ make status
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
make: *** [status] Error 1
hcpf@hccz:~/homeland-docker$

重新执行 sudo make install 也可以运行网站,就是追加多了初始数据。 怎么回事呢?

等了一会网站起来了。敲 make status 似乎还是有错误?

/homeland-docker$ make status
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
make: *** [status] Error 1

安装的时候就有些问题,一开始似乎是网络问题,设置 dns 之后,docker 似乎安上了


/bin/sh: /bin/sh: cannot execute binary file
curl: (23) Failed writing body (0 != 16263)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   421  100   421    0     0    646      0 --:--:-- --:--:-- --:--:--   647
100 7798k  100 7798k    0     0  2555k      0  0:00:03  0:00:03 --:--:-- 3334k
sh: 39: docker: not found
sh: 73: [: Illegal number:
sh: 62: [: Illegal number:
docker version >= 1.12
{"registry-mirrors": ["http://7214efd6.m.daocloud.io"]}
Success.
You need to restart docker to take effect: sudo service docker restart
docker: unrecognized service
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

4dde4a2ba: Pull complete
8ffd36c5763f: Downloading [=================================>                 ]  126.8MB/190.5MBwnload complete
7b97da2778bb: Download complete
 34.99MB/35.54MBwnload complete
3bf09e05df62: Download complete
3dedf2ee1328: Download complete
    154B/154B Waiting
49257437cec1: Waiting
4700dbabb697: Waiting
ERROR: error pulling image configuration: received unexpected HTTP status: 504 Gateway Time-out
make: *** [install] Error 1
root@hcspdrb:/home/hcpf/homeland-docker#

502 这个问题 我也频繁出现。开始是 ssl 装不上,然后放弃;最后改了配置文件里面的邮件配置信息,然后就 502 了。不知道咋回事!

4 楼 已删除
需要 登录 后方可回复, 如果你还没有账号请 注册新账号