Closed saschafoerster closed 5 years ago
Well, it looks like you have simply installed the synology_gitlab 11.0.4-0053 over the synology_gitlab_jboxberger 11.5.0-0102. This is not possible as mentioned here.
To get the package working again, i reccommend you. 1) BACKUP (/volume1/docker/gitlab and * /volume1/docker/gitlab-db) 2) Uninstall synology_gitlab 11.0.4-0053 ( KEEP ALL DATA !) 3) Reinstall synology_gitlab_jboxberger 11.5.0-0102 ( USING PREVIOUS CONFIG SETTINGS AND CREDENTIALS)
Then your package should work again. From there you should be able to update to synology_gitlab_jboxberger 11.5.1-0102 and migrate to synology_gitlab 11.5.1-0053 or to Gitea.
Please let me know if this works for you.
Right now I was able to install synology_gitlab_jboxberger 11.5.0-0102 and I had a running system. Next: I followed the steps described here: Migration. When I tried to install synology-gitlab-stock-aio-11.5.1-0053.spk, I got the following error messages:
2019/02/24 11:34:23 uninstall synology-gitlab-jboxberger: Uninstall 11.5.1-0102 successfully
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 Begin preinst
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 End preinst ret=[0]
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/Docker-GitLab
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/Docker-GitLab ret=[0]
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 Begin /bin/rm -rf /var/packages/Docker-GitLab
2019/02/24 12:12:50 install Docker-GitLab 11.5.1-0053 End /bin/rm -rf /var/packages/Docker-GitLab ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/mkdir -p /var/packages/Docker-GitLab
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 End /bin/mkdir -p /var/packages/Docker-GitLab ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/Docker-GitLab/INFO
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/Docker-GitLab/INFO ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/rm -rf /var/packages/Docker-GitLab/scripts
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 End /bin/rm -rf /var/packages/Docker-GitLab/scripts ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/Docker-GitLab/scripts
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/Docker-GitLab/scripts ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/rm -rf /var/packages/Docker-GitLab/WIZARD_UIFILES
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 End /bin/rm -rf /var/packages/Docker-GitLab/WIZARD_UIFILES ret=[0]
2019/02/24 12:12:55 install Docker-GitLab 11.5.1-0053 Begin /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/Docker-GitLab/WIZARD_UIFILES
2019/02/24 12:12:56 install Docker-GitLab 11.5.1-0053 End /bin/mv -f /volume1/@tmp/pkginstall/WIZARD_UIFILES /var/packages/Docker-GitLab/WIZARD_UIFILES ret=[0]
2019/02/24 12:12:56 install Docker-GitLab 11.5.1-0053 Begin /bin/rm -rf /var/packages/Docker-GitLab/conf
2019/02/24 12:12:56 install Docker-GitLab 11.5.1-0053 End /bin/rm -rf /var/packages/Docker-GitLab/conf ret=[0]
2019/02/24 12:12:56 install Docker-GitLab 11.5.1-0053 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/Docker-GitLab/conf
2019/02/24 12:12:56 install Docker-GitLab 11.5.1-0053 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/Docker-GitLab/conf ret=[0]
2019/02/24 12:12:57 install Docker-GitLab 11.5.1-0053 Begin postinst
**unable to write 'random state'
unable to write 'random state'
unable to write 'random state'**
[Line 259] Exec WebAPI: api=SYNO.Docker.Container, version=1, method=create, param={"is_run_instantly":false,"profile":{"cpu_priority":0,"enable_publish_all_ports":false,"env_variables":[],"image":"redis:3.2.6","is_package":false,"memory_limit":0,"name":"synology_gitlab_redis","port_bindings":[],"privileged":false,"shortcut":{"enable_shortcut":false},"volume_bindings":[]}}, runner=
{
"data" : {},
"httpd_restart" : false,
"success" : true
}
[Line 259] Exec WebAPI: api=SYNO.Docker.Container, version=1, method=create, param={"is_run_instantly":false,"profile":{"cpu_priority":0,"enable_publish_all_ports":false,"env_variables":[{"key":"DB_USER","value":"gitlab_user"},{"key":"DB_PASS","value":"[REMOVED]"},{"key":"DB_NAME","value":"gitlab"},{"key":"DB_EXTENSION","value":"pg_trgm"}],"image":"sameersbn/postgresql:10","is_package":false,"memory_limit":0,"name":"synology_gitlab_postgresql","port_bindings":[],"privileged":false,"shortcut":{"enable_shortcut":false},"volume_bindings":[{"host_volume_file":"/docker/gitlab/postgresql","mount_point":"/var/lib/postgresql","type":"rw"}]}}, runner=
{
"data" : {},
"httpd_restart" : false,
"success" : true
}
[Line 259] Exec WebAPI: api=SYNO.Docker.Container, version=1, method=create, param={"is_run_instantly":false,"profile":{"cmd":"/bin/sleep infinity","cpu_priority":0,"enable_publish_all_ports":false,"env_variables":[{"key":"GITLAB_HOST","value":"[REMOVED]"},{"key":"GITLAB_PORT","value":"30000"},{"key":"GITLAB_SSH_PORT","value":"30001"},{"key":"GITLAB_EMAIL","value":"[REMOVED]"},{"key":"DB_ADAPTER","value":"postgresql"},{"key":"DB_HOST","value":"db"},{"key":"DB_PORT","value":"5432"},{"key":"DB_NAME","value":"gitlab"},{"key":"DB_USER","value":"gitlab_user"},{"key":"DB_PASS","value":"[REMOVED]"},{"key":"GITLAB_SECRETS_OTP_KEY_BASE","value":"[REMOVED]+TNF9mZevLgcG9UN"},{"key":"GITLAB_SECRETS_DB_KEY_BASE","value":"[REMOVED]"},{"key":"GITLAB_SECRETS_SECRET_KEY_BASE","value":"[REMOVED]"},{"key":"SMTP_ENABLED","value":"true"},{"key":"SMTP_DOMAIN","value":"[REMOVED]"},{"key":"SMTP_HOST","value":"[REMOVED]"},{"key":"SMTP_PORT","value":"587"},{"key":"SMTP_USER","value":"[REMOVED]"},{"key":"SMTP_PASS","value":"[REMOVED]"},{"key":"SMTP_OPENSSL_VERIFY_MODE","value":"peer"},{"key":"UNICORN_TIMEOUT","value":"180"}],"image":"sameersbn/gitlab:11.5.1","is_package":false,"links":[{"alias":"redisio","link_container":"synology_gitlab_redis"},{"alias":"db","link_container":"synology_gitlab_postgresql"}],"memory_limit":0,"name":"synology_gitlab","port_bindings":[{"container_port":22,"host_port":"30001","type":"tcp"},{"container_port":80,"host_port":"30000","type":"tcp"}],"privileged":false,"shortcut":{"enable_shortcut":false,"enable_status_page":false,"enable_web_page":false,"web_page_url":""},"volume_bindings":[{"host_volume_file":"/docker/gitlab/gitlab","mount_point":"/home/git/data","type":"rw"}]}}, runner=
{
"data" : {},
"httpd_restart" : false,
"success" : true
}
Error response from daemon: Bind mount failed: '/volume1/docker/gitlab/gitlab' does not exists
Error response from daemon: Bind mount failed: '/volume1/docker/gitlab/gitlab' does not exists
[Line 237] Not a json value: synology_gitlab
I added this folder manually, next one: :)
[Line 259] Exec WebAPI: api=SYNO.Docker.Container, version=1, method=start, param={"name":"synology_gitlab"}, runner=
{
"error" : {
"code" : 1004,
"errors" : {
"errors" : "{\"message\":\"Bind mount failed: '/volume1/docker/gitlab/postgresql' does not exists\"}"
}
},
"httpd_restart" : false,
"success" : false
}
No you do not followed the migration instructions.
You try to migrate from 11.5.0-0102 to 11.5.1-0053 ... Migration Says: "Migration only works within a version. restoring a backup from version 11.5.0 to 11.5.1 or from 11.5.1 to 11.5.0 will NOT work"
You have not moved the original Folders. Migration Says: "# 3. move old gitlab data out of the way."
With this careless attitude you will ruin you repo, i promise. As i wrote before
Then your package should work again. From there you should be able to update to synology_gitlab_jboxberger 11.5.1-0102 and migrate to synology_gitlab 11.5.1-0053 or to Gitea.
Sorry I was not carless with the updates, but careless with copy-pasting the correct version-numbers. I started with synology-gitlab-jboxberger-aio-11.5.0-0102.spk, which worked fine. Then I updated to synology-gitlab-jboxberger-aio-11.5.1-0102.spk, which also seemed to work fine. I could login, see the version number in the administration field, so it seemed okay to me. Weird was, that there was first an error-message in the backend of the Synology-package manager, but after some waiting everything worked fine. I expected some questions about the configuration, but they didn't appear this second time. But because it worked in the end, it didn't stop me there.
Then I followed the migration steps to move from synology-gitlab-jboxberger-aio-11.5.1-0102.spk to synology-gitlab-stock-aio-11.5.1-0053.spk. I followed all the steps in the migration-tutorial, and I finished all the steps (but kept the backups separatly).
GitLab was running stable in docker, but I couldn't reach it, neither from outside or from inside via curl, . My guess was, that the configuration was not properly copied. I had to make some manual changes some time ago: https://github.com/jboxberger/synology-gitlab-jboxberger/issues/3#issuecomment-395595962
The actual config in /var/packages/Docker-GitLab/etc/config looked like this:
HTTP_PORT="30000"
SSH_PORT="30001"
OTP_SALT="[REMOVED]"
DB_SALT="[REMOVED]"
SECRETS_SALT="[REMOVED]"
HOSTNAME="[REMOVED]"
ADMIN_EMAIL="[REMOVED]"
SMTP_ENABLE="true"
SMTP_ADDR="[REMOVED]"
SMTP_PORT="[REMOVED]"
SMTP_USER="[REMOVED]"
SMTP_PASS="[REMOVED]"
SMTP_VERIFY="true"
SHARE="gitlab"
VERSION="0053"
So my guess was; I had to add this lines manually again, so I could connect to Gitlab again:
GITLAB_PORT="443"
GITLAB_HTTPS="true"
I stopped the container in package manager, changed the config file, started again. Now I am waiting. :)
And it worked. I had to change it manually in the Synology-docker-options and I had to switch the nginx-proxy in Synology from https to http. Now I will try to update to the newest version.
And updated to the newest version. Usually there where some questions after uploading the package in package manager. Now there is just a error message. When I click it away, the update is still running and working. So at least my basic problem is solved. Thank you very much for your help and this package!
After trying to update gitlab a while ago, now I am not able to start anything again. First of all: I don't know the last version of GitLab, which was successfully running on my Synology. I only found this file /volume1/docker/gitlab/tmp/VERSION saying 11.5.0, but I don't trust this file to much, maybe this was installed, when I tried to update, but it never run?
When I try to reinstall with different version, I often get error messages about binding errors, like this:
The existing folders are:
I would be happy to get some help getting this package running again (so I can switch to gitea). :)