Giter Club home page Giter Club logo

Comments (8)

albertito avatar albertito commented on May 13, 2024

Thank you for reporting this!

There are two things going on:

  1. chasquid-util aliases-resolve ignores the hooks. This is at the very least a documentation bug that should be fixed.
    There should also be a convenient way of resolving via chasquid itself, as that can be useful to troubleshoot issues (like in this case), and currently there isn't any.
    I've filed #18 to track fixing this issue.

  2. The hooks not working when you send email. The most typical is permissions, but yours seem to be fine here.
    What do you see in the chasquid logs? What about the monitoring http server?
    There's a tracing endpoint for the hooks, you should be able to see the execution of them there.

If you navigate to the monitoring http server, then requests (short-lived), and then the [>= 0] on both Hook.Alias-Exists and Hook.Alias-Resolve, you should be able to see the execution attempts and detailed errors. What do they say?

The same information should appear in chasquid logs if you run it with -v=2.

from chasquid.

DiederikvandenB avatar DiederikvandenB commented on May 13, 2024

I don't exactly understand what's going on right now. When I do apt-get install chasquid, my emails don't come through. When trying to debug the issue above, I forked the repo trying to fix it. With only this commit on top of master DiederikvandenB@88434d7, everything works like a charm.

Is the apt package up to date? Or it might be an environmental issue which was solved by building the package myself?

from chasquid.

albertito avatar albertito commented on May 13, 2024

That is quite odd! What version of Debian are you using? What version of the apt package are you installing?

When you build chasquid yourself, are you installing it via cp chasquid /usr/bin/chasquid or something else?

If you prefer to look at this more interactively, feel free to jump on irc, #chasquid at freenode.net!

from chasquid.

DiederikvandenB avatar DiederikvandenB commented on May 13, 2024

I’m deploying on an rpi4 (armv7). I’m on mobile now so I can’t tell you the version numbers.

I ran make all and then copied the bins to /usr/bin/ (not the local dir, as per the makefile) and then service chasquid start, borrowing the service from the apt installation.

I’ll report back later with the version numbers. And thanks for taking the time debugging this with me!

from chasquid.

DiederikvandenB avatar DiederikvandenB commented on May 13, 2024

So the issue is that the most up to date version on APT for raspi is v.07-1:

$ apt info chasquid
Package: chasquid
Version: 0.07-1

I also ran apt-get update

from chasquid.

albertito avatar albertito commented on May 13, 2024

Thanks for the update! I think that explains the problem:

chasquid 0.07 (which is included in the current Debian stable release) does not have the aliases hook feature. The feature was implemented in 1.1 (2019-10-26), specifically commit f399fe3.

So updating chasquid binaries to the latest version by hand, as you're doing, good way to get it while still taking advantage of the distribution integration.

FWIW, the upcoming Debian stable release will include chasquid 1.6.

So if I understand correctly what you mentioned above, the updated binaries fix this problem and things work fine?
Besides issue #18 (chasquid-util aliases-resolve does not take hooks into account) that is, which is tracked separately.

from chasquid.

DiederikvandenB avatar DiederikvandenB commented on May 13, 2024

Awesome, good to know.

Yes, other than #18, everything is working as expected. Thanks for your help, and stay healthy!

from chasquid.

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.