Good night, I can not update mei gitlab ce.
I have version 12.1.6 and I need to upgrade to the current version and I’m not getting it.
This is the error presented.
Can you help me?
I try to install the version later than it is installed, but it has the error below:
root@localhost:~# sudo apt-get install gitlab-ce=12.1.8-ce.0 Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
193 not fully installed or removed.
Need to get 683 MB of archives.
After this operation, 95.2 kB of additional disk space will be used.
Get:1 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu bionic/main amd64 gitlab-ce amd64 12.1.8-ce.0 [683 MB]
Fetched 683 MB in 15s (45.4 MB/s)
(Reading database … 183640 files and directories currently installed.)
Preparing to unpack …/gitlab-ce_12.1.8-ce.0_amd64.deb …
Malformed configuration JSON file found at /opt/gitlab/embedded/nodes/localhost.json.
This usually happens when your last run of
gitlab-ctl reconfigure didn’t complete successfully.
This file is used to check if any of the unsupported configurations are enabled,
and hence require a working reconfigure before upgrading.
sudo gitlab-ctl reconfigure to fix it and try again.
dpkg: error processing archive /var/cache/apt/archives/gitlab-ce_12.1.8-ce.0_amd64.deb (–unpack):
new gitlab-ce package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)