BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

Plugin upload crashes, Runtime error target already exists #1712

Closed kmgraves closed 2 years ago

kmgraves commented 2 years ago

I am working off of the 5.0.4 release

After deleting a plugin mid upload, I am now unable to load older version of the plugin which were functional. ` Stdout: Loading new plugin: cosmos-{target-name}-1.7.18.20220622204834.gem

Stderr: Error installing plugin: DEFAULT: cosmos-{target-name}-1.7.18.20220622204834.gem: RuntimeError : DEFAULT__cosmos_targets:{Target_Name} already exists at create

Parsed output in /tmp/cosmos/tmp/tmp/d20220623-78-vz9m6v/gem/plugin.txt /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/models/model.rb:139:in create' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/models/plugin_model.rb:159:inblock in install_phase2' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/config/config_parser.rb:207:in parse_loop' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/config/config_parser.rb:207:inparse_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/models/plugin_model.rb:153:in install_phase2' /cosmos/bin/cosmos:263:inload_plugin' /cosmos/bin/cosmos:309:in <main>'

To debug this issue so far I have tried to rebuild the Docker container and reupload a previously working plugin

  1. cosmos-control.bat stop

  2. cosmos-control.bat build

  3. cosmos-control.bat dev

  4. Upload old plugin

  5. Crash reoccurs

Is there a step I am missing to have a clean build?

ghost commented 2 years ago

cosmos-control.bat stop cosmos-control.bat cleanup

That will delete all data (including logs), and you will have a clean slate