Skip to content
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

[Bug] The Runtime module start/stop script cannot be executed on linux #4299

Closed
1 of 2 tasks
g0715158 opened this issue Jul 28, 2023 · 6 comments
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@g0715158
Copy link
Contributor

g0715158 commented Jul 28, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

master

What happened

The Runtime module start/stop script cannot be executed on linux

How to reproduce

sh start.sh

bin/start.sh:行19: $'\r': 未找到命令
: 无效选项sh: 第 23 行:set: -
set: 用法:set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

Debug logs

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@g0715158 g0715158 added the bug Something isn't working label Jul 28, 2023
@g0715158
Copy link
Contributor Author

dos2unix this script

@luyajun
Copy link

luyajun commented Aug 24, 2023

EventMesh v1.9.0 Binary Distribution has the same problem

@Pil0tXia
Copy link
Member

@luyajun Thank you for you feedback. May I ask what OS environment you are running eventmesh on? Have you tried dos2unix?

@luyajun
Copy link

luyajun commented Aug 24, 2023

[root@localhost apache-eventmesh-1.9.0]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

replace the '\r' character , then the start.sh can run.

but the stop.sh can not find the running event mesh , and close it

@Pil0tXia
Copy link
Member

Pil0tXia commented Aug 24, 2023

image

image

In my case it worked with bash after dos2unix. The No Such Process output was misleading. This problem will be fixed later.

image

The scripts fail when using sh even though they are marked with !/bin/sh to run with sh. This problem is verifying.

@Pil0tXia
Copy link
Member

@luyajun Your problem will be fixed in #4401 and we welcome any further feedback you may have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants