← Back to issue list

Remote build fails when getting project name

View original Github issue

Metadata

Project
charmcraft
Number
#2598
Type
issue
State
open
Author
jahn-junior
Labels
Status: Triaged Type: Bug
Created
2026-03-17 21:05:54+00:00
Updated
2026-05-01 20:39:15+00:00
Closed

Current evaluation

charmcraft remote-build crashes with an AttributeError when retrieving the project name, a triaged bug affecting multiple users that remains unassigned after 44 days of inactivity.

Suggested action: keep open

Reason: The issue is clearly labeled as triaged and a bug, with a precise traceback and reproduction steps. Multiple users have confirmed the impact, indicating it is a valid, reproducible defect that should remain open for developer investigation and resolution.

Staleness: 35 Complexity: 30 Confidence: 90 Support Request: 0

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
2026-06-15 12:11:48.917703+00:00 qwen3.6-35b-a3b-mtp-q6
Staleness: 35
Complexity: 30
Confidence: 90
Support Request: 0
keep open charmcraft remote-build crashes with an AttributeError when retrieving the project name, a triaged bug affecting multiple users that remains unassigned after 44 days of inactivity.
2026-06-15 12:08:53.967652+00:00 pending