• @mkozono Could you please guide to resolve below error?

    irb(main):003:0> service = Geo::ChecksumRecalculationService.new(::Geo::PackageFileReplicator, seconda
    ry_geo_node: secondary_node)
    (irb):3:in `<main>': uninitialized constant Geo::ChecksumRecalculationService (NameError)
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/commands/console/console_command.rb:74:in `start'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/commands/console/console_command.rb:19:in `start'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/commands/console/console_command.rb:106:in `perform'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/command/base.rb:87:in `perform'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/command.rb:48:in `invoke'
            from /opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/railties-7.0.8.6/lib/rails/commands.rb:18:in `<top (required)>'
            from <internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
            from <internal:/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
            from bin/rails:4:in `<main>'
    Edited by SaravanakumarSakthivel
  • Could you please add the step to deploy the service? Where we should place recalculate_stale_checksums.rb?

  • Developer

    I realise what I had overlooked here - you can either paste the contents of recalculate_stale_checksums.rb before running the snippet code or even better, put it on disk, and call it with gitlab-rails runner. It will need to be readable by the git user, then:

    gitlab-rails c
    [...]
    load '/var/opt/gitlab/recalculate_stale_checksums.rb'
    Edited by Tony Marsh
  • Developer

    @mkozono we've been trying to get this snippet to work on an instance running 18.2.7, but for some reason the GraphQL query is always returning empty. If we manually execute the query using graphql-explorer directly on the Secondary site, it does return the expected results.

    On the Primary rails console though, we're getting:

    irb(main):005> secondary_node.name
    => "secondary_name"
    irb(main):006> service = Geo::ChecksumRecalculationService.new(::Geo::PackageFileReplicator, secondary_geo_node: secondary_node)
    =>
    #<Geo::ChecksumRecalculationService:0x00007f9ccf9f4750
    ...
    irb(main):007> service.validate_secondary_node
    Using secondary site: secondary_name
    => true
    irb(main):008> ids = service.get_file_ids_with_checksum_mismatch.fetch(:ids)
    Querying secondary site for packageFileRegistries with sync failures...
    Error: Unexpected response structure. Missing packageFileRegistries data.
    Response: {"data"=>{"geoNode"=>nil}}
    => []
  • UncommonGuy @uncommonguy80 ·

    | Greetings everyone hope you guys are enjoying the weekend I came across 22bet casino when a coworker sent me the link while we were taking a quick coffee break and discussing ways to kill time on rainy afternoons. I checked out the online casino bets poker slots online options for about twenty minutes and although I finished the session slightly down compared to where I started it was still a fun little distraction that helped me recharge my batteries after a super hectic morning.

  • Kulu Kulu @kulukulu3121 ·

    I tend to appreciate online platforms that fit easily into my routine, without making the whole experience feel like a chore. Recently, I spent some time exploring the mobile side of aerobet app, and I’ve come away with a positive impression. It’s convenient to have the option of accessing an entertainment platform when I’m away from my usual computer setup, especially when I have a little spare time during the day. I found myself enjoying the experience more than I initially expected, and it’s nice to have another option available when I want a change from my usual online activities. If you’re interested in finding the app section, this is the page I visited: aero-bets-ca.ca/app. Overall, I’m happy with my experience and glad I decided to explore it.

  • Rahul @uhowodareyu997 ·

    Minulý týden jsme s kamarádem řešili, proč mají některá online kasina tolik různých bonusových akcí. On se díval hlavně na počet free spinů, mě spíš zajímalo, co musí hráč splnit. Při hledání informací jsem narazil na gangstasino bonus a zaujal mě rozdíl mezi denními akcemi, cashbackem a věrnostními odměnami. Hlavně jsem chtěl pochopit, proč některé nabídky vyžadují předchozí vklad a jiné mají časové omezení. Bydlím v České republice, takže jsem se zajímal i o pravidla místního hazardního trhu. Nakonec mi došlo, že samotný počet zatočení bez znalosti podmínek vlastně moc neřekne.

  • Jordan Peterson @joradpeterson221 ·

    I got into an argument with a friend recently about whether poker takes more skill than blackjack. Neither of us was willing to give in, so naturally we ended up looking at online casino games afterwards :D During that little search I came across casinado and got curious about the different options. I usually prefer poker, but I also enjoy trying roulette and a few online slots when I'm in the mood for something faster. Had a good time exploring, definitely made an ordinary evening a bit more interesting.

  • Leprekon @leprekon197765 ·

    mon frère a tenté ce soir de faire griller des bâtonnets de pain à l ail maison dans la friteuse sans huile mais il a réglé la température un peu trop fort si bien que les extrémités ont légèrement noirci et pendant qu il préparait une deuxième fournée je me suis installé confortablement avec la tablette sur winbeatz bonus où quinze minutes dans l espace online casino bets poker slots online ont ajouté un beau petit plus à mon solde

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment