I’m unable to release my nextcloud charm due to missing resource.
Here is the repo: GitHub - nextcloud-charmers/operator-nextcloud: Nextcloud Juju operator
I can deploy and run it perfectly locally.
But, charmhub won’t let me release it.
charmcraft upload nextcloud_ubuntu@22.04-amd64.charm
Revision 37 of 'nextcloud' created
charmcraft upload nextcloud_ubuntu@24.04-amd64.charm
Revision 38 of 'nextcloud' created
Upload works
Relase doesnt.
charmcraft release nextcloud -r 37 -c edge
Store operation failed:
- api-error: Resource 'nextcloud-tarfile' missing from this 'nextcloud' release or any previously released revisions on channel: edge
Full execution log: '/home/erik/.local/state/charmcraft/log/charmcraft-20250212-023632.702970.log'
erik@frozen:~/operator-nextcloud$ cat /home/erik/.local/state/charmcraft/log/charmcraft-20250212-023632.702970.log'
> ^C
erik@frozen:~/operator-nextcloud$ cat /home/erik/.local/state/charmcraft/log/charmcraft-20250212-023632.702970.log
2025-02-12 02:36:32.703 Starting charmcraft, version 3.4.2
2025-02-12 02:36:32.703 Log verbosity level set to BRIEF
2025-02-12 02:36:32.703 Preparing application...
2025-02-12 02:36:32.703 Configuring application...
2025-02-12 02:36:32.705 Setting up ConfigService
2025-02-12 02:36:32.716 Build plan: platform=None, build_for=None
2025-02-12 02:36:32.716 Running charmcraft release on host
2025-02-12 02:36:32.782 Retrieving credentials for 'charmcraft' on 'api.charmhub.io' from keyring 'SecretService Keyring'.
2025-02-12 02:36:32.805 HTTP 'POST' for 'https://api.charmhub.io/v1/charm/nextcloud/releases' with params None and headers {'Authorization': '<macaroon>', 'User-Agent': 'charmcraft/3.4.2 ubuntu/22.04 (x86_64) python/3.10.12'}
2025-02-12 02:36:33.257 Store operation failed:
2025-02-12 02:36:33.258 - api-error: Resource 'nextcloud-tarfile' missing from this 'nextcloud' release or any previously released revisions on channel: edge
2025-02-12 02:36:33.258 Traceback (most recent call last):
2025-02-12 02:36:33.258 File "/snap/charmcraft/5977/lib/python3.10/site-packages/charmcraft/store/store.py", line 141, in error_decorator
2025-02-12 02:36:33.259 return method(self, *args, **kwargs)
2025-02-12 02:36:33.259 File "/snap/charmcraft/5977/lib/python3.10/site-packages/charmcraft/store/store.py", line 387, in release
2025-02-12 02:36:33.259 return self._client.request_urlpath_json("POST", endpoint, json=items)
2025-02-12 02:36:33.259 File "/snap/charmcraft/5977/lib/python3.10/site-packages/charmcraft/store/client.py", line 197, in request_urlpath_json
2025-02-12 02:36:33.259 response = super().request(method, self.api_base_url + urlpath, *args, **kwargs)
2025-02-12 02:36:33.259 File "/snap/charmcraft/5977/lib/python3.10/site-packages/craft_store/base_client.py", line 189, in request
2025-02-12 02:36:33.259 return self.http_client.request(
2025-02-12 02:36:33.259 File "/snap/charmcraft/5977/lib/python3.10/site-packages/craft_store/http_client.py", line 165, in request
2025-02-12 02:36:33.259 raise errors.StoreServerError(response)
2025-02-12 02:36:33.259 craft_store.errors.StoreServerError: Store operation failed:
2025-02-12 02:36:33.259 - api-error: Resource 'nextcloud-tarfile' missing from this 'nextcloud' release or any previously released revisions on channel: edge
2025-02-12 02:36:33.259 Full execution log: '/home/erik/.local/state/charmcraft/log/charmcraft-20250212-023632.702970.log'
I have never needed to supply a resource before. It was some years ago I think it was needed to supply an “empty” resource. Is this back?
What should I do to get my nextcloud charm back on track?