postal icon indicating copy to clipboard operation
postal copied to clipboard

cannot load such file -- /opt/postal/app/lib/postal/version

Open dani opened this issue 9 months ago • 3 comments

Describe the bug

When trying to run postal update (or postal version), it fails with this error

postal@a2e543e648e0:~/app$ postal version
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- /opt/postal/app/lib/postal/version (LoadError)
	from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from script/version.rb:4:in `<main>'
postal@a2e543e648e0:~/app$ 

This is reproducible on the official Docker image, as well as in my custom, alpine based image.

To Reproduce

  1. Run the docker image with eg docker run --rm -it ghcr.io/postalserver/postal:3.3.3 postal version
  2. See the error

Expected behaviour

Command should not fail (obviously :-) )

Environment details

  • Docker 26.1.1
  • Official Docker image
  • 3.3.3

dani avatar May 03 '24 10:05 dani

The issue started with 3.3.2. It's working in 3.3.1

dani avatar May 03 '24 10:05 dani

Can confirm the same issue on running postal version.

<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in require': cannot load such file -- /opt/postal/app/lib/postal/version (LoadError) from internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb:37:in require' from script/version.rb:4:in

'`

bonest avatar May 05 '24 14:05 bonest

Yes same issue

ugurtam avatar May 10 '24 00:05 ugurtam

same issue here on 3.3.3

root@mx01:/opt/postal/config$ postal version
Creating postal_runner_run ... done
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- /opt/postal/app/lib/postal/version (LoadError)
        from <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from script/version.rb:4:in `<main>'
ERROR: 1

Reftek85 avatar May 24 '24 16:05 Reftek85

This is fixed in 3.3.4.

adamcooke avatar Jun 20 '24 14:06 adamcooke