Giter Site home page Giter Site logo

Comments (8)

dlecocq avatar dlecocq commented on August 25, 2024

Interesting. Usually in the various language bindings the qless-core repo is included as a submodule. If the same with PHP bindings, what SHA is it at? Alternatively, link to the PHP bindings?

from qless.

stephenreay avatar stephenreay commented on August 25, 2024

Hey @dlecocq

The PHP binding is (https://github.com/pdffiller/qless-php) which doesn't use a submodule, but we're currently using v3.8.1 which includes this version of the Qless Lua: https://github.com/pdffiller/qless-php/blob/v3.8.1/src/qless-core/qless.lua. Just to clarify: the php binding is working fine, both to queue jobs, pull them and then either complete/cancel etc.

Edit: sorry, forgot the URL.
Edit2: clarify more specifically the version of the binding (and thus Lua) we're using

from qless.

dlecocq avatar dlecocq commented on August 25, 2024

Thanks! Even though the PHP bindings are working fine, something that can cause problems is having too-far-mismatched SHAs for qless-core between the language bindings and the qless UI. However, that doesn't appear to be the case.

Is that error trace what shows up in the UI? Or is that the contents of the response of the 500-ing API call? What's particularly confusing is that the stack trace doesn't even reference qless after the essentially the launch of the server.

from qless.

stephenreay avatar stephenreay commented on August 25, 2024

So I think a version of that stack trace may have been included in the XHR response to the call from clicking the buttons, but I actually got it from the console output of - so either direct output if it's run directly, or e.g. using journalctl when it runs under systemd.

From some other searching this exact error (and often with traces that reference Sinatra) come up all over the place, GH, SO, etc. It seems unlikely it's related to Qless directly, so I guess I'll keep searching for the solution.

from qless.

dlecocq avatar dlecocq commented on August 25, 2024

Yeah, though it seemed odd that some buttons worked and some didn't. My first inclination when seeing an error with dup in a server was that it was related to dup(2), but apparently dup is a different thing in Ruby.

from qless.

stephenreay avatar stephenreay commented on August 25, 2024

At a guess it seems like it's related to sinatra/sinatra#1517, and because I was assigning the :ssl_params key to a hash when required, and nil when not.

from qless.

stephenreay avatar stephenreay commented on August 25, 2024

Ok, followup: its not related to our custom boot script, it affects the default qless-web script too

from qless.

stephenreay avatar stephenreay commented on August 25, 2024

Ok, yup, I 'solved' the issue by installing Ruby 2.6 from the Brightbox repo. This definitely seems to be caused by sinatra/sinatra#1514, but despite merging the fix 5 months ago, they haven't made a release since then, so not much that can be done from your point of view, but I guess at least now this issue will show up if anyone else gets the same behaviour.

I'm gonna close this now, because I don't see any practical steps you can take to resolve it anyway.

from qless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.