Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEVERE ShoalLogger msg: World Peer Group could not be instantiated #90

Open
glassfishrobot opened this issue Jul 20, 2009 · 8 comments
Open

Comments

@glassfishrobot
Copy link

A GMS client has a local cache stored in a directory called ".shoal".

If the file permissions of the directory or the content of the directory do not
allow themselves to be deleted (cleared) when the gms client starts up, one will
see the summary log message. Here are all the SEVERE messages one will see when
this occurs.

[#|2009-07-20T12:00:17.298-0400|SEVERE|Shoal|net.jxta.impl.cm.Cm|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=Cm;MethodName=;|Unable
to Initialize databases
SEVERE: Unable to Initialize databases
[#|2009-07-20T12:00:17.327-0400|SEVERE|Shoal|net.jxta.impl.peergroup.StdPeerGroup|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=StdPeerGroup;MethodName=initFirst;|Error
during creation of local store
SEVERE: Error during creation of local store
[#|2009-07-20T12:00:17.328-0400|SEVERE|Shoal|net.jxta.peergroup.WorldPeerGroupFactory|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=WorldPeerGroupFactory;MethodName=newWorldPeerGroup;|World
Peer Group could not be instantiated.
SEVERE: World Peer Group could not be instantiated.
[#|2009-07-20T12:00:17.329-0400|SEVERE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=;|World
Peer Group could not be instantiated.

These errors were generated with following file permissions for .shoal.
dhcp-ubur02-71-15:gms jf39279$ ls -lR .shoal
total 0
drwxr-xr-x 3 root admin 102 Jul 20 11:59 instance1

.shoal/instance1:
total 0
drwxr-xr-x 4 root admin 136 Jul 20 11:59 cm

.shoal/instance1/cm:
total 0
drwxr-xr-x 11 root admin 374 Jul 20 11:59 jxta-WorldGroup
drwxr-xr-x 9 root admin 306 Jul 20 11:59
uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302

.shoal/instance1/cm/jxta-WorldGroup:
total 3272
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-AdvMSID.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-GroupsDesc.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-GroupsGID.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-GroupsMSID.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-GroupsName.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-PeersName.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-PeersPID.idx
rw-rr- 1 root admin 792576 Jul 20 11:59 advertisements-offsets.tbl
rw-rr- 1 root admin 792576 Jul 20 11:59 advertisements.tbl

.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302:
total 3200
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-AdvDstPID.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-AdvMSID.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-PeersName.idx
rw-rr- 1 root admin 12288 Jul 20 11:59 advertisements-PeersPID.idx
rw-rr- 1 root admin 792576 Jul 20 11:59 advertisements-offsets.tbl
rw-rr- 1 root admin 793088 Jul 20 11:59 advertisements.tbl
drwxr-xr-x 7 root admin 238 Jul 20 11:59 srdi

.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi:
total 5208
rw-rr- 1 root admin 12288 Jul 20 11:59 pipeResolverSrdi-JxtaPropagateId.idx
rw-rr- 1 root admin 792576 Jul 20 11:59 pipeResolverSrdi-offsets.tbl
rw-rr- 1 root admin 792576 Jul 20 11:59 pipeResolverSrdi.tbl
rw-rr- 1 root admin 528896 Jul 20 11:59 routerSrdi-offsets.tbl
rw-rr- 1 root admin 528896 Jul 20 11:59 routerSrdi.tbl


Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by @jfialli

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@jfialli said:
This issue occurs when one runs a gmsclient as user1 in a directory and then
logs in as user2 in same directory and user2 does not have permission to delete
.shoal cache files created by user1 run of gmsclient.

WORKAROUND:
Remove .shoal files created by a user1 that does not provide permission to
delete files to a user2. (Easiest case to think of is "user1" is root and
"user2" is a non-privledged user in the system.)

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@jfialli said:
Following log shows that FINE level logging is noting that all attempts to
delete the .shoal cached file is failing. Better user feedback needs to be
provided that these deletes are failing and if not corrected by a system
administrator, the system will not be able to start properly. Startup should
end with a SEVERE error and an exception that results in gms client not
attempting to start up anymore until this file permission issue is resolved.

$ grep FINE instance1_secondtime.log | grep failed
[#|2009-07-20T12:00:17.031-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-AdvMSID.idx|#]
[#|2009-07-20T12:00:17.035-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-GroupsDesc.idx|#]
[#|2009-07-20T12:00:17.035-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-GroupsGID.idx|#]
[#|2009-07-20T12:00:17.035-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-GroupsMSID.idx|#]
[#|2009-07-20T12:00:17.035-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-GroupsName.idx|#]
[#|2009-07-20T12:00:17.035-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-offsets.tbl|#]
[#|2009-07-20T12:00:17.036-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-PeersName.idx|#]
[#|2009-07-20T12:00:17.036-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/jxta-WorldGroup/advertisements-PeersPID.idx|#]
[#|2009-07-20T12:00:17.037-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file .shoal/instance1/cm/jxta-WorldGroup/advertisements.tbl|#]
[#|2009-07-20T12:00:17.037-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements-AdvDstPID.idx|#]
[#|2009-07-20T12:00:17.037-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements-AdvMSID.idx|#]
[#|2009-07-20T12:00:17.037-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements-offsets.tbl|#]
[#|2009-07-20T12:00:17.038-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements-PeersName.idx|#]
[#|2009-07-20T12:00:17.038-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements-PeersPID.idx|#]
[#|2009-07-20T12:00:17.038-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/advertisements.tbl|#]
[#|2009-07-20T12:00:17.038-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi/pipeResolverSrdi-JxtaPropagateId.idx|#]
[#|2009-07-20T12:00:17.038-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi/pipeResolverSrdi-offsets.tbl|#]
[#|2009-07-20T12:00:17.039-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi/pipeResolverSrdi.tbl|#]
[#|2009-07-20T12:00:17.039-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi/routerSrdi-offsets.tbl|#]
[#|2009-07-20T12:00:17.039-0400|FINE|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=ApplicationServer;ClassName=NetworkManager;MethodName=clearCache;|failed
to deleted cache file
.shoal/instance1/cm/uuid-C773444DBF054B18A31A9546EA5BB81559616261646162614E5047205032503302/srdi/routerSrdi.tbl|#]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@jfialli said:
Created an attachment (id=19)
rungmsdemo.sh instance1 log file illustrating .shoal cache with file permissions not allowing cache to be deleted

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
File: instance1_secondtime.log
Attached By: @jfialli

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
@jfialli said:
Steps to recreate issue (forgot to add this in initial submission)

  • Log in as root.
  • run ./rungmsdemo.sh in shoal/gms.
  • log out as root
  • run ./rungmsdemo.sh in shoal/gms a second time.
    redirect output to a file. (should be similar to log file attached to this issue)

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA SHOAL-90

@glassfishrobot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant