drsound / fault_tolerant_router

A daemon, running in background on a Linux router or firewall, monitoring the state of multiple internet uplinks/providers and changing the routing accordingly. LAN/DMZ internet traffic is load balanced between the uplinks.
GNU General Public License v2.0
185 stars 20 forks source link

RasPi setup issue "odd number list for Hash (SyntaxError)" #27

Open zbourdeau opened 6 years ago

zbourdeau commented 6 years ago

When I try to run the latest fault_tolerant_router package on a raspi 3 I am seeing the following issue:

$ fault_tolerant_router generate_config /usr/local/bin/fault_tolerant_router:23:in `load': /var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: odd number list for Hash (SyntaxError) configuration_file: '/etc/fault_tolerant_router.conf', ^ /var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: syntax error, unexpected ':', expecting '}' configuration_file: '/etc/fault_tolerant_router.conf', ^ /var/lib/gems/1.8/gems/fault_tolerant_router-1.2.0/bin/fault_tolerant_router:75: syntax error, unexpected ',', expecting $end from /usr/local/bin/fault_tolerant_router:23

Any suggestions?

drsound commented 6 years ago

Which ruby version are you using? Run ruby -v, please.

zbourdeau commented 6 years ago

ruby -v ruby 1.8.7 (2012-02-08 patchlevel 358) [arm-linux-eabihf]

drsound commented 6 years ago

I think there are some language compatibility issues between your 1.8.7 version and the 2.x.x version I used during development. If you have chance, try to upgrade to a newer Ruby version, I think it would solve the problem. Consider 1.8.7 is no longer a supported Ruby version, see Ruby download page. Anyway I will look into the technical details of the error during this weekend and will let you know...

drsound commented 6 years ago

Here is a better page to see the EOL (end of life) state of the various Ruby versions.