30 分钟内在云上部署 Discourse

为什么我无法创建呢,Unable to find image ‘samsaffron/discourse:1.0.12’ locally
Repository samsaffron/discourse already being pulled by another client. Waiting.
提示

@fantasticfears 请求帮助

你似乎同时运行了两个 launcher,这个过程比较慢,严重依赖网络条件。总共要下载1.5G左右的内容。

你可以重启服务器后再尝试或者重启 Docker。

感谢您,现在我重启后重新部署又好了;

但是遇到新的问题,我按照:在大陆地区的云上部署 Discourse,这个方式部署了阿里云企业邮箱作为邮件服务器,但是无论如何都无法收到邮件,怎么办呢~~

DISCOURSE_SMTP_ settings:
DISCOURSE_SMTP_ADDRESS = smtp.mxhichina.com
DISCOURSE_SMTP_PORT = 587
DISCOURSE_SMTP_PASSWORD = (hidden)
DISCOURSE_SMTP_USER_NAME = dmaster@rhinel.xyz

unable to establish TLS, continuing: STARTTLS extension not supported by server.
ERROR: nobody+launcher-mailtest@discourse.org
Traceback (most recent call last):
File “/var/discourse/scripts/mailtest”, line 143, in
result = smtp.sendmail(‘nobody+launcher-mailtest@discourse.org’, destemail, msg.as_string())
File “/usr/lib/python3.4/smtplib.py”, line 766, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (440, b"mail from account doesn’t conform with authentication (Auth Account:dmaster@rhinel.xyz|Mail Account:nobody+launcher-mailtest@discourse.org)", ‘nobody+launcher-mailtest@discourse.org’)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/var/discourse/scripts/mailtest”, line 172, in
if ‘SMTP AUTH extension not supported by server’ in e.args[0]:
TypeError: argument of type ‘int’ is not iterable

这是提示信息

感谢您的回答,我按照这样设置了

DISCOURSE_SMTP_ settings:
DISCOURSE_SMTP_AUTHENTICATION = login
DISCOURSE_SMTP_ADDRESS = smtp.mxhichina.com
DISCOURSE_SMTP_PORT = 587
DISCOURSE_SMTP_OPENSSL_VERIFY_MODE = none
DISCOURSE_SMTP_ENABLE_START_TLS = True
DISCOURSE_SMTP_PASSWORD = (hidden)
DISCOURSE_SMTP_USER_NAME = dmaster@rhinel.xyz

ERROR: STARTTLS extension not supported by server.

另外这步怎么执行?我的收到是一堆命令提示,抱歉我很小白
此外需要在 bootstrap 后用 ./launcher enter app 进入容器内执行:

rails console
SiteSetting.notification_email = ‘你的发件邮箱地址’

  1. 进入 /var/discourse/。
  2. ./launcher enter app
  3. 接着进行上述操作。

进行到第二步提示:

root@iZ94l1f7rmgZ:/var/discourse# ./launcher enter app
Error: Command not found: exec
Error: Command not found: -it
Usage: docker [OPTIONS] COMMAND [arg…]
-H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use

A self-sufficient runtime for linux containers.

Commands:
attach Attach to a running container
build Build an image from a Dockerfile
commit Create a new image from a container’s changes
cp Copy files/folders from a container’s filesystem to the host path
diff Inspect changes on a container’s filesystem
events Get real time events from the server
export Stream the contents of a container as a tar archive
history Show the history of an image
images List images
import Create a new filesystem image from the contents of a tarball
info Display system-wide information
inspect Return low-level information on a container
kill Kill a running container
load Load an image from a tar archive
login Register or log in to a Docker registry server
logout Log out from a Docker registry server
logs Fetch the logs of a container
port Lookup the public-facing port that is NAT-ed to PRIVATE_PORT
pause Pause all processes within a container
ps List containers
pull Pull an image or a repository from a Docker registry server
push Push an image or a repository to a Docker registry server
restart Restart a running container
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save an image to a tar archive
search Search for an image on the Docker Hub
start Start a stopped container
stop Stop a running container
tag Tag an image into a repository
top Lookup the running processes of a container
unpause Unpause a paused container
version Show the Docker version information
wait Block until a container stops, then print its exit code

你的 discourse_docker 不是最新的?

可以用 git pull origin master 更新一下。

运行后提示:

root@iZ94l1f7rmgZ:/var/discourse# git pull origin master
From https://github.com/discourse/discourse_docker

  • branch master -> FETCH_HEAD
    Already up-to-date.

非常抱歉,我真是一点基础都没有。

你的 Docker 版本需要更新。如果你用的是 Ubuntu:

apt-get update
apt-get dist-upgrade
apt-get upgrade lxc-docker

如果是其他版本或者环境不同,你就需要按照 Docker 官方的文档:
https://docs.docker.com/installation/#installation

版本更新后问题依旧……没有改观……

运行 docker version 的报告是什么?

root@iZ11w5mcwhoZ:/var/discourse# ./launcher enter app
root@iZ11w5mcwhoZ-app:/# rails console
[1] pry(main)> SiteSetting.notification_email = ‘xxx@xxx.com’
=> "xxx@xxx.com"
[2] pry(main)>

你好,新手求教,最后设置notification_email时出现这种情况,还是不能发送邮件,请问怎么解决

你用了什么邮件服务?又是什么设置?

我用的sendcloud,昨晚进app开了管理员帐号,但邮件还是不能发,应该是邮箱账号密码设置错误。但我不知道sendcloud究竟怎么设置,请问你知道吗。不行今晚回去换其他邮箱

建议你直接询问 SendCloud 的服务支持,询问 SMTP 服务器地址、端口、配置和账户密码。

代码基础比较差的童鞋,这是个很好的解决方案

谁能告诉我将 params 中的 version 在哪 我咋找不到啊