Repository navigation
Closed
Labels
0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Description
Nixpkgs version
- Stable (26.05)
Describe the bug
Building the discourse service fails with:
discourse-assets> Bundler::GemRequireError: There was an error while trying to load the gem 'mini_racer'. (Bundler::GemRequireError)
discourse-assets> Gem Load Error is: /nix/store/3sv7vxglmc6zwg68ycl9xpny87mm6fp7-discourse-ruby-env-2026.1.4/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mini_racer-0.19.1/mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi
This was working with rev a037402, but is broken when using 95ca1e2. So there was a change in between that introduced the problem.
Building the discourse package itself goes fine (nix build nixpkgs#discourse).
Steps to reproduce
Set services.discourse.enable to true and build the system configuration using latest NixOS 26.05.
Expected behaviour
Build should succeed.
Screenshots
No response
Relevant log output
discourse-assets> Waiting for Redis and PostgreSQL to be ready..
discourse-assets> psql: error: connection to server on socket "/build/.s.PGSQL.5432" failed: No such file or directory
discourse-assets> Is the server running locally and accepting connections on that socket?
discourse-assets> 2026-07-03 14:04:12.270 UTC [5488] LOG: starting PostgreSQL 17.10 on x86_64-pc-linux-gnu, compiled by clang version 21.1.8, 64-bit
discourse-assets> 2026-07-03 14:04:12.271 UTC [5488] LOG: listening on IPv4 address "127.0.0.1", port 5432
discourse-assets> 2026-07-03 14:04:12.280 UTC [5488] LOG: listening on Unix socket "/build/.s.PGSQL.5432"
discourse-assets> 2026-07-03 14:04:12.292 UTC [5494] LOG: database system was shut down at 2026-07-03 14:04:11 UTC
discourse-assets> 2026-07-03 14:04:12.300 UTC [5488] LOG: database system is ready to accept connections
discourse-assets> CREATE ROLE
discourse-assets> CREATE DATABASE
discourse-assets> CREATE EXTENSION
discourse-assets> CREATE EXTENSION
discourse-assets> CREATE EXTENSION
discourse-assets> rake aborted!
discourse-assets> Bundler::GemRequireError: There was an error while trying to load the gem 'mini_racer'. (Bundler::GemRequireError)
discourse-assets> Gem Load Error is: /nix/store/3sv7vxglmc6zwg68ycl9xpny87mm6fp7-discourse-ruby-env-2026.1.4/lib/ruby/gems/3.3.0/extensions/x86_64-linux/3.3.0/mini_racer-0.19.1/mini_racer_extension.so: undefined symbol: _ZN6icu_788ByteSink15GetAppendBufferEiiPciPi
discourse-assets> Backtrace for gem load error is:
discourse-assets> /nix/store/ailrj32pgq5n5kbzvlzrya01b5cw7yjp-ruby3.3-mini_racer-0.19.1/lib/ruby/gems/3.3.0/gems/mini_racer-0.19.1/lib/mini_racer.rb:22:in `load'
discourse-assets> /nix/store/ailrj32pgq5n5kbzvlzrya01b5cw7yjp-ruby3.3-mini_racer-0.19.1/lib/ruby/gems/3.3.0/gems/mini_racer-0.19.1/lib/mini_racer.rb:22:in `<main>'
discourse-assets> <internal:/nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
discourse-assets> <internal:/nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:63:in `block (2 levels) in require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:58:in `each'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:58:in `block in require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:52:in `each'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler/runtime.rb:52:in `require'
discourse-assets> /nix/store/n6w25c8awxf9lcvx6x62g246z327qwiy-bundler-2.7.2/lib/ruby/gems/3.3.0/gems/bundler-2.7.2/lib/bundler.rb:214:in `require'
discourse-assets> /build/source/config/application.rb:55:in `<top (required)>'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `require'
discourse-assets> /nix/store/b15l29ml54whqs52xscv5yd4iiq25s0n-ruby-3.3.10/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'
discourse-assets> /build/source/Rakefile:7:in `<top (required)>'Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.6.69, NixOS, 26.05 (Yarara), 26.05.20260531.b51242d - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.7 - nixpkgs:
/nix/store/i936ws2xplkqgbzkxkacqqq2dpag3ndf-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Reacted by b10c and Lukas Werling
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Activity
0xB10C commentedon Jul 10, 2026
git bisect leads to 4b965d7 being the/a problematic commit
lluchs commentedon Jul 12, 2026
I opened a PR with a fix, please have a look.
You're probably building a version that doesn't include the commit mentioned above.
nix build github:nixos/nixpkgs/nixos-26.05#discourse.assetsdoes fail.discourse: Fix icu library mismatch in mini_racer
svniemeijer commentedon Jul 17, 2026
I was able to now build the component when using release-26.05, so I think this resolves the issue.
I assume that the next step is to bring this to the nixos-26.05 branch?
lluchs commentedon Jul 17, 2026
This will happen automatically, once Hydra has built everything. See https://nixpk.gs/pr-tracker.html?pr=541169