添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
憨厚的鼠标  ·  New cluster create, ...·  2 天前    · 
气势凌人的柚子  ·  Dockerfile 的 ...·  2 天前    · 
文雅的移动电源  ·  Is it possible to ...·  1 月前    · 
纯真的橙子  ·  22.3. Creating an ...·  2 月前    · 
沉着的烈马  ·  How to Set Up, Build, ...·  2 月前    · 
光明磊落的春卷  ·  吞吐 - QQ音乐·  2 月前    · 

Hello,
I have created a docker cluster using
d2 cluster up 2.35.0 --db-version 2.35 --update
command. However, it created an empty database. I’ve downloaded a demo database from a repository. But am not able to restore it using “d2 cluster db restore” command (actually which command will work I don’t know). It’s returning

Restoring database (this may take some time)…
‘.’ is not recognized as an internal or external command,
operable program or batch file.
node:events:498
throw er; // Unhandled ‘error’ event

Any guidance from the experts will be extremely helpful.

Monjur

Many thanks @kose .
No, it didn’t work. Its returning the same error. BTW, I’m using Windows OS.

Monjur

Then again run

d2 cluster up 2.35.0 --seedFile <correct path-to-your-gunzipped- SQL dump file>

Ensure the path to your .SQL file is correct and the user has the right access permission

@jaime.bosque, my friend, you made my day. I followed your trick and slapped the docker system till it worked. BTW, I am very happy to chat with you again. I would love to hang out with you again in Negombo or anywhere.

@kose, many many thanks. When I have bad times, no commands work. I really appreciate your help.

many thanks for the solution @jaime.bosque @kose

This page d2 cluster has additional arguments for selecting stable or dev , dhis2-version, --db-version

  • for running latest dev version at port 8080
  • d2 cluster up devinstance --channel dev --dhis2-version master --db-version dev --port 8080 --seedFile pathtoDBsql
    
  • For running Stable version 2.38.1 at port 8081
  • d2 cluster up stable2.38.1 --channel stable --dhis2-version 2.38.1 --db-version dev --port 8081 --seedFile pathtoDBsql