Skip to content

[Bug] make dev-all 调起开发环境失败退出 #709

Description

@Zerorigin

Summary

使用make dev-all部署开发环境时,遇到了以下错误,尝试过开代理和配置 mvn 的依赖下载源 - 新增 .mvn/settings.xml 配置阿里云 mirror ( #220 (comment) ),但都失败了。

个人情况,没有 Java 项目开发经验,所有配置 Java & Node.js 的开发环境都是用 mise 直接安装的,想要部署 skillhub 的开发环境,尝试对其进行二开在公司内部使用。

会 Python 和 Golang 开发,及 Linux 环境配置。

# make dev-all
make[1]: Entering directory '/mnt/d/Projects/skillhub'
docker compose -p skillhub up -d --wait --remove-orphans
[+] Running 4/4
 ✔ Container skillhub-redis-1          Healthy                                                                                                         0.5s
 ✔ Container skillhub-skill-scanner-1  Healthy                                                                                                         0.5s
 ✔ Container skillhub-postgres-1       Healthy                                                                                                         0.5s
 ✔ Container skillhub-minio-1          Healthy                                                                                                         0.5s
Services ready.
Start backend with: make dev-server
Start frontend with: make dev-web
make[1]: Leaving directory '/mnt/d/Projects/skillhub'
make[1]: Entering directory '/mnt/d/Projects/skillhub'
Using existing frontend dependencies.
make[1]: Leaving directory '/mnt/d/Projects/skillhub'
Starting backend...
Frontend already running with PID 9318
Waiting for backend on http://localhost:8080 ...
Backend did not become ready on attempt 1. Restarting...

Backend failed to become ready. Check .dev/server.log

Common issues:
  1. Maven dependency download failed (network timeout)
     -> Configure mirror in ~/.m2/settings.xml
     -> See: https://maven.aliyun.com/mvn/guide
  2. Java version mismatch (requires Java 21+)
     -> Run: java -version
  3. Port 8080 already in use
     -> Run: lsof -i :8080

make: *** [Makefile:45: dev-all] Error 1

 

# cat .dev/server.log
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected

 

# make dev-server
cd server && /bin/sh -lc 'true && exec env SKILLHUB_SECURITY_SCANNER_ENABLED=true SKILLHUB_SECURITY_SCANNER_URL=http://localhost:8000 SKILLHUB_SECURITY_SCANNER_MODE=upload ./scripts/run-dev-app.sh'
/bin/sh: 40: eval: Syntax error: redirection unexpected
make: *** [Makefile:130: dev-server] Error 2

Steps To Reproduce

git clone --depth 1 https://github.com/iflytek/skillhub/
cd skillhub
cp ../.env ./
make dev-all

Expected Behavior

开发环境能正常调起

Environment

os:

# uname -a
Linux ubuntu-2404.wsl 6.18.35.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Wed Jun 17 23:14:00 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

 

env:

# env
SHELL=/bin/bash
__MISE_EXE=/root/.local/bin/mise
WSL2_GUI_APPS_ENABLED=1
WSL_DISTRO_NAME=Ubuntu-24.04
WT_SESSION=ec21e37b-4b8d-41ff-876c-0090bff620d1
JAVA_HOME=/root/.local/share/mise/installs/java/zulu-21.52.15.0
NAME=ubuntu-2404.wsl
PWD=/mnt/d/Projects/skillhub
LOGNAME=root
HOME=/root
LANG=C.UTF-8
WSL_INTEROP=/run/WSL/65178_interop
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:
WAYLAND_DISPLAY=wayland-0
__MISE_DIFF=eAFqXpyfk9KwOC+1vHGll2OYY7yHv6/rTVP9ovz8En29nPzkxBx9wIozEotS9XMzi1P1M/OKSxJzcor1sxLLEvWrSnNKdY0M9UyN9AxN9QyWFCSWZEy5aUiSZv2kzLybrgS15CaWpebpG+tZ6hma6ScWJCZnpOqCxXShYiBjdAgak5efkqpvZAS2VJeg6oK8glx9QwM9Y2M9AwDdpmtU
__MISE_ORIG_PATH=/mnt/d/DevOps/Editors/Zed/bin:/mnt/d/DevOps/Microsoft/VSCode/bin:/mnt/d/DevOps/Microsoft/VSCode:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/snap/bin
LESSCLOSE=/usr/bin/lesspipe %s %s
TERM=xterm-256color
LESSOPEN=| /usr/bin/lesspipe %s
USER=root
__MISE_SESSION=eAHqWpOTn5iSmhJfkp+fUzxhHZSXnJ+XlplePPmmhn5uXol+in5AUX5WanJJsX5xdmZOTkZpkn5uZnGqXk5+cmKOXkl+bs5+dIVo8vv0i/LzS/T1ICaDdetD2GDtayDs+ILEkoziCYtT88oaV3o5hjnGe/j7ut40hWoGW6dfnJFYlAoxITOvuCQxJ6dYPyuxLFG/qjSnVNfIUM/USM/QVM9geWJOZmJxanHDqpLUosT4tMyc1OIJq8sTS5IzIJypgBFyNPHeJ+C97Tg8cFMdVaIksQTqs5Ki0uKS1BRdSLgUL07JLNqBHsSwuFiTmlcWX5ZYFJ+RWJyxIcnY0jA1zdQgydww2dDUwmxtTmJJanFJfGlBSmJJ6hEBBjhgnP/VsOENAOkLxdM
DISPLAY=:0
SHLVL=1
XDG_RUNTIME_DIR=/run/user/0
WSLENV=WT_SESSION:WT_PROFILE_ID:
MISE_SHELL=bash
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/root/.local/share/mise/installs/java/zulu-21/bin:/root/.local/share/mise/installs/maven/3.9.16/apache-maven-3.9.16/bin:/root/.local/share/mise/installs/node/22/bin:/root/.local/share/mise/installs/pnpm/10.33.0:/mnt/d/DevOps/Editors/Zed/bin:/mnt/d/DevOps/Microsoft/VSCode/bin:/mnt/d/DevOps/Microsoft/VSCode:/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/snap/bin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
HOSTTYPE=x86_64
UV_HTTP_TIMEOUT=10800
PULSE_SERVER=unix:/mnt/wslg/PulseServer
WT_PROFILE_ID={963ff2f7-6aed-5ce3-9d91-90d99571f53a}
OLDPWD=/root
_=/usr/bin/env

 

langs & tools (使用 mise 安装和管理)

# java --version
openjdk 21.0.12 2026-07-21 LTS
OpenJDK Runtime Environment Zulu21.52+15-CA (build 21.0.12+8-LTS)
OpenJDK 64-Bit Server VM Zulu21.52+15-CA (build 21.0.12+8-LTS, mixed mode, sharing)


# mvn -v
Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5)
Maven home: /root/.local/share/mise/installs/maven/3.9.16/apache-maven-3.9.16
Java version: 21.0.12, vendor: Azul Systems, Inc., runtime: /root/.local/share/mise/installs/java/zulu-21.52.15.0
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.18.35.2-microsoft-standard-wsl2", arch: "amd64", family: "unix"


