Skip to main content

Error in PREIN scriptlet in rpm package gitlab-ce-12.1.1-ce.0.el6.x86_64

Comments

8 comments

  • cPanelLauren
    It looks like the gitlab-ce-7.14.1-ce.0.el6.x86_64 package wasn't removed when the updated version was installed. Are you able to remove it manually?
    0
  • Mann89
    I've tried various ways of trying to locate the package but just don't seem able to find it. cyberciti.biz/faq/linux-how-can-i-find-a-file-on-my-system/ Maybe the script is attempting to delete a file that doesn't actually exist? You wouldn't happen to have any idea where the package would be located on a standard server?
    0
  • cPanelLauren
    Hi @Mann89 You would want to run something like: rpm -qa |grep gitlab-ce
    If you have the old version and the newer version you'd want to remove the older version. To remove it: rpm -e --nodeps gitlab-ce-7.14.1-ce.0.el6.x86_64
    0
  • Mann89
    Running the first command above gives the following output: [quote]gitlab-ce-7.14.1-ce.0.el6.x86_64
    Would you recommend I go ahead and delete using the second command, or would removing this cause further issues as no updated version appears to have been installed on the server?
    0
  • cPanelLauren
    That at least confirms that you don't have duplicates installed. If you manually run the following do you get an error? yum update gitlab-ce
    If it updates appropriately that's great, but really I'm assuming it won't and you'll get a more descriptive error message.
    0
  • Mann89
    Unsuccessful, I'm afraid. It appears upgrading from version 7.x to 12.x is giving us the problem. yum update gitlab-ce Loaded plugins: fastestmirror, security, tsflags, universal-hooks Setting up Update Process Loading mirror speeds from cached hostfile epel/metalink | 30 kB 00:00 * EA4: 91.197.228.252 * cpanel-addons-production-feed: 91.197.228.252 * cpanel-plugins: 91.197.228.252 * base: mirrors.coreix.net * centos-sclo-rh: mirrors.coreix.net * epel: mirrors.coreix.net * extras: centos.serverspace.co.uk * updates: mirror.as29550.net EA4 | 2.9 kB 00:00 ... cpanel-addons-production-feed | 2.9 kB 00:00 ... cpanel-plugins | 2.9 kB 00:00 ... base | 3.7 kB 00:00 centos-sclo-rh | 2.9 kB 00:00 epel | 5.3 kB 00:00 epel/primary_db | 6.1 MB 00:00 extras | 3.4 kB 00:00 gitlab_gitlab-ce/signature | 836 B 00:00 gitlab_gitlab-ce/signature | 1.0 kB 00:00 ... gitlab_gitlab-ce-source/signature | 836 B 00:00 gitlab_gitlab-ce-source/signature | 951 B 00:00 ... letsencrypt-cpanel | 2.9 kB 00:00 updates | 3.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package gitlab-ce.x86_64 0:7.14.1-ce.0.el6 will be updated ---> Package gitlab-ce.x86_64 0:12.1.1-ce.0.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================================================================================================================================== Updating: gitlab-ce x86_64 12.1.1-ce.0.el6 gitlab_gitlab-ce 630 M Transaction Summary ============================================================================================================================================================================================================================================================================== Upgrade 1 Package(s) Total download size: 630 M Is this ok [y/N]: y Downloading Packages: gitlab-ce-12.1.1-ce.0.el6.x86_64.rpm | 630 MB 00:59 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction gitlab preinstall: It seems you are upgrading from 7.x version series gitlab preinstall: to 12.x series. It is recommended to upgrade gitlab preinstall: to the last minor version in a major version series first before gitlab preinstall: jumping to the next major version. gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/policy/maintenance.html#upgrade-recommendations gitlab preinstall: and upgrade to 11.11 first. error: %pre(gitlab-ce-12.1.1-ce.0.el6.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package gitlab-ce-12.1.1-ce.0.el6.x86_64 error: install: %pre scriptlet failed (2), skipping gitlab-ce-12.1.1-ce.0.el6 gitlab-ce-7.14.1-ce.0.el6.x86_64 was supposed to be removed but is not! Verifying : gitlab-ce-7.14.1-ce.0.el6.x86_64 1/2 Verifying : gitlab-ce-12.1.1-ce.0.el6.x86_64 2/2 Failed: gitlab-ce.x86_64 0:7.14.1-ce.0.el6 gitlab-ce.x86_64 0:12.1.1-ce.0.el6 Complete!
    0
  • Mann89
    Rather frustrating and time consuming, but I appear to have solved the problem by upgrading through each major version one at a time. sudo yum install --nogpgcheck gitlab-ce-X.X.X-ce.0.el6.x86_64
    Replacing the X.X.X values above, I manually had to upgrade from version 7 to 8, 8 to 9 and so on until eventually reaching version 12.1.1 (latest version). The HUGE problem I am left with now, however, is that none of the websites on the server display. I've tried the command below, but still no luck. sudo gitlab-ctl reconfigure
    0
  • cPanelLauren
    I'm glad to hear you were able to get it updated, please keep in mind this isn't a package that's specific to cPanel/WHM and our ability to provide assistance with it is limited. If you enable the PHP error logs or check the apache error logs when attempting to load the site that is not displaying what if any errors are present?
    0

Please sign in to leave a comment.