lstein / Net-ISP-Balance

Set of scripts to load-balance your Internet connection across two or more ISPs with auto failover
Artistic License 2.0
209 stars 49 forks source link

Foolsm unconditionally fails to start #38

Closed anoduck closed 11 months ago

anoduck commented 3 years ago

Sometime between July 26, 2021 and now (Oct 24, 2021), foolsm fails to start regardless of how it is executed, AND no debug information is generated to further understand and hint towards the issue. It simply dumps the help information and exits. To personify the new behavior, it acts like it wants to make life difficult. I suspect there is something either corrupting the foolsm flags when load_balance.pl executes the command, OR There is something buggy in my configuration file.

I checked the configuration file, and it seems to be good. For some reason the copy/paste functionality is not working. But, I was able to upload it: https://0x0.st/-dxH.conf

Version: CURRENT Master OS: Debian Sid Shell: Bash

Anything else needed, just let me know.

lstein commented 3 years ago

There's nothing obviously bad about your configuration file. Are you able to launch foolsm by hand? To do this, locate the lsm.conf configuration file on your system. It is likely in /etc/network/balance/lsm.conf. Then launch foolsm this way:

foolsm -c /etc/network/balance/lsm.conf

If this works, then I suspect that there are permission problems creating the PID file. Check whether there is a file named /var/run/lsm.pid, and whether the user that load_balance runs under has permission to overwrite this file and write into its directory.

Lincoln

On Sun, Oct 24, 2021 at 7:37 AM Anoduck @.***> wrote:

Sometime between July 26, 2021 and now (Oct 24, 2021), foolsm fails to start regardless of how it is executed, AND no debug information is generated to further understand and hint towards the issue. It simply dumps the help information and exits. To personify the new behavior, it acts like it wants to make life difficult. I suspect there is something either corrupting the foolsm flags when load_balance.pl executes the command, OR There is something buggy in my configuration file.

I checked the configuration file, and it seems to be good. For some reason the copy/paste functionality is not working. But, I was able to upload it: https://0x0.st/-dxH.conf

Version: CURRENT Master OS: Debian Sid Shell: Bash

Anything else needed, just let me know.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lstein/Net-ISP-Balance/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3EVPNOCL2IDEGFJM66K3UIPVW3ANCNFSM5GTLQSOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Lincoln Stein

Head, Adaptive Oncology, OICR

Senior Principal Investigator, OICR

Professor, Department of Molecular Genetics, University of Toronto

Tel: 416-673-8514

Cell: 416-817-8240

@.***

*E*xecutive Assistant (Interim)

Michelle Xin

Tel: 647-260-7927

@. @.>*

Ontario Institute for Cancer Research

MaRS Centre, 661 University Avenue, Suite 510, Toronto, Ontario, Canada M5G 0A3

@OICR_news https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Foicr_news&data=04%7C01%7CMichelle.Xin%40oicr.on.ca%7C9fa8636ff38b4a60ff5a08d926dd2113%7C9df949f8a6eb419d9caa1f8c83db674f%7C0%7C0%7C637583553462287559%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PS9KzggzFoecbbt%2BZQyhkWkQo9D0hHiiujsbP7Idv4s%3D&reserved=0 | www.oicr.on.ca

Collaborate. Translate. Change lives.

This message and any attachments may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this message in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this message may not be that of the organization.

anoduck commented 3 years ago

I know... I am ashamed my configuration file is so messy... :( ...

RESULT: No Tomale

foolsm -c /etc/network/balance/lsm.conf 
foolsm version 1.0.14-load_balance-p1
usage: foolsm
       [-h|--help|-v|--version]
       [-c|--config <config_file>]
       [-p|--pidfile <pid_file>]
       [-f|--no-fork]
check syslog for debug/error messages
# Nothing relevant in /var/log/messages

Well, here is the good news. You are still excellent at writing PERL, because load_balance.pl is just trotting right along attempting to start foolsm.

The question is if this error can be reproducible? I am afraid, for now the chances are slim, since my issue appears to be the only one regarding this matter. My network is functional at the moment, so whatever you want to do or need for me to do, is up to you.

anoduck commented 2 years ago

Just returning to this issue, because it still exists.


Using ack showed several scripts contained within the repository expect foolsm to be located in /usr/sbin, yet my installation of foolsm is located in /usr/local/bin. Regardless of this difference, when linked via ln -sf, no change occurs and foolsm still fails to start.

Next, working on exactly why foolsm is installed in /usr/local/bin and not /usr/sbin, and will attempt to manually patch foolsm and build foolsm outside of the perl build system.