Make it easier to recover from a bad install
Today I helped a few members with a broken GDK. There were a number of issues:
- The
portfile had invalid data: it had something like3000 echo 3001>port. This causedmaketo fail right out of the box, and nothing was set up properly. Perhaps earlier validation should be done here with a better warning message. #659 (closed) - Even after fixing the
portfile,makedidn't check out all the dependencies (e.g.gitlab-shell,gitaly, etc.). I had to runmake gitlab-shell-setupandmake gitaly-shell-setupetc. to get this working. #629 (closed) -
Closed by #628 (closed)rubywas using v2.4.4, not v2.6.3, for some reason, so one of the startup Ruby scripts died because it was using 2.6.3 syntax. I didn't see a.ruby-versionin the GDK dir though. I had to force arvm use 2.6.3to get this to work. Perhaps we need to do a version check to make sure it's set up properly. -
Even after having all the dependencies,#667 (closed)gdk updatefailed because thegitlabhq_developmentdidn't exist. I had to rungdk run gitaly dbfirst in one window, and thenbundle exec rake dev:setupto seed the database. Perhaps we need to detect the database doesn't exist and reinitialize it. - Building the
elasticsearch-indexerfailed due to theicu4cissue linked in the troubleshooting. I had to setexport PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:$PKG_CONFIG_PATH". #631 (closed) - Jaeger conflicted with both the CE and EE ports. Perhaps we should automatically use different ports for an EE installation. (Irrelevant once we have the single codebase). #632 (closed)
- One person wasn't aware that you had to run
bundle install; yarnin thegitlabdirectory after updating thegitlab/dir. Some people usegdk update, but not always. #633 (closed)
Edited by Albert Salim