Remote build fails when getting project name
Metadata
Current evaluation
Remote-build's project-name AttributeError was fixed by merged PR canonical/charmcraft#2681 in commit dea7d9a0.
Resolution: closed resolved
Reason: PR #2681 corrected project-name retrieval for remote builds and was merged as commit dea7d9a0, resolving the reported failure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Check existing issues
- [x] I've verified that this bug isn't described by any existing issues.
### Bug description
When trying to build my test charm remotely, I get the following error:
```
user@host:~/path/to/project$ charmcraft remote-build
remote-build is experimental and is subject to change. Use with caution.
All data sent to remote builders will be publicly available. Are you sure you want to continue? [y/N]: y
charmcraft internal error: AttributeError("'ProjectService' object has no attribute 'name'")
Full execution log: '/home/ecoldi/.local/state/charmcraft/log/charmcraft-20260317-135445.018479.log'
```
### Steps to reproduce
In any charm directory, run `charmcraft remote-build`.
### Environment
Running the Charmcraft snap from the `latest/stable` channel (version 4.0.1) on an Ubuntu 24.04 LTS machine.
### charmcraft.yaml
```yaml
N/A
```
### Log output
```shell
2026-03-17 13:54:48.667 charmcraft internal error: AttributeError("'ProjectService' object has no attribute 'name'")
2026-03-17 13:54:48.669 Traceback (most recent call last):
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/craft_application/application.py", line 663, in run
2026-03-17 13:54:48.669 return_code = self._run_inner()
2026-03-17 13:54:48.669 ^^^^^^^^^^^^^^^^^
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/charmcraft/application/main.py", line 143, in _run_inner
2026-03-17 13:54:48.669 return super()._run_inner()
2026-03-17 13:54:48.669 ^^^^^^^^^^^^^^^^^^^^
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/craft_application/application.py", line 640, in _run_inner
2026-03-17 13:54:48.669 return_code = dispatcher.run() or os.EX_OK
2026-03-17 13:54:48.669 ^^^^^^^^^^^^^^^^
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/craft_cli/dispatcher.py", line 564, in run
2026-03-17 13:54:48.669 return self._loaded_command.run(self._parsed_command_args)
2026-03-17 13:54:48.669 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/craft_application/commands/base.py", line 200, in run
2026-03-17 13:54:48.669 result = self._run(parsed_args, **kwargs) or result
2026-03-17 13:54:48.669 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-03-17 13:54:48.669 File "/snap/charmcraft/7517/lib/python3.12/site-packages/charmcraft/application/commands/remote.py", line 122, in _run
2026-03-17 13:54:48.669 build_id = get_build_id(self._app.name, project.name, project_dir)
2026-03-17 13:54:48.669 ^^^^^^^^^^^^
2026-03-17 13:54:48.669 AttributeError: 'ProjectService' object has no attribute 'name'
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Remote-build's project-name AttributeError was fixed by merged PR canonical/charmcraft#2681 in commit dea7d9a0. | |
| stealth/space-bunny-alpha | — | closed resolved | Remote-build's missing project-name lookup was fixed by merged PR #2681 (commit dea7d9a0), resolving the ProjectService.name AttributeError. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed the remote-build project-name AttributeError in merged PR canonical/charmcraft#2681 (commit dea7d9a0). | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The charmcraft remote-build AttributeError persisted in later versions, with multiple users reporting ongoing CI failures and no fix provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Multiple users confirmed the AttributeError persists in recent edge builds, blocking remote charm builds. No fix or merge was linked. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without explicit resolution details after persistent reports of ProjectService attribute errors during remote builds. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a fix. The bug caused charmcraft remote-build to fail with an AttributeError when accessing the project name, disrupting multiple users and CI pipelines. The issue remains unresolved. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#2681
(confidence 100%)
Merged fix titled "correctly get project name for remote builds" explicitly resolves #2598.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2681 fix: correctly get project name for remote builds | charmcraft | merged | Merged PR #2681 (commit dea7d9a0) fixed remote-build project-name lookup, resolving #2598. |