# node -v
v22.23.2


# pnpm -v
10.33.0

API Contract Impact

No response

Logs Or Screenshots

# make dev-all
make[1]: Entering directory '/mnt/d/Projects/skillhub'
docker compose -p skillhub up -d --wait --remove-orphans
[+] Running 4/4
 ✔ Container skillhub-redis-1          Healthy                                                                                                         0.5s
 ✔ Container skillhub-skill-scanner-1  Healthy                                                                                                         0.5s
 ✔ Container skillhub-postgres-1       Healthy                                                                                                         0.5s
 ✔ Container skillhub-minio-1          Healthy                                                                                                         0.5s
Services ready.
Start backend with: make dev-server
Start frontend with: make dev-web
make[1]: Leaving directory '/mnt/d/Projects/skillhub'
make[1]: Entering directory '/mnt/d/Projects/skillhub'
Using existing frontend dependencies.
make[1]: Leaving directory '/mnt/d/Projects/skillhub'
Starting backend...
Frontend already running with PID 9318
Waiting for backend on http://localhost:8080 ...
Backend did not become ready on attempt 1. Restarting...

Backend failed to become ready. Check .dev/server.log

Common issues:
  1. Maven dependency download failed (network timeout)
     -> Configure mirror in ~/.m2/settings.xml
     -> See: https://maven.aliyun.com/mvn/guide
  2. Java version mismatch (requires Java 21+)
     -> Run: java -version
  3. Port 8080 already in use
     -> Run: lsof -i :8080

make: *** [Makefile:45: dev-all] Error 1

 

# cat .dev/server.log
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected
/bin/sh: 40: eval: Syntax error: redirection unexpected

 

# make dev-server
cd server && /bin/sh -lc 'true && exec env SKILLHUB_SECURITY_SCANNER_ENABLED=true SKILLHUB_SECURITY_SCANNER_URL=http://localhost:8000 SKILLHUB_SECURITY_SCANNER_MODE=upload ./scripts/run-dev-app.sh'
/bin/sh: 40: eval: Syntax error: redirection unexpected
make: *** [Makefile:130: dev-server] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffort/l大改动或高风险改动,需要 maintainer 负责 / Large or risky change requiring maintainer ownership.priority/p1高优先级 / High priority triage bucket.risk/high涉及安全、鉴权、迁移或公共契约 / Touches security, auth, migrations, or public contracts.triage/core交由 core maintainer 结合 AI 协同处理 / Issue should be handled by a core maintainer with AI support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions