18

Hey, so I've been using Hamachi with Haguichi on Linux (Mint) for some time, and for the most part it works fine; however, hamachi will occasionally disconnect and then ask for my password to restart the service. This seems to happen kind of irregularly, and some days it barely happens, while others it seems to happen every 5 minutes.

After some search, I only managed to find a couple of old results - with no solutions - but which suggested it was a memory leak issue. I checked the systemctl logs and it seems like that might be the case:

systemd-coredump[96279]: Process 93832 (hamachid) of user 0 dumped core.
            #11 0x000000000040954f n/a (hamachid + 0x954f)
            #12 0x0000000000462f71 n/a (hamachid + 0x62f71)
            #13 0x0000000000464d10 n/a (hamachid + 0x64d10)
            #14 0x00000000004afe24 n/a (hamachid + 0xafe24)
            #15 0x00000000004e816c n/a (hamachid + 0xe816c)
            #16 0x00000000005005d4 n/a (hamachid + 0x1005d4)
            #17 0x000000000050eb48 n/a (hamachid + 0x10eb48)
            #18 0x0000000000446c9e n/a (hamachid + 0x46c9e)
            #19 0x00000000004bebe2 n/a (hamachid + 0xbebe2)
            #20 0x000000000040709e n/a (hamachid + 0x709e)
            #23 0x00000000004076cf n/a (hamachid + 0x76cf)

I guess my question is, is this a known issue? Does anyone else have the same problem and/or know a fix? And, if not, does anyone know of a good alternative that is available on both Linux and Windows (I'm connecting to people on Windows)?

Thanks in advance.

top 7 comments
sorted by: hot top controversial new old
[-] lordnikon@lemmy.world 20 points 3 weeks ago

Wouldn't it be better using wireguard at this point. I thought hamachi was long past it's prime.

[-] sorrybookbroke@sh.itjust.works 1 points 3 weeks ago* (last edited 3 weeks ago)

Hamachi is easier to get others to use I've found. When we just want to game getting somebody to install a different application can cause frustration, anger, and a quoting mentality. Some people are just stuck in their ways.

Doesn't matter how easy it's to do, how you'll guide them through each step, some people are just stuck in their ways and many people are atleast familiar with hamachi

[-] Max_P@lemmy.max-p.me 12 points 3 weeks ago

As for alternatives, I've heard lots of good things about Tailscale (or headscale if you want to self host).

If them connecting to you is an option, WireGuard is also stupidly easy to set up and very reliable. If you need to also forward layer 2 traffic (old LAN games and weird local protocols), you can use OpenVPN for that. A bit hard to set up but also quite capable.

[-] preussischblau@lemmy.ca 10 points 3 weeks ago

After having that same issue with haguichi, I switched to using hamachi in the terminal only and haven't had it happen since.

[-] Godort@lemm.ee 10 points 3 weeks ago* (last edited 3 weeks ago)

I haven't tried to use hamachi in years so I'm not sure about a solution to your problem. However, I can strongly recommend Zerotier as a potential alternative

[-] anon5621@lemmy.ml 1 points 3 weeks ago

+1 Zerotier works awesome

[-] Max_P@lemmy.max-p.me 6 points 3 weeks ago

Unfortunately that trace isn't very useful due to the lack of debug symbols. One would have to decompile and analyze the binary to really gather some information as to how that happened, and it's probably against their TOS.

hamachi will occasionally disconnect *and then ask for my password to restart the service. *

The GUI is probably trying to restart the daemon for you which causes this, because that's not standard behaviour. You can probably fix that but just allowing your user to do that passwordless, although it's dumb:

# /etc/polkit-1/rules.d/50-hamachi.rules
polkit.addRule(function (action, subject) {
    if (
        subject.user === "YOURUSERNAMEHERE"
        && action.id === "org.freedesktop.systemd1.manage-units"
        && action.lookup("unit") === "logmein-hamachi.service"
    ) {
        return polkit.Result.YES;
    }
})

You'll want to change your username in there and also adjust the service name if it's different.

this post was submitted on 08 Jan 2025
18 points (95.0% liked)

Linux

49393 readers
1574 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS