没有不值得去解决的问题,也没有不值得去学习的技术!

Resolving a Syntax Error When Upgrading Containers in Rancher

Upgrading a container in Rancher produced the error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}'

1. Upgrading a container in Rancher produced the error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}’, as shown in Figure 1.

Upgrading a container in Rancher produced the error: /config/init/config0.sh: line 1314: syntax error near unexpected token `}'
Figure 1
Plaintext
2019/7/31 下午3:46:16CHANNEL_PUB_API_CFG_URL_SIGNER_TIME_OUT=10
2019/7/31 下午3:46:16/config/init/config0.sh: line 1314: syntax error near unexpected token `}'

2. In PhpStorm, I edited /config/init/config0.sh and received the prompt: Expected a command. I commented out the corresponding code, as shown in Figure 2.

In PhpStorm, editing /config/init/config0.sh prompted: Expected a command. The corresponding code was commented out
Figure 2
ShellScript

# function DEV_NETEASE_CONFIG_MAIN_LOCAL_PATH_exsit()
# {
# }

# function PROD_NETEASE_CONFIG_MAIN_LOCAL_PATH_exsit()
# {
# }

3. The upgrade succeeded in Rancher, as shown in Figure 3.

Upgrade succeeded in Rancher
Figure 3
Plaintext
2019/7/31 下午4:54:18No new migrations found. Your system is up-to-date.
2019/7/31 下午4:54:18Model (Penguin's third-party service platform application) created successfully
2019/7/31 下午4:54:19Model (Penguin's content website application) created successfully
2019/7/31 下午4:54:19Model (microblogging micro-connected web application) created successfully
2019/7/31 下午4:54:19Model (WeChat third-party platform application) created successfully

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系