Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #12439 (new)

Opened 10 years ago

Last modified 8 years ago

Bug: RepositoryInfo broken?

Reported by: jamoore Owned by:
Priority: major Milestone: Unscheduled
Component: API Version: 5.0.2
Keywords: n.a. Cc: java@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.


From: https://www.openmicroscopy.org/qa2/qa/feedback/9391/

2014-07-01 12:40:32,414 INFO  [        ome.services.util.ServiceHandler] (erver-1131)  Meth:    interface ome.api.IRepositoryInfo.getFreeSpaceInKilobytes
2014-07-01 12:40:32,414 INFO  [        ome.services.util.ServiceHandler] (erver-1131)  Args:    ()
2014-07-01 12:40:32,425 INFO  [         ome.security.basic.EventHandler] (erver-1131)  Auth:    user=52,group=53,event=4297259(User),sess=6216171c-ce19-4dd8-a016-154754543819
2014-07-01 12:40:32,451 ERROR [            ome.logic.RepositoryInfoImpl] (erver-1131) Error retrieving usage in KB.
java.lang.RuntimeException: Command line returned OS error code '1' for command [df, -k, /OMERO/]
        at ome.tools.FileSystem.free(FileSystem.java:91) ~[server.jar:na]
        at ome.logic.RepositoryInfoImpl.getFreeSpaceInKilobytes(RepositoryInfoImpl.java:161) ~[server.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_60]

IRepositoryInfo may either be completely broken or only on some platforms. If it's not fixable, it may should be removed in 5.1

Change History (4)

comment:1 Changed 9 years ago by jamoore

  • Milestone changed from 5.1.0 to 5.1.1

comment:2 Changed 9 years ago by jamoore

  • Milestone changed from 5.1.1 to 5.x

this is likely waiting for a Java bump, no?

comment:3 Changed 9 years ago by mtbcarroll

Java 7 gives us java.nio.file.FileStore.getUsableSpace() but even in Java 6 we could probably use java.io.File.getUsableSpace().

comment:4 Changed 8 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.62977 sec.)

We're Hiring!