Repository loaded, but package manager is empty
This problem has cost me days, maybe weeks at this point as the only way I know to fix it is to disconnect the repository, deleting local content, and pull down the code again. It is a large code-base, and takes hours.
I am running RTC 4.03 on a CentOS VM, but the problem is the same on Windows or other VM's. Initially the workspace is fine, but if I lose network connectivity and restart RTC (often necessary to restart my VM after network connectivity is lost) package manager will be empty even though the repository is loaded.
I have tried all available loading options, to no avail.
Accepted answer
You did not say that whether you could see the project in the Project Explorer or Navigator view when this happened. Can you please confirm? Have you checked the .metadata/.log file for errors? Also, when the problem occurs, if you start with a new workspace and import the project from the old workspace, does it work? It will save you lots of network traffic and time, but you may need to manually copy the ".jazz5" folder over so that RTC recognizes that it's under source control.
Comments
Nathan Power
Oct 29 '14, 5:56 p.m.Many thanks for your suggestion, this worked. As I was importing the projects, I noticed that eclipse seemed to find multiple projects of the same name. Perhaps I corrupted things locally by deleting source code folders and not the jazz metadata before pulling the code down. I am starting again with a clean folder, and in future I will use your suggested method as a workaround.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 30 '14, 3:54 a.m.Nathan, I am puzzled. I have never seen such a phenomenon so far. Even if I shutdown my computer or switch between workspaces, as soon as I connect to the repository again, the loaded content is recognized immediately. The load option should not matter really either. I am wondering what the root cause could be.
Which client?
If you talk about the package manager, do you mean the Eclipse package view?
The Eclipse package view as well as the navigator should always see the code that is in the local Eclipse workspace, regardless if it is under SCM or not. If that vanishes, there is something wrong with base Eclipse.
Nathan Power
Oct 30 '14, 4:45 a.m.Apologies, I mean the Eclipse Package Explorer, which is the view that I generally use, but the projects are also missing from Project Explorer and Navigator views when this happens. It seems unlikely that base Eclipse is to blame though, as I have had the problem on numerous installations now, using both Eclipse with the Jazz plugin, and RTC client, on different environments, both Linux and Windows.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 30 '14, 5:14 a.m.Nathan, I use RTC since 2008, Eclipse since 2001 and I have never, ever, ever seen anything like that. Not one instance over the years.
Even if you are not connected to the Jazz SCM, the local data loaded into the workspace should be visual in the views.
I have seen issues if using different Eclipse/RTC versions on the same workspace. But that were errors that occurred opening the workspace and had different symptoms.
There is no difference in handling shared projects different from not shared projects. So from my point of view this is quite mysterious and I would suggest to contact support to try to isolate the root cause.
Nathan Power
Oct 30 '14, 5:58 a.m.Yes, that is pretty much the reaction I get from my colleagues, they have never seen it. I have been using RTC 4.03 and have also tried Eclipse 4.2.2.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 30 '14, 6:52 a.m.Some more thoughts on this. If you load and see the projects in the navigator, they should not disappear ever, If they do, the error log should show something like an error (e.g. projects with the same project name - which should not be possible as the load should prevent this or you load over the existing one).
What you could do wrong while loading.
Nathan Power
Oct 30 '14, 5:18 p.m.More fun tonight. Left RTC open when moving from office to home. Connected to VPN when I got home, but needed to restart my VM as it loses network connectivity when it moves between networks like this. Shut down RTC, restartd VM, opened RTC navigator, package explorer etc all empty, and repository connections gone. Not disconnected, gone.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 30 '14, 7:53 p.m.Get in contact with support. Make sure only one Eclipse instance uses a folder as workspace.