3scale toolbox fails on container image

Solution Verified - Updated -

Issue

  • When I run 3scale toolbox container image, it fails with permission denied.

    $ podman run --rm -v ${ABSOLUTE_RESOURCE_PATH}:/tmp/toolbox:Z registry.redhat.io/3scale-amp2/toolbox-rhel7:3scale2.9 3scale import openapi -d https://${AUTH}@{3SCALE_ADMIN}-admin.{DOMAIN_NAME /tmp/toolbox/my-test-api.json
    /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `initialize': Permission denied @ rb_sysopen - crash.log (Errno::EACCES)
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `open'
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:39:in `print_unexpected_error'
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:25:in `handle_error'
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:13:in `rescue in error_watchdog'
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:9:in `error_watchdog'
        from /opt/toolbox/lib/3scale_toolbox/cli/error_handler.rb:5:in `error_watchdog'
        from /opt/toolbox/lib/3scale_toolbox/cli.rb:44:in `run'
        from /opt/toolbox/exe/3scale:15:in `<top (required)>'
        from /opt/toolbox/bin/3scale:29:in `load'
        from /opt/toolbox/bin/3scale:29:in `<main>'
    

Environment

  • Red Hat 3scale API Management 2.9.0
    • 3scale toolbox

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content