Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Docker instructions to remove and clean up Gems on openc3-cmd-tlm-api image #1908

Closed
NuclearFizzler opened this issue Feb 21, 2025 · 3 comments
Assignees
Labels
maintenance Dependencies or other issues not bugs or features

Comments

@NuclearFizzler
Copy link
Contributor

I'm building a COSMOS gem via openc3.sh cli rake build VERSION=(number), and I've been getting the following warning. The gem still builds fine, that's why this is a question and not a bug report. I decided to track down the source of the issue.

WARN: Unresolved or ambiguous specs during Gem::Specification.reset:
      stringio (>= 0)
      Available/installed versions of this gem:
      - 3.1.2
      - 3.0.4
WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>'

From some digging, stringio 3.1.2 is coming from the Gemfile.lock inside the image, while I suspect 3.0.4 is coming from installing RubyGems 3.3.14 based on the release dates of both versions (May and December 2022). I know that migrations are in progress; however, why is RubyGems 3.3.14 required?

Additionally, it seems that the instructions to remove grpc and google-protobuf did not run successfully. I opened a terminal on the latest version of cmd-tlm-api and found the following:

Image

Running the uninstall command with the --debug flag revealed issues with the flags set in gemrc.

Image

I'm not sure what the overall impact of these issues are. I'd like to hear your feedback on these issues, given that you have more experience working on COSMOS.

@NuclearFizzler NuclearFizzler changed the title Failed Docker instructions to remove and clean up Gems on openc3-base image Failed Docker instructions to remove and clean up Gems on openc3-cmd-tlm-api image Feb 21, 2025
@NuclearFizzler
Copy link
Contributor Author

I did some more testing with the docker images; cleaning up the gem options cleared some of the exceptions, but the uninstall commands still seem to have no effect. The gem still appears in gem list afterward.

@jmthomas
Copy link
Member

The grpc stuff is a little weird because we need to install with the --platform ruby flag and then uninstall the --platform aarch64-linux flag. I think you're on to something with the .gemrc stuff though. I'm doing some local testing and will let you know.

@jmthomas jmthomas self-assigned this Feb 21, 2025
@jmthomas jmthomas added the maintenance Dependencies or other issues not bugs or features label Feb 21, 2025
@jmthomas
Copy link
Member

jmthomas commented Feb 21, 2025

Thanks @NuclearFizzler! I'd love for you to reach out to us (https://www.openc3.com/contact) and let us know what you're using COSMOS for!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Dependencies or other issues not bugs or features
Projects
None yet
Development

No branches or pull requests

2 participants