Install Fails on Analyzer
So I installed Hub and migrated YouTrack to a zip installation and was able to get that to use Hub. Then I went to install Upsource and it got to the analyzer and failed. Looked in stderr and found the immensely useful message that the analyzer cannot return a non-zero value.
It's being installed on a machine with 16GBs of RAM, but in the typical insane VM irony, this machine now has all the other components chewing up RAM: youtrack, teamcity, hub. Plus we have a few other java instances.
It's super depressing that after 2 decades, installing a few new versions of a couple apps takes several days and involves myriad failures where it's not clear what went wrong.
Thanks for any help.
-----------
Went and tried it again. First I found that there is a log file specifically for the analyzer and it reports failing to be able to setup authorization through hub. Which makes no sense. The verification page asked for the url and verified it, then I got the popup authorizing full access. Furthermore, I migrated YouTrack a few hours ago.
Please sign in to leave a comment.
Hi Codeslubber,
Sorry for that inconvenience!
It's not clear what is going wrong, maybe lack of ram maybe something else.. Could you please post logs folder from Upsource home dir?
Thanks in advance.
Just reran it, seeing that I had 2.9GBs of RAM free before starting. Failed. Same 403 on the startup of the Analyzer. Wow, it's just so disappointing that this kind of code is what's out in the world. At least no one was killed in a car thanks to it. Instead I have just wasted days while the whole team sits around wondering why upgrading existing apps we have used for a long time and adding one more should take a week.
(The other reason for my exasperation about the state of this is even in YT where I had to reinstall the whole app and migrate it, Hub ended up making a disaster: visibility of projects are all screwed up, I have people coming to me whipped up about how everything is just a big wet mess now...)
This is the error I get:
[2015-10-08 14:27:02,138] ERROR APP-WRAPPER] Proxy 1 end.cli.UpsourceAnalyzerDaemon - Unable to start daemon
com.jetbrains.upsource.UpsourceException: Cannot run backend on outdated database
at com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.<init>(UpsourceApplicationEnvironment.java:125)
at com.jetbrains.upsource.backend.cli.UpsourceApplicationEnvironmentDaemonBase.startDaemon(UpsourceApplicationEnvironmentDaemonBase.java:13)
at com.jetbrains.upsource.backend.cli.UpsourceAnalyzerDaemon.startDaemon(UpsourceAnalyzerDaemon.java:46)
at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:144)
at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:234)
at com.jetbrains.upsource.backend.cli.UpsourceAnalyzerDaemon.start(UpsourceAnalyzerDaemon.java:34)
at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:83)
at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:81)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Never mind, just realised this isn't about an Upsource upgrade
Daniel,
Looks like you didn't follow backup/restore when upgrading major/minor version. Please refer to this article - http://upsource-support.jetbrains.com/hc/en-us/articles/205018542-How-to-upgrade-your-Upsource-installation-
Since you mention it, I did follow those instructions (I've done the upgrade a few times succesfully in the past). I figured this time it was because I was upgrading to an EAP.
I am having the same issue when upgrading from 2.0 to the 2.5 EAP release. I followed the upgrade steps to the letter so it seems like there is an upgrade issue. Is there any guidance on this?
Akmad,
Could you please attach Upsource logs folder?
Thanks in advance.
Atrem,
Sorry for the delay in getting you the logs, I had reverted to Upsource 2.0 and was waiting for a good time to take that offline to regenerate these logs. The log files are attached to this post. Please let me know if there is anything else I can get you and thanks for looking into this!
Attachment(s):
upsource-2.5-logs.tar.gz
Akmad,
Per the given logs I don't see that data from 2.0 was restored on 2.5. Could you please clarify in details how have you performed upgrade from 2.0m to 2.5?
Thanks in advance.
Artem,
Here are the steps I followed, starting from a working Upsource version 2.0.3682 instance running on Ubuntu 14.04.3:
Thanks again for your help with this!
Attachment(s):
upsource.zip
Akmad,
Thanks for the clarification, now it makes sense.
On the step 5 you need to copy data and conf folders from /opt/Upsource.old/backup/<date_of_backup> folder and paste it to Upsource folder.
Please let me know if it solves your issue.
Thanks in advance.
Artem,
The upgrade now works properly following your step. Please note that you may want to update the upgrade documentation (here) to reflect that the conf and data folders from the backup should be used.
Thanks!
Glad to hear that!
It's already there, section Major(minor) upgrade, step 6:
>>>>Copy data and conf folder from the Upsource.old/backup/<date_of_backup> directory to the new <upsource_home>.
Thank you.