Hello!I'm working on an upgrade path from 20.1 through 20.4 and a db migration up to 22.2. A long path and a lot of complicated things changing. The issues started with 20.4 and after a couple of hours of work I decided to go for broke and push through to 22.2. It worked but didn't improve anything.I feel like something relatively simple is going on but I am missing something and not finding it.I'm getting an error on service start "ConnectionManager:117 - The file config\db.properties specified by `go.db.config` does not exist." The file db.properties does exist in the config folder but I'm unable to see what the path is that its looking for prior to config. My installation folder after the two upgrade stages is still "C:\Program Files (x86)\Go Server" and I don't know if that means something is looking in the wrong place or not. I expected 22.2 to migrate it to "C:\Program Files\Go Server" from reading the documentation.
I also have an issue with LDAP successfully authenticating and logging a success but always sending me back to login. I have removed authentication temporarily to let me work on troubleshooting but still haven't found a solution.
The LDAP log shows:
2022-10-27 00:22:57,095 INFO [Thread-79] LdapPlugin:72 - Loading plugin null version 2.2.1-168
2022-10-27 00:22:57,231 ERROR [Thread-79] LdapPlugin:127 - Error while executing request go.plugin-settings.get-configuration
com.thoughtworks.go.plugin.api.exceptions.UnhandledRequestTypeException: This is an invalid request type :go.plugin-settings.get-configurationFollowed by 2022-10-27 00:23:38,205 INFO [qtp1522792394-33] LdapPlugin:72 - [Authenticate] User `<deleted>` successfully authenticated using auth_config: Domain-LDAPI'm sort of wondering if something doesn't know where everything is at and is trying to load from incorrect locations but this is the test run for an upgrade on several systems that I can't do a clean wipe/restart on.
--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/i3cY4DEA7Dw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH_41SFPdJ_Lnn_bJqv%2B%3DUNpGOf0DrXg9NnPQnMsWfah0A%40mail.gmail.com.
Hello,
Is there a way to increase logging or anything to provide more detail?
You can access: http://your-gocd-server:8153/go/api/support (basically /go/api/support) to get more information about paths + much more. Search for: “loc.config.dir”.
You can increase the logging levels (see docs) but it can quickly get overwhelming. I’d suggest that the current level of logs should be enough.
I agree with Chad. I haven’t ever seen config/db.properties not working.
Cheers,
Aravind
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAHmR7StQUXKMQyGavKbm8krwob98VFOx711X0T9zmWxZw9h1wg%40mail.gmail.com.
What I had done was go to 20.4, then upgrade the DB as a preparation step for continuing to 22.2. I have this time rolled back to 20.1, confirmed it was active and then went directly to 20.5. As expected, the DB was not compatible so I again installed and configured PostgreSQL per docs and upgraded the database from H2->PostgreSQL.
I did run into the issue again with the git url being rejected so I’ve done the same fix there but I’m hoping that hasn’t been removed as an allowed feature since we do too many large repo pulls across multiple machines to do over the internet every time.
I’m at 20.5 now and back to roughly the same place. LDAP is blowing up with the messages after which authentication is successful but doesn’t redirect into the dashboard.:
I went through the previous process of removing the security section from the cruise config and adding the authorization provider back in as LDAP without checking the box for strict access. It redirects back to login and the loop restarts.
I’m still not getting anything that I can see logged into the database, for example running a backup doesn’t add a record to the serverbackups table in the database.
Is there any chance there is a required intermediate step of upgrading to 20.3 or something before going higher?
I can also try doing an H2 upgrade instead of going to PostgreSQL but that won’t solve the DB issue, that would just be getting a DB working at all.
I'm happy to send my support page (sanitized) if that helps.
Thanks!
From: go...@googlegroups.com <go...@googlegroups.com> On Behalf Of Chad Wilson
Sent: Thursday, October 27, 2022 3:20 AM
To: go...@googlegroups.com
Subject: Re: [go-cd] Issues with GoCD db.properties file and LDAP after upgrade to 20.4.
Sorry, one major thing to clarify - when you say 20.4 did you actually mean 20.5? The db migration and OSS support for postgres via config/db.properties is only in 20.5 so if you were getting errors on startup on 20.4, that would be unrelated to any database change.
.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH_ynJ5fVL_w6%2BD9UVvV2n8aefpMdzcq%3DiTk19D0_zAMFQ%40mail.gmail.com.
Hello,
We alias them as a cname since our servernames are pretty complex so perhaps the issue is that its not properly authenticating/redirecting because it needs to have alternate site name bindings entered somewhere?
Hmm, I wonder if the site URL and secure site URL are set wrong, and the cookies are being set on the wrong domain? Worth checking.
https://docs.gocd.org/current/installation/configuring_server_details.html#configure-site-urls
Cheers,
Aravind
That did help. It appears that starting in version 20.2 having those fields blank doesn’t allow it as *, it allows only localhost and %servername%. I added the cname url andthat seems to have worked. I think that is a solution honestly. I would have liked to be able to allow multiple custom names so I can have a friendly direct-to-server as well as a reverse proxy but once in production its unlikely that the direct name will be needed without also having retrieved the server name as well to use for the url.
I appreciate the help on this! I think we can call this one solved and I’ll start a DB specific thread if my DB migration still has issues. I think I’ve done enough source crawling and reading documentation to be much better off in that area and worst case I’ll just H2>H2 to make it easier. 😊
Thanks to all involved for the help on solving this!
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/03f901d8ee0a%24bb01a340%243104e9c0%24%40gmail.com.