Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

Comments

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. 

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.

 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. 

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.

 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. 


It seems to be behaving this morning, hopefully I have have got lucky somehow when I deleted all the local metadata. If it happens again, I will get all the info I can from logs etc., and post here before calling support.

There is a similar issue documented here 

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.

  1. You load into a sandbox different from the Eclipse workspace. Then you should never see the projects, unless you import them into Eclipse (and potentially share them again)
  2. You load the component root folders and create Eclipse projects from them. In this case you should see these in the navigator, but because they contain the original Eclipse projects, you would not see packages in the package explorer. If you share the generated .project file, you would potentially get issues with loading the leaf projects later.

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. 


Error log has a couple of interesting entries, in particular:

Unable to load resource file <workspace_path>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

Deleting this file, and restarting (as suggested in some threads) has no effect.


Get in contact with support. Make sure only one Eclipse instance uses a folder as workspace.

showing 5 of 8 show 3 more comments

Accepted answer

Permanent link
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.
Ralph Schoon selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 28 '14, 7:52 p.m.

Question was seen: 2,591 times

Last updated: Oct 30 '14, 7:53 p.m.

Confirmation Cancel Confirm