需注意,下面所有的命令中。volume 相关的地址如: /Users/lanyulei/projects/lanyulei 之类的,都需要改成你自己配置的路径地址。
必须要有docker环境,19.03以上的
本文档需用户自行安装 MySQL 和 Redis 安装好后,配置到配置文件即可。
同时需要注意第四步数据同步的操作,避免造成数据重复同步,而出现重复数据的问题。
第一步、拉取最新的代码
git clone https://github.com/lanyulei/ferry.git
第二步、自行编译镜像
cd ferry
第三步、同步数据
若是你没有同步过 ferry 相关的数据,则只需要在配置文件的路径下创建一个名为 needinit 的文件即可。
若是已经同步过,则必须确认在配置文件的路径下,一定要没有这个文件needinit。避免造成数据的重复同步。
配置文件的路径可根据下一步的描述得知。
第四步、启动容器
docker run -itd --name ferry -v /Users/mac/lanyulei/project/golang/ferry/config:/opt/workflow/ferry/config -p 80:8002 lanyulei/ferry:1.0.7
# 注意上面的 /Users/mac/lanyulei/project/golang/ferry/config 地址,需自行配置,此为存放配置文件的目录。
# 将 https://github.com/lanyulei/ferry/tree/master/config 下面的文件都保存到,自定义的配置文件路径下。
第五步、测试服务
若服务启动,则测试访问 http://ip:port 测试服务是否正常。
评论列表(110条)
大佬·能否做一个完全体的docker镜像呀·?
@BOT:已经用docker-compost简化了部署,不需要在关注redis,mysql,和前后端分开部署了。
@兰玉磊:请问能提供一下 docker-compost部署的文档链接不? 非常感谢
docker按照你的步骤没有部署成功,报“服务器连接异常,请检查服务器!”
@bryan:没有连接到后端,确认后端程序是否正常启动和有无报错吧。
@兰玉磊:我碰到一样的问题。我用docker ps去查看发现STATUS 不是UP状态,一只处于 Restarting。请问这个怎么去检查呢?
@bryan:兄弟,解决了吗?我碰到跟你一样的问题。我用docker ps去查看发现STATUS 不是UP状态,一只处于 Restarting
@pyf0110:查看一下日志呢,看下日志有啥报错没有。如果还是不行的话,可以加群聊下。
@兰玉磊:报错信息是:{“level”:”error”,”ts”:”2020-12-31 15:30:59.724672″,”caller”:”worker/worker.go:41″,”msg”:”执行失败: ERR Client sent AUTH, but no password is set”}
是不是因为redis那里我没有去掉密码导致的,可是我现在把 “ferry123456” 删掉,再重新跑那个docker run命令, 还是不行呢,报一样的错。难道要重新跑一遍 docker-compose up -d 命令吗?
@pyf0110:这个是你的redis密码的问题,如果你有密码,就加上你的密码,如果你没有密码,就直接把配置文件里面的密码删除即可。
这个/Users/lanyulei/projects/lanyulei文件是啥文件啊
@sy:这个是我的本地路径。
@兰玉磊:嗯,研究明白了,感谢大佬?
docker-compose up -d 执行报错
[root@bj_nw_pret_002 ferry]# docker-compose up -d
Traceback (most recent call last):
File “/usr/bin/docker-compose”, line 5, in
from compose.cli.main import main
File “/usr/lib/python2.7/site-packages/compose/cli/main.py”, line 24, in
from ..config import ConfigurationError
File “/usr/lib/python2.7/site-packages/compose/config/__init__.py”, line 6, in
from .config import ConfigurationError
File “/usr/lib/python2.7/site-packages/compose/config/config.py”, line 51, in
from .validation import match_named_volumes
File “/usr/lib/python2.7/site-packages/compose/config/validation.py”, line 12, in
from jsonschema import Draft4Validator
File “/usr/lib/python2.7/site-packages/jsonschema/__init__.py”, line 21, in
from jsonschema._types import TypeChecker
File “/usr/lib/python2.7/site-packages/jsonschema/_types.py”, line 3, in
from pyrsistent import pmap
File “/usr/lib64/python2.7/site-packages/pyrsistent/__init__.py”, line 3, in
from pyrsistent._pmap import pmap, m, PMap
File “/usr/lib64/python2.7/site-packages/pyrsistent/_pmap.py”, line 98
) from e
^
SyntaxError: invalid syntax
@jayson:这个是由于docker-compose 的版本太旧了,如果你是pip install docker-compose 安装的话,应该就是用的python2的问题。
想确认一下,docker版本是19.03,还是19.3?
在docker官网找没看到19.3这个版本
麻烦想确认一下,docker版本是19.03,还是19.3?
在docker官网找没看到19.3这个版本
@花菜:是的,19.03
@兰玉磊:文档这里写着19.3,麻烦修正一下
内网地址内使用端口映射到外网IP ,验证码无法显示,因为验证码调用的是内网IP地址
@NET:这个应该是配置的问题,检查一下运行环境或者nginx配置文件吧。
进行数据同步时最后报错,请问是什么意思
start init
{“level”:”info”,”ts”:”2021-01-28 07:14:47.905948″,”caller”:”database/mysql.go:37″,”msg”:”mysql connect success!”}
{“level”:”info”,”ts”:”2021-01-28 07:14:48.425545″,”caller”:”migrate/server.go:41″,”msg”:”数据库结构初始化成功!”}
— 开始初始化数据
{“level”:”fatal”,”ts”:”2021-01-28 07:14:49.335724″,”caller”:”migrate/server.go:44″,”msg”:”数据库基础数据初始化失败,Error 1062: Duplicate entry ‘1’ for key ‘PRIMARY'”}
@goooreee:之前同步过数据,导致有残余数据,主键为1的数据已经存在了,所以无法写入到数据库,如果有重要数据的话,就备份一下,然后删除数据库,重新导入一下即可,如果没有重要数据,直接删除数据库,再次执行init即可。
为啥我部署不成功呢就是第五步、进行数据同步 是我操作不挡还是怎么了呀有没有视频教程看一下呢
@落:github readme 里面有视频教程。
查询数据失败,Error 1146: Table ‘ferry.sys_settings’ doesn’t exist
容器都up了,打开页面是这个问题,我对第二步中修改配置文件存疑,不应该保留原有的127.0.0.1吗?
@ncuzy:对docker-compose有疑惑的话,就看下docker-compose相关的文档吧,按照文档来,正常部署是没有问题的。
@兰玉磊:不好意思,我仔细查看了一下,发现mysql数据库里面,ferry数据库里面没有数据,导致出现了这个问题,请教一下,我可能是在哪出了问题。
@ncuzy:有一个 init 的操作,确认一下,执行了吗? 或者是不是执行失败了呢?
@兰玉磊:确实是init执行失败了,我重新安装,用root权限执行了第三步,怪我,全程是使用sudo来执行命令,第三步用普通用户执行的。
@ncuzy:docker-compose教程文档:https://www.runoob.com/docker/docker-compose.html
@ncuzy:兄弟,你好,我跟你碰到的问题一模一样,请问具体怎么解决的呢
@IT小黄:创建needinit文件,touch config/needinit就不会报错了
不好意思,继续打扰,我docker部署成功了,流程配置等等都没有问题 ,不过在新建工单的时候如果上传文件或者图片,就会报错,系统页面右上角“Error Log”信息如下,请教问题原因,有解决方法吗?
Msg: Failed to execute ‘open’ on ‘XMLHttpRequest’: Invalid URL
Info: vue-component-130-upload error in v-on handler
Url: http://192.168.100.174:8001/#/process/create-ticket?processId=2
Error: Failed to execute ‘open’ on ‘XMLHttpRequest’: Invalid URL at a.th (http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:532477) at a.post (http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:535846) at a.upload (http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:535008) at http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:534901 at Array.forEach () at a.uploadFiles (http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:534851) at a.handleChange (http://192.168.100.174:8001/static/web/js/chunk-elementUI.985d260b.js:1:534609) at ne (http://192.168.100.174:8001/static/web/js/chunk-libs.abb23372.js:64:11664) at HTMLInputElement.n (http://192.168.100.174:8001/static/web/js/chunk-libs.abb23372.js:64:13484) at HTMLInputElement.Ji.o._wrapper (http://192.168.100.174:8001/static/web/js/chunk-libs.abb23372.js:64:51758)
@ncuzy:需要配置在表单设计的时候,配置上传的URL,在文档的《手动部署》中有介绍的。
登陆时报错:Request failed with status code 404
@椲:可加群详聊,QQ群号: 1127401830
@兰玉磊:这个群加不了呀。。。不存在。。。
@chendong:啥群呢?
@兰玉磊:群满了,可以在群介绍里贴一下二群地址吗?
您好:
请问下docker部署第三步修改ferry_web的初始化脚本 docker/nginx/entrypoint/docker-entrypoint.sh,但是项目没有这个文件,请问如何处理
@tom xiang:已经调整为项目的根路径下了。
start init
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a820c]
goroutine 1 [running]:
go.uber.org/zap.(*SugaredLogger).log(0x0, 0x5, 0x0, 0x0, 0xc00066dcb0, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:233 +0x6c
go.uber.org/zap.(*SugaredLogger).Fatal(…)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:128
ferry/pkg/logger.Fatal(…)
/opt/ferry/pkg/logger/logger.go:116
ferry/tools/config.ConfigSetup(0x7ffeca640f0c, 0x1e)
/opt/ferry/tools/config/config.go:23 +0x61c
ferry/cmd/migrate.run()
/opt/ferry/cmd/migrate/server.go:36 +0xc6
ferry/cmd/migrate.glob..func1(0x38ed660, 0xc0003642a0, 0x0, 0x1)
/opt/ferry/cmd/migrate/server.go:22 +0x20
github.com/spf13/cobra.(*Command).execute(0x38ed660, 0xc000364290, 0x1, 0x1, 0x38ed660, 0xc000364290)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38ed120, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(…)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/opt/ferry/cmd/cobra.go:39 +0x2d
main.main()
/opt/ferry/main.go:8 +0x20
请问这个是什么原因?
docker run -ti –rm –link ferry_mysql:mysql –net=ferry_default –volume /opt/projects/config:/opt/ferry/config registry.cn-beijing.aliyuncs.com/lanyulei/ferry:v1.0.0-2 ./ferry init -c=/opt/ferry/config/settings.yml
start init
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a820c]
goroutine 1 [running]:
go.uber.org/zap.(*SugaredLogger).log(0x0, 0x5, 0x0, 0x0, 0xc000631cb0, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:233 +0x6c
go.uber.org/zap.(*SugaredLogger).Fatal(…)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:128
ferry/pkg/logger.Fatal(…)
/opt/ferry/pkg/logger/logger.go:116
ferry/tools/config.ConfigSetup(0x7ffc6b968f0c, 0x1e)
/opt/ferry/tools/config/config.go:23 +0x61c
ferry/cmd/migrate.run()
/opt/ferry/cmd/migrate/server.go:36 +0xc6
ferry/cmd/migrate.glob..func1(0x38ed660, 0xc000364dd0, 0x0, 0x1)
/opt/ferry/cmd/migrate/server.go:22 +0x20
github.com/spf13/cobra.(*Command).execute(0x38ed660, 0xc000364dc0, 0x1, 0x1, 0x38ed660, 0xc000364dc0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38ed120, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(…)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/opt/ferry/cmd/cobra.go:39 +0x2d
main.main()
/opt/ferry/main.go:8 +0x20
@chendong:这个报错有点模糊,可加微信详聊。
@chendong:复制粘贴,一定会报这个错误
docker run -ti –rm –link ferry_mysql:mysql –net=ferry_default –volume /Users/lanyulei/projects/lanyulei/go_projects/ferry/config:/opt/ferry/config registry.cn-beijing.aliyuncs.com/lanyulei/ferry:v1.0.0-2 ./ferry init -c=/opt/ferry/config/settings.yml
start init
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a820c]
goroutine 1 [running]:
go.uber.org/zap.(*SugaredLogger).log(0x0, 0x5, 0x0, 0x0, 0xc00036fcb0, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:233 +0x6c
go.uber.org/zap.(*SugaredLogger).Fatal(…)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:128
ferry/pkg/logger.Fatal(…)
/opt/ferry/pkg/logger/logger.go:116
ferry/tools/config.ConfigSetup(0x7ffed5298f0c, 0x1e)
/opt/ferry/tools/config/config.go:23 +0x61c
ferry/cmd/migrate.run()
/opt/ferry/cmd/migrate/server.go:36 +0xc6
ferry/cmd/migrate.glob..func1(0x38ed660, 0xc00006acc0, 0x0, 0x1)
/opt/ferry/cmd/migrate/server.go:22 +0x20
github.com/spf13/cobra.(*Command).execute(0x38ed660, 0xc00006acb0, 0x1, 0x1, 0x38ed660, 0xc00006acb0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38ed120, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(…)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/opt/ferry/cmd/cobra.go:39 +0x2d
main.main()
/opt/ferry/main.go:8 +0x20
k8s用前端嵌入后端部署后,也配置了,但是启动容器报错:settings.ymlpanic: config not found settings.database
@xuzheng0017:貌似是么有找到配置项。
以下粘贴具体报错:
2021/06/24 18:20:24 starting api server
panic: config not found settings.database
goroutine 1 [running]:
ferry/tools/config.ConfigSetup(0x7ffe29340cf3, 0x1e)
/var/jenkins_home/workspace/ferry/tools/config/config.go:35 +0x6c5
ferry/cmd/api.setup()
/var/jenkins_home/workspace/ferry/cmd/api/server.go:56 +0x39
ferry/cmd/api.glob..func1(0x342f500, 0xc0009e00b0, 0x0, 0x1)
/var/jenkins_home/workspace/ferry/cmd/api/server.go:34 +0x95
github.com/spf13/cobra.(*Command).execute(0x342f500, 0xc0009e00a0, 0x1, 0x1, 0x342f500, 0xc0009e00a0)
/var/jenkins_home/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:835 +0x4ef
github.com/spf13/cobra.(*Command).ExecuteC(0x342f260, 0x4012f0, 0x0, 0x0)
/var/jenkins_home/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x375
github.com/spf13/cobra.(*Command).Execute(…)
/var/jenkins_home/gopath/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/var/jenkins_home/workspace/ferry/cmd/cobra.go:39 +0x2d
main.main()
/var/jenkins_home/workspace/ferry/main.go:8 +0x25
真的有人能部署成功?github3.5k star ?
docker run -ti –rm \
> –link ferry_mysql:mysql \
> –net=ferry_default \
> –volume /Users/lanyulei/projects/lanyulei/go_projects/ferry/config:/opt/ferry/config \
> registry.cn-beijing.aliyuncs.com/lanyulei/ferry:v1.0.0-2 \
> ./ferry init -c=/opt/ferry/config/settings.yml
start init
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a820c]
goroutine 1 [running]:
go.uber.org/zap.(*SugaredLogger).log(0x0, 0x5, 0x0, 0x0, 0xc0003b3cb0, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:233 +0x6c
go.uber.org/zap.(*SugaredLogger).Fatal(…)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:128
ferry/pkg/logger.Fatal(…)
/opt/ferry/pkg/logger/logger.go:116
ferry/tools/config.ConfigSetup(0x7fffe2049f0c, 0x1e)
/opt/ferry/tools/config/config.go:23 +0x61c
ferry/cmd/migrate.run()
/opt/ferry/cmd/migrate/server.go:36 +0xc6
ferry/cmd/migrate.glob..func1(0x38ed660, 0xc00035a280, 0x0, 0x1)
/opt/ferry/cmd/migrate/server.go:22 +0x20
github.com/spf13/cobra.(*Command).execute(0x38ed660, 0xc00035a270, 0x1, 0x1, 0x38ed660, 0xc00035a270)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38ed120, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(…)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/opt/ferry/cmd/cobra.go:39 +0x2d
main.main()
/opt/ferry/main.go:8 +0x20
@pptfz:应该么有吧,3490的star都是淘宝买的。
@pptfz:我尽快优化部署方式。
docker执行最后一步报错:
start init
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8a820c]
goroutine 1 [running]:
go.uber.org/zap.(*SugaredLogger).log(0x0, 0x5, 0x0, 0x0, 0xc00062bcb0, 0x1, 0x1, 0x0, 0x0, 0x0)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:233 +0x6c
go.uber.org/zap.(*SugaredLogger).Fatal(…)
/go/pkg/mod/go.uber.org/zap@v1.10.0/sugar.go:128
ferry/pkg/logger.Fatal(…)
/opt/ferry/pkg/logger/logger.go:116
ferry/tools/config.ConfigSetup(0x7ffe3efa4f0c, 0x1e)
/opt/ferry/tools/config/config.go:23 +0x61c
ferry/cmd/migrate.run()
/opt/ferry/cmd/migrate/server.go:36 +0xc6
ferry/cmd/migrate.glob..func1(0x38ed660, 0xc00059a160, 0x0, 0x1)
/opt/ferry/cmd/migrate/server.go:22 +0x20
github.com/spf13/cobra.(*Command).execute(0x38ed660, 0xc00059a150, 0x1, 0x1, 0x38ed660, 0xc00059a150)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x38ed120, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(…)
/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
ferry/cmd.Execute()
/opt/ferry/cmd/cobra.go:39 +0x2d
main.main()
让后打开页面:x.x.x.x:8001页面提示“查询数据失败,Error 1146: Table ‘ferry.sys_settings’ doesn’t exist”
请问这个怎么解决,容器的状态都是UP的
@IT小黄:我自己都搭建好长时间了,错了试,试了错 还是不行 有点打击人的自信心啊
@IT小黄:这不是很明显的错误吗。数据结构 没有同步成功啊。先确认下 涉及到的软件最低版本要求吧,文档有介绍。
@IT小黄:和你一样的报错,我这边是docker部署的
脚本部署,一直卡在开始编译后端程序 的这个提示,是啥情况?
@nnjojo:应该是 go get 拉取依赖的时候,有点慢导致的。试试下面的文章能够帮到你。
https://www.fdevops.com/2020/03/22/fix-go-get
你好,docker部署完成后,使用admin/123456提示用户名或密码错误,默认的用户密码是这个吗?在数据库里面的sysuser表里没有找到admin
@lovyy:账号密码:admin / 123456
如果么有找到 admin 用户的话,就说明数据没有同步对。
第四步、进行数据同步 , 这步行不通 。 无法连接到 127.0.0.1:3306 。 docker安装
@bigbenz8:可自行百度排错,如果还有问题,请加群,发截图。
登录进入提示
查询处理工单人员排行失败
@zjy:看下后段日志有报错吗?
@兰玉磊:我的也是:
{“level”:”info”,”ts”:”2022-06-27 16:31:02.714957″,”caller”:”middleware/logger.go:39″,”msg”:” 2022-06-27 16:31:02.7144 200 497.58µs 133.70.33.148 GET /static/web/fonts/element-icons.535877f5.woff”}
{“level”:”info”,”ts”:”2022-06-27 16:31:02.728058″,”caller”:”middleware/permission.go:24″,”msg”:”admin/api/v1/dashboardGET”}
{“level”:”error”,”ts”:”2022-06-27 16:31:02.770925″,”caller”:”app/return.go:17″,”msg”:”查询处理工单人员排行失败”}
{“level”:”info”,”ts”:”2022-06-27 16:31:02.771007″,”caller”:”middleware/logger.go:39″,”msg”:” 2022-06-27 16:31:02.7084 200 62.533674ms 133.70.33.148 GET /api/v1/dashboard”}
无法 执行下面命令啊 ferry下没有docker-compose
# 在项目目录下执行一下命令
cd ferry_web && docker build . -t ferry_web
cd ferry && docker-compose up -d
您好,部署后,容器无法启动: 1 ⨯
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: “/entrypoint.sh”: permission denied: unknown
Error: failed to start containers: ferry_web
@Dylan:看起来是权限问题。
web的build报错
#13 66.97 @ ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–12-0!./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.2.2@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref–0-0!./node_modules/_vue-loader@15.9.8@vue-loader/lib??vue-loader-options!./src/layout/index.vue?vue&type=script&lang=js&
#13 66.97 @ ./src/layout/index.vue?vue&type=script&lang=js&
#13 66.97 @ ./src/layout/index.vue
#13 66.97 @ ./src/router/index.js
#13 66.97 @ ./src/main.js
#13 66.97 @ multi ./src/main.js
#13 66.97
#13 66.97 error in ./src/views/dashboard/admin/index.vue?vue&type=style&index=0&id=b66dfbde&lang=scss&scoped=true&
#13 66.97
#13 66.97
#13 66.97 /deep/ .el-tabs__item{
#13 66.97 ^
#13 66.97 Expected selector.
#13 66.97 ╷
#13 66.97 182 │ /deep/ .el-tabs__item{
#13 66.97 │ ^
#13 66.97 ╵
#13 66.97 stdin 182:1 root stylesheet
#13 66.97 in /opt/ferry_web/src/views/dashboard/admin/index.vue (line 182, column 1)
#13 66.97
#13 66.97
#13 66.97 @ ./src/views/dashboard/admin/index.vue?vue&type=style&index=0&id=b66dfbde&lang=scss&scoped=true& 1:0-714 1:0-714
#13 66.97 @ ./src/views/dashboard/admin/index.vue
#13 66.97 @ ./src sync ^\.\/views.*$
#13 66.97 @ ./src/store/modules/permission.js
#13 66.97 @ ./src/store/modules sync \.js$
#13 66.97 @ ./src/store/index.js
#13 66.97 @ ./src/main.js
#13 66.97 @ multi ./src/main.js
#13 66.97
#13 66.97 ERROR Build failed with errors.
#13 67.06 npm ERR! code ELIFECYCLE
#13 67.06 npm ERR! errno 1
#13 67.06 npm ERR! vue-element-admin@4.2.1 build:prod: `vue-cli-service build`
#13 67.06 npm ERR! Exit status 1
#13 67.06 npm ERR!
#13 67.06 npm ERR! Failed at the vue-element-admin@4.2.1 build:prod script.
#13 67.06 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#13 67.07
#13 67.07 npm ERR! A complete log of this run can be found in:
#13 67.07 npm ERR! /root/.npm/_logs/2021-10-09T08_07_30_368Z-debug.log
docker的version是20.10.8
@null:代码版本是
commit 9898a4939579e312bd5ea75f67a9a6d1b1473ad7 (HEAD -> master, origin/master, origin/HEAD)
Author: lanyulei
Date: Thu Sep 16 22:34:04 2021 +0800
feat: 工单筛选支持申请人。
@null:确认下 node 版本,推荐 14.x 的
@兰玉磊:我也有这个问题,这是在centos7上事先安装好node吗
查询数据失败,Error 1146: Table ‘ferry.sys_settings’ doesn’t exist,
docker部署的,这个表在哪儿呢?
@风雨无阻:init 会自动同步,按照文档来即可。
docker-compose pull 拉取镜像的时候报这个错:求大神帮忙看下….
ERROR: for ferry_web pull access denied for ferry_web, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied
ERROR: pull access denied for ferry_web, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied
@xiaobai:docker镜像非公开的?
@兰玉磊:不知道咋回事,我就是按照你给的compose的dockerfile拉取的,应该是您那边没有上传镜像把。。。。
我这边没有做任何的改动啊
@xiaobai:嗯呐,按照新文档试试,compose 有点问题。
docker-compose 安装报这个错误。
[tui-editor@1.3.3 › squire-rte@github:sohee-lee7/Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621] install squire-rte from git squire-rte@github:sohee-lee7/Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621, may be very slow, please keep patience
[tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] install raphael from git raphael@git+https://github.com/nhn/raphael.git#2.2.0-c, may be very slow, please keep patience
✖ Install fail! Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] An unknown git error occurred
Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] An unknown git error occurred
at module.exports (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/download/git.js:36:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async module.exports (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/download/index.js:17:12)
at async _install (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:125:16)
at async install (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:26:12)
at async mapper (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:266:9)
npminstall version: 5.3.1
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js –fix-bug-versions –china –userconfig=/root/.cnpmrc –disturl=https://npmmirror.com/mirrors/node –registry=https://registry.npmmirror.com
ERROR: Service ‘ferry_backend’ failed to build: The command ‘/bin/sh -c cnpm install’ returned a non-zero code: 1
@林:我也是遇到这个问题
你好,按你这边docker安装了,宿主机上装了mysql和redis但是启动容器时连不上数据库,请问下配置文件中数据库地址这样应该怎么配置呢
因为更改了源码,通过Dockerfile构建自己的docker镜像在npm安装依赖的时候一直过不去,能帮忙看看吗
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git
npm ERR!
npm ERR! error: RPC failed; curl 16 Error in the HTTP2 framing layer
npm ERR! fatal: expected flush after ref listing
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-08T02_14_06_193Z-debug.log
请问一下,docker部署,容器启动的时候出现 ”
standard_init_linux.go:228: exec user process caused: no such file or directory” 请问一下这是什么原因????
大佬你好,docker的迁移,有什么需要注意的地方吗?数据都保存在mysql和redis里面吗?docker镜像里面在以后的使用中会不会有新增数据,比如图片一类的,如果有的话,在什么位置?
docker打包出错
Step 8/33 : RUN cnpm install
—> Running in ce8706bc6389
[tui-editor@1.3.3 ? squire-rte@github:sohee-lee7/Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621] install squire-rte from git squire-rte@github:sohee-lee7/Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621, may be very slow, please keep patience
[tui-editor@1.3.3 ? tui-chart@3.11.3 ? raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] install raphael from git raphael@git+https://github.com/nhn/raphael.git#2.2.0-c, may be very slow, please keep patience
? Install fail! Error: [tui-editor@1.3.3 ? tui-chart@3.11.3 ? raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] git dep preparation failed
Error: [tui-editor@1.3.3 ? tui-chart@3.11.3 ? raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] git dep preparation failed
at module.exports (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/download/git.js:36:11)
at async module.exports (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/download/index.js:17:12)
at async _install (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:125:16)
at async install (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:26:12)
at async mapper (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/install.js:266:9)
npminstall version: 5.8.0
npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js –fix-bug-versions –china –userconfig=/root/.cnpmrc –disturl=https://npmmirror.com/mirrors/node –registry=https://registry.npmmirror.com
The command ‘/bin/sh -c cnpm install’ returned a non-zero code: 1
我试了手动编译打包,报错也是出在npm install这一步就进行不下去了
用docker 推荐方式部署,start 后日志显示
start init
{“level”:”fatal”,”ts”:”2022-07-07 02:34:54.258980″,”caller”:”database/mysql.go:35″,”msg”:”mysql connect error dial tcp 192.168.31.94:3306: i/o timeout”}
我没有192网段的ip地址,不知道什么问题
@hack:检查一下配置文件呢。
@hack:可能是主机启用了firewalld(或其它防火墙),会删除docker往iptables里面添加的规则。
需要修改docker服务的配置,禁用iptables选项,如:修改配置文件 /usr/lib/systemd/system/docker.service,在ExecStart命令后,添加–iptables=false选项,然后重启docker服务。
@hack:请问你解决了么?我也是遇到了这个问题
@hack:有解决了么,我也遇到这样的情况
docker logs 97d71e4d893b
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
exec /opt/workflow/ferry/entrypoint.sh: exec format error
docker logs –tail 50 –follow –timestamps e6e9d5f19eb3
2022-10-13T04:04:36.773519182Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:04:41.556587990Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:04:48.978520354Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:05:02.645556857Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:05:28.986614947Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:06:21.009066914Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:07:21.820632156Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:08:22.574369532Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:09:23.353989531Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:10:24.111871483Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:11:24.997461371Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:12:25.839104030Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:13:26.610922021Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:14:27.393202037Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:15:28.173405291Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:16:29.033738412Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:17:29.878890856Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:18:30.801667935Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:19:31.713683991Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:20:32.562149190Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:21:33.397805427Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:22:34.320292066Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:23:35.205786958Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:24:36.049867578Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:25:37.005790781Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:26:37.980853517Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:27:38.878350567Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:28:39.905429337Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:20.917231136Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:21.954997383Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:23.013120819Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:24.394368973Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:28.186421187Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:31.410438413Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:38.786678702Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:31:48.058993208Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:32:01.793076881Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:32:28.265544412Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:33:20.457350689Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:34:21.339588062Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:35:22.160806884Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:36:22.961948559Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:37:23.817713123Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:38:24.644217274Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:39:25.447953562Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:40:26.315101661Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:41:27.215346114Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:42:28.140714144Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:43:28.923065369Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
2022-10-13T04:44:29.755131498Z exec /opt/workflow/ferry/entrypoint.sh: exec format error
@1910:您好我想进容器内部但是进不去修改不了这个文件
@1910:@兰Error response from daemon: Container e6e9d5f19eb39519156afb4be50b89c2a5ff6917db20c6ef4610cafdb34917d4 is restarting, wait until the container is running
@兰Error response from daemon: Container e6e9d5f19eb39519156afb4be50b89c2a5ff6917db20c6ef4610cafdb34917d4 is restarting, wait until the container is running
@1910:看不太懂呢。
@兰玉磊:pkg/task/worker/worker.go:49:9: worker.SetPostTaskHandler undefined (type *machinery.Worker has no field or method SetPostTaskHandler)
pkg/task/worker/worker.go:51:9: worker.SetPreTaskHandler undefined (type *machinery.Worker has no field or method SetPreTaskHandler)
尝试手动部署但是有问题
@1910884164:我也是这样,你是怎样解决的
@1910884164:gomod版本问题
github.com/gomodule/redigo v2.0.0+incompatible 这个安装不了只能安装这个go get github.com/gomodule/redigo@latest版本还倒退了
github.com/RichardKnop/machinery v1.10.6 修改mod文件改成这个就可以启动了
@兰玉磊:pkg/task/worker/worker.go:49:9: worker.SetPostTaskHandler undefined (type *machinery.Worker has no field or method SetPostTaskHandler)
pkg/task/worker/worker.go:51:9: worker.SetPreTaskHandler undefined (type *machinery.Worker has no field or method SetPreTaskHandler)
docker在arm64架构手动部署又出现这个问题了真尴尬
@1910:linux下的部署完了
2022-10-20 15时33分28秒
ferry 管理平台
用户登录
admin
••••••
4249
incorrect Username or Password
linux下的部署完了
2022-10-20 15时33分28秒
ferry 管理平台
用户登录
admin
••••••
4249
incorrect Username or Password
无法连接到ldap服务器,LDAP Result Code 200 “Network Error”: dial tcp 127.0.0.1:389: connect: connection refused
@你好:请问一下这是为什么
@你好:ldap 连接不上。
docker-compose up -d 之后,ferry container 重复重启,重复报错
exec /opt/workflow/ferry/entrypoint.sh: no such file or directory
,可是我从docker desktop的files里,可以看到对应位置有这个文件entrypoint.sh 419 Bytes -rwxr-xr-x
我用命令 docker container cp ferry:/opt/workflow/ferry/entrypoint.sh D:\Downloads,也可以从ferry拷贝出文件,请问这个报错,可能是什么引起的?
使用的是matser( 829dc3a4ec54b01328f0853dbba768da7fbe320f)的代码
支持国产化aarch64内核嘛,有镜像嘛
tart init
{“level”:”fatal”,”ts”:”2024-04-18 03:45:04.688466″,”caller”:”database/mysql.go:35″,”msg”:”mysql connect error Error 1045: Access denied for user ‘root’@’192.168.10.129’ (using password: YES)”}
settings.yml更新了异机mysql 连接信息,但是还是提示连接本地ip,是哪个配置文件还需要调整的吗?异机docker 及docker容器之间是互通了的
starting api server
{“level”:”fatal”,”ts”:”2024-04-18 09:01:13.914938″,”caller”:”database/mysql.go:35″,”msg”:”mysql connect error Error 1045: Access denied for user ‘root’@’192.168.10.129’ (using password: YES)”}
settings.yml更新了异机mysql 连接信息,但是还是提示连接本地ip,是哪个配置文件还需要调整的吗?异机docker 及docker容器之间是互通了的
您好,我在镜像编译执行Dockerfile的时候报错了,可以帮我看一下吗?
报错信息:
Step 16/35 : RUN go mod download
—> Using cache
—> 0f797c77aa3c
Step 17/35 : RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=”-s -w” -o ferry .
—> Running in 59a412bf2701
# golang.org/x/exp/slog
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/level.go:159:13: undefined: atomic.Int64
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/attr.go:20:19: undefined: StringValue
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/attr.go:68:19: undefined: GroupValue
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/handler.go:446:15: undefined: StringValue
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/json_handler.go:109:20: v.str undefined (type Value has no field or method str)
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/record.go:192:9: undefined: GroupValue
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/text_handler.go:99:20: v.str undefined (type Value has no field or method str)
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:87:7: undefined: stringptr
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:91:7: undefined: groupptr
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:173:10: undefined: StringValue
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:173:10: too many errors
note: module requires Go 1.20
# go.uber.org/multierr
/go/pkg/mod/go.uber.org/multierr@v1.10.0/error.go:224:20: undefined: atomic.Bool
note: module requires Go 1.19
# github.com/klauspost/compress/zstd
/go/pkg/mod/github.com/klauspost/compress@v1.17.0/zstd/dict.go:479:32: binary.LittleEndian.AppendUint32 undefined (type binary.littleEndian has no field or method AppendUint32)
/go/pkg/mod/github.com/klauspost/compress@v1.17.0/zstd/dict.go:490:32: binary.LittleEndian.AppendUint32 undefined (type binary.littleEndian has no field or method AppendUint32)
/go/pkg/mod/github.com/klauspost/compress@v1.17.0/zstd/dict.go:491:32: binary.LittleEndian.AppendUint32 undefined (type binary.littleEndian has no field or method AppendUint32)
/go/pkg/mod/github.com/klauspost/compress@v1.17.0/zstd/dict.go:492:32: binary.LittleEndian.AppendUint32 undefined (type binary.littleEndian has no field or method AppendUint32)
The command ‘/bin/sh -c CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=”-s -w” -o ferry .’ returned a non-zero code: 2