Skip to content

Litemetrics not starting - uninitialized constant Litesupport::Mutex (NameError) #129

Closed
@vanhecke

Description

@vanhecke

Liteboard or Rails (with metrics enabled) errors out immediately.
I'm using Litestack from master branch.

GIT
  remote: https://github.com/oldmoe/litestack.git
  revision: 83a1dc5f788bee673a696ca2d6df551a84799bb4
  branch: master
  specs:
    litestack (0.4.4)
      erubi (~> 1)
      oj (~> 3)
      rack (~> 3)
      rackup (~> 2)
      sqlite3 (>= 1.6.0, < 2.0.0)
      tilt (~> 2)
RUBY 3.3.5
RAILS 7.2.1
❯ bundle exec liteboard --database db/development/metrics.sqlite3 --env development
bundler: failed to load command: liteboard (/Users/joris/.gem/ruby/3.3.5/bin/liteboard)
/Users/joris/.gem/ruby/3.3.5/bundler/gems/litestack-83a1dc5f788b/lib/litestack/litemetric.rb:162:in `setup': uninitialized constant Litesupport::Mutex (NameError)

    @mutex = Litesupport::Mutex.new
                        ^^^^^^^
        from /Users/joris/.gem/ruby/3.3.5/bundler/gems/litestack-83a1dc5f788b/lib/litestack/liteconnection.rb:54:in `init'
        from /Users/joris/.gem/ruby/3.3.5/bundler/gems/litestack-83a1dc5f788b/lib/litestack/litemetric.rb:44:in `initialize'
        from /Users/joris/.rubies/ruby-3.3.5/lib/ruby/3.3.0/singleton.rb:124:in `new'
        from /Users/joris/.rubies/ruby-3.3.5/lib/ruby/3.3.0/singleton.rb:124:in `block in instance'
        from /Users/joris/.rubies/ruby-3.3.5/lib/ruby/3.3.0/singleton.rb:124:in `synchronize'
        from /Users/joris/.rubies/ruby-3.3.5/lib/ruby/3.3.0/singleton.rb:124:in `instance'
        from /Users/joris/.gem/ruby/3.3.5/bundler/gems/litestack-83a1dc5f788b/bin/liteboard:78:in `<top (required)>'
        from /Users/joris/.gem/ruby/3.3.5/bin/liteboard:25:in `load'
        from /Users/joris/.gem/ruby/3.3.5/bin/liteboard:25:in `<top (required)>'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `load'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `kernel_load'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:23:in `run'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli.rb:455:in `exec'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli.rb:35:in `dispatch'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/cli.rb:29:in `start'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/exe/bundle:28:in `block in <top (required)>'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
        from /Users/joris/.gem/ruby/3.3.5/gems/bundler-2.5.18/exe/bundle:20:in `<top (required)>'
        from /Users/joris/.gem/ruby/3.3.5/bin/bundle:25:in `load'
        from /Users/joris/.gem/ruby/3.3.5/bin/bundle:25:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions