-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker部署完成后,出现了应用文件上传失败。 #575
Comments
感谢你提交的问题或反馈,我会在有时间的时候回复在此期间你可以看看之前被解决的反馈说不定有你需要的答案。 |
提示 上传应用解析发现未知异常,原始错误:File /tmp/d20210905-335-1740fda/AppInfo-ios-9f6426e4294a01acfa3874b3b4435d51/Payload/UZApp.app/Info.plist not readable! 这个错误 |
# Generated on Sat Sep 4 13:55:22 CST 2021
# USE SSL: false
version: "3.8"
x-restart-policy: &restart_policy
restart: unless-stopped
x-defaults: &defaults
<<: *restart_policy
image: ghcr.io/tryzealot/zealot:4.2.0
depends_on:
- redis
- postgres
env_file: .env
volumes:
- zealot-uploads:/app/public/uploads
- zealot-backup:/app/public/backup
- ./log:/app/log
healthcheck:
test: ["CMD-SHELL", "wget -q --spider --proxy=off localhost/health || exit 1"]
logging:
driver: "json-file"
options:
max-size: "1g"
max-file: "10"
max-buffer-size: "4m"
mode: "non-blocking"
services:
redis:
<<: *restart_policy
image: redis:5-alpine
command: redis-server
volumes:
- zealot-redis:/var/lib/redis/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
postgres:
<<: *restart_policy
image: postgres:12-alpine
volumes:
- zealot-postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ze@l0t
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
zealot:
<<: *defaults
ports:
- "8080:80"
volumes:
zealot-uploads:
external: true
zealot-backup:
external: true
zealot-redis:
external: true
zealot-postgres:
external: true |
上面是docker-compose文件 |
收到,看描述目前是 iOS 和 Android 都无法正常解析对吧?我明天来看下哈。 |
是的, 安卓和 IOS 都无法正常解析 |
这问题看似是你 iOS 包的 |
是不是 docker部署的时候没有权限访问? |
不太可能, |
安卓的也不行 |
日志里面也没有对应的错误信息 |
上图的情况默认应该会匿名把错误日志上报到 Sentry 的,我也没看到有任何崩溃日志 😞 |
那不知道什么问题了。奇怪了, 就是完全按照部署文档上面的来的。 |
如果不能提供文件的话帮忙确认下以下情况:
|
▶ Parsing command line ...
______ _ _
|___ / | | | |
/ / ___ __ _| | ___ | |_
/ / / _ \/ _` | |/ _ \| __|
/ /_| __/ (_| | | (_) | |_
/_____\___|\__,_|_|\___/ \__|
▶ Setting up error handling ...
ZEALOT_CLEAN_UP=false
▶ Checking requirements ...
which: no docker.io in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
which: no docker.io in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Current OS: Linux x86_64
Docker version: 20.10.8
Docker Compose version: 1.29.2
▶ Generating .env file ...
Creating .env file
▶ Generating secret key ...
Secret key written to .env
▶ Generating domain ...
Input zealot domain, without http(s):// (eg, zealot.test).
ZEALOT_DOMAIN=Domain written to .env
▶ Configuring cert file(s) ...
How do you deploy?
Use [L]et's Encryt SSL (default)
Use [S]elf-signed SSL
Do [n]ot use SSL?
▶ Generating docker-compose.file ...
Generated docker-compose.yml
▶ Configuring Docker volumes ...
scripts/configure-volumes.sh: line 75: [: too many arguments
Which way do you choose to storage zealot data?
Use Docker [V]olumes (default)
Use [L]ocal file system
Created zealot-uploads.
Created zealot-backup.
Created zealot-postgres.
Created zealot-redis.
Exteral volumes write to file: docker-compose.yml
▶ Fetching Docker images ...
Pulling redis ...
Pulling postgres ...
Pulling zealot ...
Pulling zealot ... pulling from tryzealot/zealot
Pulling zealot ... digest: sha256:20c4bad39b0233e2d2...
Pulling zealot ... status: image is up to date for g...
Pulling zealot ... done
Pulling redis ... pulling from library/redis
Pulling postgres ... pulling from library/postgres
Pulling redis ... digest: sha256:fea243676a4d2d67f5...
Pulling redis ... status: image is up to date for r...
Pulling redis ... done
Pulling postgres ... digest: sha256:de0effb7ca62f39616...
Pulling postgres ... status: image is up to date for p...
Pulling postgres ... done
Docker images pulled
▶ Turning things off ...
Removing network zealot_default
Network zealot_default not found.
-----------------------------------------------------------------
You're all done! Run the following command to get Zealot running:
[sudo] docker-compose up -d
----------------------------------------------------------------- |
http://www.360buys.cn 这是网址,账号密码 没动过, 你也可以试一下 |
通过安装日志发现有如下可能问题:
|
我看你用 nginx 做了一次反向代理? |
对,外面有一层nginx。 |
location ~* ^(/assets|/favicon.ico) {
|
这是 nginx配置 |
你把 |
现在启用的就是 nightly 版本 |
Generated on Sat Sep 4 13:55:22 CST 2021USE SSL: falseversion: "3.8" x-restart-policy: &restart_policy x-defaults: &defaults services: volumes: |
呃...你第一份 docker-compose.yml 是用的 4.2.0 版本的,请你自己好好看看... |
对,第一份是4.2.0的。出现了问题。 所以我后面又重新部署了一遍。用的是nightly |
你再重新拉取下 nightly tag |
好的 |
已经重新拉取 部署了 |
sentry 也没有收到任何日志,你尝试配置下 https 吧,如果还不行我爱莫能助了,尴尬。 |
配置了https的 |
你也是docker部署的吗? |
当然的呢,问题怎么反馈我肯定原环境复原 |
好吧,相当神奇。这个和文件权限有关系吗? 之前我是修改了文件权限为777,有些功能就正常了。 |
你是怎么修改的文件权限? |
进入docker容器。然后 chmod -R 777 /tmp |
容器用的是 root 用户在没有任何其他设置的情况文件系统没有不能读写的,除非是 volumes 挂载的是有其他权限 |
由于太长时间没有得到回复本问题会自动被关闭,如果您还有问题可以重新开启或提交新问题。感谢你对于 Zealot 的关注! |
docker部署完成后,出现了应用文件上传失败,是哪里设置有问题吗?安装步骤完全按照文档进行
The text was updated successfully, but these errors were encountered: