Skip to content

POSIX: failing CLI commands #3095

Closed

Description

@v-scharf

related opencloud-eu/docs#1004 and #3087

  1. clean file versions:
    opencloud/bin/opencloud revisions purge -p /Users/v.scharf/.opencloud/storage/users

seems it works only for decomposedfs

{"level":"error","error":"unknown edition channel ''","time":"2026-07-08T16:04:55.479607+02:00","caller":"/Users/v.scharf/Work/opencloud/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/07/08 16:04:55 ERROR failed to set GOMEMLIMIT package=github.com/KimMachineGun/automemlimit/memlimit error="failed to set GOMEMLIMIT: cgroups is not supported on this system"
no nodes found. Double check storage path
❎ No revisions found. Storage provider is clean.

  1. shares cleanup:

opencloud/bin/opencloud shares cleanup --service-account-id='83aea7a0-f667-45c2-af88-255df7d9c1de' --service-account-secret='eHEnNDD.Jht=JqYSJZ'

service-account-id and service-account-secret I get from ~/.opencloud/config/opencloud.yaml-> sharing

{"level":"error","error":"unknown edition channel ''","time":"2026-07-08T16:25:39.385335+02:00","caller":"/Users/v.scharf/Work/opencloud/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/07/08 16:25:39 ERROR failed to set GOMEMLIMIT package=github.com/KimMachineGun/automemlimit/memlimit error="failed to set GOMEMLIMIT: cgroups is not supported on this system"
2026-07-08T16:25:39+02:00 INF share manager: metadata storage initialization failed, retrying error="error: not found: authsvc: error in Authenticate: error: not found: user not found userid " backoff=1000 line=/Users/v.scharf/Work/opencloud/opencloud/vendor/github.com/opencloud-eu/reva/v2/pkg/share/manager/jsoncs3/jsoncs3.go:252 service=migrate
unexpected status code while authenticating service user: CODE_INTERNAL
Error: unexpected status code while authenticating service user: CODE_INTERNAL
Usage:
  opencloud shares cleanup [flags]

Flags:
  -h, --help                            help for cleanup
      --service-account-id string       Name of the service account to use for the cleanup
      --service-account-secret string   Secret for the service account

unexpected status code while authenticating service user: CODE_INTERNALopencloud/bin/opencloud shares cleanup --service-account-id='83aea7a0-f667-45c2-af88-255df7d9c1de' --service-account-secret='eHEnNDD.Jht=JqYSJZ'
{"level":"error","error":"unknown edition channel ''","time":"2026-07-08T16:25:39.385335+02:00","caller":"/Users/v.scharf/Work/opencloud/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/07/08 16:25:39 ERROR failed to set GOMEMLIMIT package=github.com/KimMachineGun/automemlimit/memlimit error="failed to set GOMEMLIMIT: cgroups is not supported on this system"
2026-07-08T16:25:39+02:00 INF share manager: metadata storage initialization failed, retrying error="error: not found: authsvc: error in Authenticate: error: not found: user not found userid " backoff=1000 line=/Users/v.scharf/Work/opencloud/opencloud/vendor/github.com/opencloud-eu/reva/v2/pkg/share/manager/jsoncs3/jsoncs3.go:252 service=migrate
unexpected status code while authenticating service user: CODE_INTERNAL
Error: unexpected status code while authenticating service user: CODE_INTERNAL
Usage:
  opencloud shares cleanup [flags]

Flags:
  -h, --help                            help for cleanup
      --service-account-id string       Name of the service account to use for the cleanup
      --service-account-secret string   Secret for the service account

unexpected status code while authenticating service user: CODE_INTERNAL
  1. restore trashbin item ->restore all items of space works
opencloud/bin/opencloud storage-users trash-bin restore "0247a0b2-9b18-4945-8798-64a433d36a9b$77a4504e-dfdd-46de-9ae3-cec5af162b69!77a4504e-dfdd-46de-9ae3-cec5af162b69" "0247a0b2-9b18-4945-8798-64a433d36a9b$77a4504e-dfdd-46de-9ae3-cec5af162b69!6be1ea11-c423-458c-9f9c-9e458d43796b"
opencloud/bin/opencloud storage-users trash-bin restore "0247a0b2-9b18-4945-8798-64a433d36a9b$77a4504e-dfdd-46de-9ae3-cec5af162b69git pulla4504e-dfdd-46de-9ae3-cec5af162b69" "0247a0b2-9b18-4945-8798-64a433d36a9b$77a4504e-dfdd-46de-9ae3-cec5af162b69docker compose psbe1ea11-c423-458c-9f9c-9e458d43796b"
{"level":"error","error":"unknown edition channel ''","time":"2026-07-08T12:42:33.421338+02:00","caller":"/Users/v.scharf/Work/opencloud/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
2026/07/08 12:42:33 ERROR failed to set GOMEMLIMIT package=github.com/KimMachineGun/automemlimit/memlimit error="failed to set GOMEMLIMIT: cgroups is not supported on this system"
Error: could not get service user context unexpected status code while authenticating service user: CODE_INTERNAL
Usage:
  opencloud storage-users trash-bin restore [flags]

Flags:
  -h, --help            help for restore
  -o, --option string   The restore option defines the behavior for a file to be restored, where the file name already already exists in the target space. Supported values are: 'skip', 'replace' and 'keep-both'. The default value is 'skip' overwriting an existing file. (default "skip")
  -v, --verbose         Get more verbose output

could not get service user context unexpected status code while authenticating service user: CODE_INTERNAL
  1. opencloud/bin/opencloud trash purge-empty-dirs -> remove empty deleted folders, why? do we need it?

seems it works only for decomposedfs

When the administrator deletes the empty trashbin folders using the CLI                         # CliContext::theAdministratorDeletesEmptyTrashbinFoldersUsingTheCli()
    Then the command should be successful                                                           # CliContext::theCommandShouldBeSuccessful()
      {"level":"error","error":"unknown edition channel ''","time":"2026-07-07T20:47:23.332311972Z","caller":"/go/src/github.com/opencloud-eu/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
      no trash found. Double check storage path
      Error: no trash found. Double check storage path
      Usage:
        opencloud trash purge-empty-dirs [flags]
      
      Flags:
        -p, --basepath string   the basepath of the decomposedfs (e.g. /var/tmp/opencloud/storage/users)
            --dry-run           do not delete anything, just print what would be deleted (default true)
        -h, --help              help for purge-empty-dirs
      
      no trash found. Double check storage path
      
      Failed asserting that two strings are identical.
      --- Expected
      +++ Actual
      @@ @@
      -'OK'
      +'ERROR'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions