conceptsandtraining / doil

GNU Affero General Public License v3.0
16 stars 7 forks source link

Apply base state fails #172

Closed gpkvt closed 2 years ago

gpkvt commented 2 years ago
doil instances:create -n testing -gr ilias -b release_7 -p 7.3
Updating repository ilias ... ok
Updating debian image .../usr/bin/docker-credential-desktop.exe: Invalid argument
 ok
Starting mandatory doil services ... ok
Create basic folders ... ok
Setting folder permissions ... ok
Copying necessary files ... ok
Setting up configuration .../usr/local/lib/doil/lib/repo/list/list.sh: line 44: ~/.doil/config/repositories.conf: No such file or directory
 ok
Copying repository to target ... ok
Replacing template vars ... ok
Building minion image ... ok
Checking key ... ok
Setting up instance configuration ... ok
Apply base state ... failed

The instance itself seems to be created, also saltmain was started, but no proxy:

docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED          STATUS          PORTS     NAMES
7f5394bf1533   doil/testing_local:stable   "/usr/local/bin/run-…"   50 seconds ago   Up 49 seconds             testing_local
9ec67c1f8fc5   saltmain                    "salt-master -l debug"   3 minutes ago    Up 3 minutes              saltmain

The proxy does not start manually, as well, even doil states otherwise:

doil system:proxy start
[18.03.2022 07:10:13] Starting proxy server
[+] Running 1/1
 ⠿ Container doil_proxy  Started      

docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED              STATUS              PORTS     NAMES
7f5394bf1533   doil/testing_local:stable   "/usr/local/bin/run-…"   About a minute ago   Up About a minute             testing_local
9ec67c1f8fc5   saltmain                    "salt-master -l debug"   4 minutes ago        Up 4 minutes                  saltmain
catlauraherzog commented 2 years ago

Because of this

Setting up configuration .../usr/local/lib/doil/lib/repo/list/list.sh: line 44: ~/.doil/config/repositories.conf: No such file or directory

it is related to #176 therefore close

gpkvt commented 2 years ago

I'm not sure if #176 really is the same issue. Also I still get errors when I install doil:

Configuring user specific data ...mv: cannot stat '/home/gpkvt/.doil/config/repos': No such file or directory
mv: cannot stat 'instances': No such file or directory
mv: cannot stat 'repositories': No such file or directory

Even though #176 is marked as closed.

catlauraherzog commented 2 years ago

I think I marked the wrong issue: https://github.com/conceptsandtraining/doil/issues/164

It definitly has something to do with the installation. Give me a sec, I'll update the #164 issue in a bit.