Running handlers:
[2024-01-11T10:07:59+00:00] ERROR: Running exception handlers
There was an error running gitlab-ctl reconfigure:
cannot load such file – tomlib
Running handlers complete
[2024-01-11T10:07:59+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 01 seconds
[2024-01-11T10:08:00+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2024-01-11T10:08:00+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-01-11T10:08:00+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2024-01-11T10:08:00+00:00] FATAL: ---------------------------------------------------------------------------------------
[2024-01-11T10:08:00+00:00] FATAL: LoadError: cannot load such file – tomlib
This instance was installed using docker hub.
Maybe some gitlab files were deleted when fixing the space issue, but I don’t know how to know it/check it.
The filesystem is the same.
Yes, the account running gitlab has access to the file system.
If this is running in a docker instance then you should look at if there are any deleted docker files. Were you using a bind mount or a volume in docker to create the gitlab container?
Docker runs well, I can create a new additionnal gitlab instance from scratch.
But I want to recover the old gitlab instance that contains the repositories.
And sorry, how could I know if I used a bind mount or volume in docker ?
Can you do a docker container ls -a and make sure your old Gitlab container is still around. Then do a docker container inspect <container_name> That should tell you where on your host file system the docker volumes can be located.
When starting the docker container you would have used a --volume flag or something like it. What did you specify with that flag? Something like:
--volume /path/to/files:/etc/gitlab
If that /path/to/files is one that you deleted files from then you might have to do some work to rebuild your Gitlab instance using files from a new copy.
Fair warning this is a bit of a Frankenstein’s monster and I was assuming that you can’t backup your instance. You should run the following to try and create a gitlab backup of your instance. docker exec -t <container name> gitlab-backup create.
If the backup is created successfully then follow Gitlab’s recovery documentation using the backup.
If it does not work, please let me know and I can give you a plan to attempt recovery.
Once container is launched, it fails and exits.
So the command docker exec -t <container name> gitlab-backup create outputs : Error response from daemon: Container [xxx] is not running