按照知道编译成功运行报错src/src/adapter/adapter.c:169: neu_adapter_create: Assertion `adapter->plugin != NULL' failed.

root@xzx:/home//# ./neuron
neuron: /home/
/src/adapter/adapter.c:169: neu_adapter_create: Assertion `adapter->plugin != NULL’ failed.

是自己编写plugin吗?如果是看看plugin的 open回调是否正确实现了,参考modbus 插件。最好粘贴一下运行日志。
建议更新到最新版本代码编译。

是在加载静态adapter的时候失败的 ,不是自己的插件,加载默认的"default-dashboard"时候,堆栈信息如下:

Thread 1 “neuron” received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737344939200) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737344939200) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737344939200) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737344939200, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff777d476 in __GI_raise (sig=sig@entry=6) at …/sysdeps/posix/raise.c:26
#4 0x00007ffff77637f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff776371b in __assert_fail_base (fmt=0x7ffff7918150 “%s%s%s:%u: %s%sAssertion `%s’ failed.\n%n”, assertion=0x5555555e59d2 “adapter->plugin != NULL”, file=0x5555555e5778 “/home/src/src/adapter/adapter.c”,
line=169, function=) at ./assert/assert.c:92
#6 0x00007ffff7774e96 in __GI___assert_fail (assertion=0x5555555e59d2 “adapter->plugin != NULL”, file=0x5555555e5778 “/home/src/src/adapter/adapter.c”, line=169,
function=0x5555555e5fd0 <PRETTY_FUNCTION.8> “neu_adapter_create”) at ./assert/assert.c:101
#7 0x0000555555593c9a in neu_adapter_create (info=0x7fffffffde90) at /home/src/src/adapter/adapter.c:169
#8 0x000055555557cf64 in start_static_adapter (manager=0x55555568bbf0, name=0x5555555e05fb “default-dashboard”) at /home/src/src/core/manager.c:1099
#9 0x0000555555578c94 in neu_manager_create () at /home/src/src/core/manager.c:109
#10 0x0000555555573d1a in neuron_run (args=0x7fffffffdff0) at /home/src/src/main.c:76
#11 0x000055555557416d in main (argc=1, argv=0x7fffffffe148) at /home/src/src/main.c:162

看看7000端口是否已被占用

好的谢谢,问题解决,是之前的docker示例容器没有停止