Closed kmgraves closed 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>'
create' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/models/plugin_model.rb:159:in
parse_loop' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/config/config_parser.rb:207:in
install_phase2' /cosmos/bin/cosmos:263:in
<main>'
To debug this issue so far I have tried to rebuild the Docker container and reupload a previously working plugin
cosmos-control.bat stop
cosmos-control.bat build
cosmos-control.bat dev
Upload old plugin
Crash reoccurs
Is there a step I am missing to have a clean build?
cosmos-control.bat stop cosmos-control.bat cleanup
That will delete all data (including logs), and you will have a clean slate
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.gemStderr: 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:in
block in install_phase2' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/config/config_parser.rb:207:inparse_loop' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/config/config_parser.rb:207:in
parse_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4/lib/cosmos/models/plugin_model.rb:153:ininstall_phase2' /cosmos/bin/cosmos:263:in
load_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
cosmos-control.bat stop
cosmos-control.bat build
cosmos-control.bat dev
Upload old plugin
Crash reoccurs
Is there a step I am missing to have a clean build?