Skip to content

Ignoring xx-yy because its extensions are not built. Try: gem pristine xx --version yy #45

@KonoMaxi

Description

@KonoMaxi

I keep getting this message with my pipeline initiated deployments.

I tracked the issue down to the way the compiled extensions are stored.
I rebuilt the current master image for 2.6.2 locally and tested the behaviour of bundle --path 'vendor/bundle' for your image (appsvc/ruby:2.6.2_20200101.1) against mine (moxxxy/appsvc-ruby:2.6.2)

Please note the different folder-structure in vendor/bundle/ruby/2.6.0/extensions/x86_64-linux
My image (and my Azure build-pipelines) put the extensions into a 2.6.0 folder, while your image puts them into 2.6.0-static folder.

The rather inconvenient result of this minimal difference is a recompilation of the native extensions for all gems. This literally takes forever, exceeding the 230 second Cold-Start timeout and letting my apps crash.

Currently I can only run my apps in an "Azure Web App for Containers" environment, but if you could attend to this issue I can go back to using your provided ruby-appsvc images.

Also here's a screenshot from my appsvc test-environment showing both folders.
The timestamp 23:55 is the time my CI built the extensions.
00:01 the next day is the app service's startup.sh rebuilding those extensions
Screenshot 2021-03-22 at 11 56 54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions