Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless shutdown #5160

Closed
lucaderi opened this issue Apr 9, 2021 · 3 comments
Closed

Endless shutdown #5160

lucaderi opened this issue Apr 9, 2021 · 3 comments
Labels

Comments

@lucaderi
Copy link
Member

lucaderi commented Apr 9, 2021

(lldb) bt

  • thread Trigger Host Alert #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    • frame #0: 0x00007fff69d8bd82 libsystem_kernel.dylib__semwait_signal + 10 frame #1: 0x00007fff69f57824 libsystem_pthread.dylib_pthread_join + 626
      frame ERROR: Unable to start HTTP server  #2: 0x000000010d28974c ntopngThreadPool::~ThreadPool(this=0x00007fd85fee6de0) at ThreadPool.cpp:68 frame #3: 0x000000010d289ae5 ntopngThreadPool::~ThreadPool(this=0x00007fd85fee6de0) at ThreadPool.cpp:59
      frame Missing dependency on OS/X Yosemite #4: 0x000000010d289b09 ntopngThreadPool::~ThreadPool(this=0x00007fd85fee6de0) at ThreadPool.cpp:59 frame #5: 0x000000010d252ca4 ntopngPeriodicActivities::~PeriodicActivities(this=0x00007fd859402500) at PeriodicActivities.cpp:62
      frame host alert thresholds #6: 0x000000010d252ed5 ntopngPeriodicActivities::~PeriodicActivities(this=0x00007fd859402500) at PeriodicActivities.cpp:50 frame #7: 0x000000010d23db94 ntopngNtop::shutdownPeriodicActivities(this=0x00007fd85b003c00) at Ntop.cpp:2719
      frame added meta tag 'X-UA-Compatible' #8: 0x000000010d23dd0f ntopngNtop::shutdownAll(this=0x00007fd85b003c00) at Ntop.cpp:2748 frame #9: 0x000000010d2d4544 ntopngmain(argc=3, argv=0x00007ffee2b3d9a0) at main.cpp:421
      frame Merge branch 'dev' #10: 0x00007fff69c3b015 libdyld.dylibstart + 1 (lldb) frame #2: 0x000000010d28974c ntopngThreadPool::~ThreadPool(this=0x00007fd85fee6de0) at ThreadPool.cpp:68
      65 #ifdef THREAD_DEBUG
      66 ntop->getTrace()->traceEvent(TRACE_NORMAL, "Threads still running %d", pool_size-i);
      67 #endif
      -> 68 pthread_join(it, &res);
      69 }
      70
      71 threadsState.clear();
      (lldb)
      frame Add netfilter support #5: 0x000000010d252ca4 ntopng`PeriodicActivities::~PeriodicActivities(this=0x00007fd859402500) at PeriodicActivities.cpp:62
      59
      60 /
      This will terminate any possibly running activities into the ThreadPool::run */
      61 if(standard_priority_pool) delete standard_priority_pool;
      -> 62 if(longrun_priority_pool) delete longrun_priority_pool;
      63 if(timeseries_pool) delete timeseries_pool;
      64 if(notifications_pool) delete notifications_pool;
      65 if(periodic_user_scripts_pool) delete periodic_user_scripts_pool;
@lucaderi lucaderi added the Bug label Apr 9, 2021
@lucaderi
Copy link
Member Author

Fixed by c9f18c9

@lucaderi
Copy link
Member Author

Unfortunately it seems that there are cases where shutdown does not end. Example when SNMP polling is in progress systemd waits a bit and then kills the app. This means that ntopng restart after package upgrade won't work as ntopng is still down
root@ntop:/home/deri# service ntopng status

  • ntopng.service - ntopng high-speed web-based traffic monitoring and analysis tool
    Loaded: loaded (/etc/systemd/system/ntopng.service; disabled; vendor preset: enabled)
    Active: inactive (dead)

@lucaderi lucaderi reopened this Apr 12, 2021
@lucaderi
Copy link
Member Author

This issue seems to be fixed in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant