Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Internal error / illegal instruction bug after update to 12.2.1

Internal error / illegal instruction bug after update to 12.2.1

Added by Thomas Entner over 2 years ago

Hi,

after updating to 12.2.1 (from some 11.x version) I get internal errors when I e.g. want to add a note to a task.

With "sudo openproject logs --tail" I see following error (see [BUG] in 3rd line):

Aug 19 11:25:16 openproject openproject-web-1.service[11853]: I, [2022-08-19T11:25:16.325057 #11853]  INFO -- : Started POST "/api/v3/work_packages/1739/activities" for 85.127.70.217 at 2022-08-19 11:25:16 +0200
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: /opt/openproject/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapters/oj.rb:34: [BUG] Illegal instruction at 0x00007fcd5296bf29
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: -- Control frame information -----------------------------------------------
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0113 p:---- s:0787 e:000786 CFUNC  :load
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0112 p:0035 s:0781 e:000780 METHOD /opt/openproject/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapters/oj.rb:34
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0111 p:0046 s:0775 e:000774 METHOD /opt/openproject/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/adapter.rb:21
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0110 p:0019 s:0769 e:000768 METHOD /opt/openproject/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json.rb:122
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0109 p:0013 s:0761 e:000760 METHOD /opt/openproject/lib/api/v3/parser.rb:32
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0108 p:0114 s:0752 e:000748 METHOD /opt/openproject/vendor/bundle/ruby/3.1.0/gems/grape-1.6.2/lib/grape/middleware/formatter.rb:104
Aug 19 11:25:16 openproject openproject-web-1.service[11853]: c:0107 p:0192 s:0741 e:000740 METHOD /opt/openproject/vendor/bundle/ruby/3.1.0/gems/grape-1.6.2/lib/grape/middleware/formatter.rb:90

Any ideas how I can fix this?

Regards,

Thomas


Replies (3)

RE: Internal error / illegal instruction bug after update to 12.2.1 - Added by Thomas Entner over 2 years ago

Could hot-fix it myself, maybe it helps someone else (or someone knows the root cause or a better fix):

It looks like the 3.1.0 version of oj.so is buggy. I could fix it by replacing it with the 3.0.0 version which I had also on my system. I found 3 occureces of oj.so. What I exactly did is this:

cd /opt/openproject/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/oj-3.13.16/oj
sudo mv oj.so oj.so.bak
sudo cp /opt/openproject/vendor/bundle/ruby/3.0.0/extensions/x86_64-linux/3.0.0-static/oj-3.13.11/oj/oj.so .
sudo chown openproject:openproject oj.so
cd /opt/openproject/vendor/bundle/ruby/3.1.0/gems/oj-3.13.16/lib/oj
sudo mv oj.so oj.so.bak
sudo cp /opt/openproject/vendor/bundle/ruby/3.0.0/extensions/x86_64-linux/3.0.0-static/oj-3.13.11/oj/oj.so .
sudo chown openproject:openproject oj.so
cd /opt/openproject/vendor/bundle/ruby/3.1.0/gems/oj-3.13.16/ext/oj
sudo mv oj.so oj.so.bak
sudo cp /opt/openproject/vendor/bundle/ruby/3.0.0/extensions/x86_64-linux/3.0.0-static/oj-3.13.11/oj/oj.so .
sudo chown openproject:openproject oj.so

RE: RE: Internal error / illegal instruction bug after update to 12.2.1 - Added by Hans Erasmus over 2 years ago

THANK YOU! Your commands saved my behind this morning during an upgrade that failed. https://community.openproject.org/topics/15381

RE: Internal error / illegal instruction bug after update to 12.2.1 - Added by Jens Ulferts over 2 years ago

This should be fixed for good by OP 12.2.4.

  • (1 - 3/3)
Loading...