Comments (2)
Following the systemd man pages and updating the service file to "force" the default behavior (again, following the documentation) results in different but still erratic and incorrect behavior, as shown in the log file where only the cleanup function should be running, yet somehow systemd invokes pre-start functions and then runs the very last part of cleanup() 5 times in a row:
2020-09-01 18:54:31 UTC fpnd.<module> +172: DEBUG [29127] fpnd.ini set startup mode: peer and role: None
2020-09-01 18:54:31 UTC fpnd.show_scheduled_jobs +55: DEBUG [29127] JOBS: Job(interval=10, unit=seconds, do=update_runner, args=(), kwargs={})
2020-09-01 18:54:31 UTC fpnd.show_scheduled_jobs +57: DEBUG [29127] TAGS: {'get-updates', 'base-tasks'}
2020-09-01 18:54:31 UTC fpnd.setup_scheduling +90: DEBUG [29127] Leaving setup_scheduling
2020-09-01 18:54:31 UTC daemon.stop +231: INFO [29127] Stopping...
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': 'dcd27a94-bcc1-4b05-84d2-01dae2dce594'}]
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '70df7721-cacb-4cf5-83e4-064c092ba843'}]
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '78e864f4-1246-4def-9e42-b7c7f33d911d'}]
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': 'f79a58d7-bf45-4d90-90f4-6ec21fd36ad4'}]
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '5e98ad6e-9d50-46a8-aa3b-a5280ce022b8'}]
2020-09-01 18:54:31 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:31 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '7f7b536f-5f7d-4df0-8010-a4a11b3e41f1'}]
2020-09-01 18:54:32 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:32 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': 'b37bd944-dcb7-4e3e-884c-46becaa5b76d'}]
2020-09-01 18:54:32 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:32 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '9db9e9b9-dd05-44ac-a32c-f18c4244f6fd'}]
2020-09-01 18:54:32 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:32 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '50432585-5136-452e-96eb-8ff4b8a2a054'}]
2020-09-01 18:54:32 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [28942] deorbit on ab37e685af result: 200 deorbit OK
2020-09-01 18:54:32 UTC root.call +289: DEBUG [28942] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('d6931ede19',), 'ref': '2096cbcc-83d0-408d-8b90-fa19f7b8a8fe'}]
where the correct stop log is, including verbose:
2020-09-01 07:05:17 UTC node_tools.data_funcs.wrapper +101: INFO [11476] Get data result: OK
2020-09-01 07:05:17 UTC node_tools.data_funcs.wrapper +108: DEBUG [11476] New cache time is: 2020-09-01 07:05:15 UTC
2020-09-01 07:05:20 UTC node_tools.node_funcs.do_cleanup +130: INFO [11476] CLEANUP: shutting down fpn0
2020-09-01 07:05:20 UTC node_tools.network_funcs.do_net_cmd +301: DEBUG [11476] ENV: net script settings are dict_items([('VERBOSE', 'yes'), ('DROP_DNS_53', '')])
2020-09-01 07:05:21 UTC node_tools.network_funcs.do_net_cmd +320: INFO [11476] net cmd fpn0-down.sh result: Checking iptables binary...
Checking kernel rp_filter setting...
RP remove garlic filter...
Checking network...
Found edf70dc89ae19299
Using FPN0 ID: edf70dc89ae19299
Checking for FPN routing table...
Flushing route cache...
Removing route rule...
Deleting route...
Cleaning up...
Checking interfaces...
Found interface enx84e714006ef7
Found these devices and parameters:
FPN interface: ztevw6ywqd
FPN address: 172.16.19.234
FPN gateway: 172.16.19.233
FPN network id: edf70dc89ae19299
INET interface: enx84e714006ef7
INET address: 192.168.0.172
Deleting nat and mangle rules...
Success
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +133: INFO [11476] CLEANUP: fpn0 shutdown returned (True, b'Checking iptables binary...\nChecking kernel rp_filter setting...\n RP remove garlic filter...\nChec
king network...\n Found edf70dc89ae19299\nUsing FPN0 ID: edf70dc89ae19299\nChecking for FPN routing table...\n Flushing route cache...\n Removing route rule...\n Deleting route...\n Cleaning up...\nChecking interf
aces...\n Found interface enx84e714006ef7\n\nFound these devices and parameters:\n FPN interface: ztevw6ywqd\n FPN address: 172.16.19.234\n FPN gateway: 172.16.19.233\n FPN network id: edf70dc89ae19299\n\n INET i
nterface: enx84e714006ef7\n INET address: 192.168.0.172\n\nDeleting nat and mangle rules...\n\nSuccess\n', 0)
2020-09-01 07:05:21 UTC node_tools.node_funcs.run_ztcli_cmd +281: DEBUG [11476] got data: 200 leave OK
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +136: DEBUG [11476] CLEANUP: action leave returned: 200 leave OK
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +130: INFO [11476] CLEANUP: shutting down fpn1
2020-09-01 07:05:21 UTC node_tools.network_funcs.do_net_cmd +301: DEBUG [11476] ENV: net script settings are dict_items([('VERBOSE', 'yes'), ('DROP_DNS_53', '')])
2020-09-01 07:05:21 UTC node_tools.network_funcs.do_net_cmd +320: INFO [11476] net cmd fpn1-down.sh result: Checking iptables binary...
Checking network...
Found edf70dc89a63197c
Using FPN1 ID: edf70dc89a63197c
Checking interfaces...
Found interface enx84e714006ef7
Found these devices and parameters:
FPN SRC interface: ztevww5upg
FPN SRC address: 172.16.20.17
FPN SRC network: 172.16.20.16/30
FPN SRC network id: edf70dc89a63197c
INET interface: enx84e714006ef7
INET address: 192.168.0.172
INET gateway: 192.168.0.254
Reset forwarding for FPN source traffic
net.ipv4.ip_forward = 0
Deleting nat and forwarding rules...
Success
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +133: INFO [11476] CLEANUP: fpn1 shutdown returned (True, b'Checking iptables binary...\nChecking network...\n Found edf70dc89a63197c\nUsing FPN1 ID: edf70dc89a63197c\nChecking interfaces...\n Found interface enx84e714006ef7\nFound these devices and parameters:\n FPN SRC interface: ztevww5upg\n FPN SRC address: 172.16.20.17\n FPN SRC network: 172.16.20.16/30\n FPN SRC network id: edf70dc89a63197c\n\n INET interface: enx84e714006ef7\n INET address: 192.168.0.172\n INET gateway: 192.168.0.254\n\nReset forwarding for FPN source traffic\nnet.ipv4.ip_forward = 0\nDeleting nat and forwarding rules...\n\nSuccess\n', 0)
2020-09-01 07:05:21 UTC node_tools.node_funcs.run_ztcli_cmd +281: DEBUG [11476] got data: 200 leave OK
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +136: DEBUG [11476] CLEANUP: action leave returned: 200 leave OK
2020-09-01 07:05:21 UTC node_tools.node_funcs.run_moon_cmd +353: DEBUG [11476] deorbit on 9f5aa7b693 result: 200 deorbit OK
2020-09-01 07:05:21 UTC root.call +289: DEBUG [11476] * Client will send payload: [{'ses': None, 'tok': None, 'ver': 1, 'met': 'offline', 'arg': ('4c66fda0f4',), 'ref': 'd272c123-3ff1-4230-8b3b-d3c577bcc27b'}]
2020-09-01 07:05:21 UTC node_tools.node_funcs.do_cleanup +141: DEBUG [11476] CLEANUP: offline reply: [{'ref': 'd272c123-3ff1-4230-8b3b-d3c577bcc27b', 'result': '4c66fda0f4'}]
from fpnd.
Log above made with these changes to service file:
ExecStop=/usr/lib/fpnd/fpnd.py stop
Type=forking
KillSignal=SIGTERM
SendSIGHUP=yes
from fpnd.
Related Issues (20)
- when it will be available on windows?
- doesn't connect even after restarting HOT 1
- Add TLS encryption for network cfg messaging layer
- automatic redirect of port 80 to 443 (external sites) not compatible with "tight" routing
- avahi-daemon.conf requires interface whitelisting to ignore vpn interfaces
- ip6tables modules not loading automatically on focal HOT 1
- Ubuntu 20.04 Stuck On "Waiting" HOT 8
- Pop_OS 20.04 Stuck on Config HOT 6
- Feature/Enhancement: Raspi HOT 2
- inconsistent cachedir on bionic
- node msg errors and openssl upgrades
- Need Debian Support HOT 2
- stale processes and message errors with early 0.9.x releases
- de-wedging fails for nodes who never route
- apt-get update / Domain resolution issue on Ubuntu 20.04 in Chromium / Firefox browsers HOT 1
- error in adding the PPA from Launchpad HOT 1
- Implement IPv6 leaks protection. HOT 4
- Site feedback
- Blocking on the Waiting value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpnd.