Giter Club home page Giter Club logo

Comments (5)

shawnloong avatar shawnloong commented on August 10, 2024

编译完成后报如下错误
2022/08/09 14:33:35 main.go:110: I! runner.binarydir: /opt/vesta
2022/08/09 14:33:35 main.go:111: I! runner.hostname: xxx-200-42
2022/08/09 14:33:35 main.go:112: I! runner.fd_limits: (soft=1024, hard=4096)
2022/08/09 14:33:35 main.go:113: I! runner.vm_limits: (soft=unlimited, hard=unlimited)
2022/08/09 14:33:35 config.go:33: I! tracing disabled
2022/08/09 14:33:35 agent.go:65: I! agent starting
2022/08/09 14:33:35 metrics_agent.go:90: I! input: conntrack started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: cpu started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: disk started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: diskio started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: kernel started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: kernel_vmstat started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: linux_sysctl_fs started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: mem started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: net started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: netstat started
2022/08/09 14:33:35 metrics_agent.go:40: E! input: oracle not supported
2022/08/09 14:33:35 metrics_agent.go:90: I! input: processes started
2022/08/09 14:33:35 metrics_agent.go:90: I! input: system started
2022/08/09 14:33:35 prometheus_scrape.go:14: I! prometheus scraping disabled!
2022/08/09 14:33:35 agent.go:70: I! agent started
^C2022/08/09 14:33:39 main.go:90: I! received signal: interrupt
2022/08/09 14:33:39 agent.go:74: I! agent stopping
2022/08/09 14:33:39 agent.go:79: I! agent stopped
2022/08/09 14:33:39 main.go:105: I! exited
[root@ECORADB-200-42 vesta]# ./categraf_new
2022/08/09 14:34:37 main.go:110: I! runner.binarydir: /opt/vesta
2022/08/09 14:34:37 main.go:111: I! runner.hostname: ECORADB-200-42
2022/08/09 14:34:37 main.go:112: I! runner.fd_limits: (soft=1024, hard=4096)
2022/08/09 14:34:37 main.go:113: I! runner.vm_limits: (soft=unlimited, hard=unlimited)
2022/08/09 14:34:37 config.go:33: I! tracing disabled
2022/08/09 14:34:37 agent.go:64: I! agent starting
2022/08/09 14:34:37 metrics_agent.go:95: I! input: conntrack started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: cpu started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: disk started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: diskio started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: kernel started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: kernel_vmstat started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: linux_sysctl_fs started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: mem started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: net started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: netstat started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: oracle started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: processes started
2022/08/09 14:34:37 metrics_agent.go:95: I! input: system started
2022/08/09 14:34:37 prometheus_scrape.go:14: I! prometheus scraping disabled!
2022/08/09 14:34:37 agent.go:69: I! agent started
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x448 pc=0x7fa772e9978b]

runtime stack:
runtime.throw({0x3af20ff?, 0x7fa74127b400?})
/opt/go/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
/opt/go/src/runtime/signal_unix.go:802 +0x3a9

goroutine 127 [syscall, locked to thread]:
runtime.cgocall(0x2dbdb60, 0xc000cba1c0)
/opt/go/src/runtime/cgocall.go:157 +0x5c fp=0xc000cba198 sp=0xc000cba160 pc=0x411b5c
github.com/godror/godror._Cfunc_dpiConn_create(0x6420ba0, 0x0, 0x0, 0x0, 0x0, 0x6420c20, 0x13, 0x0, 0xc00069e1b0, 0xc00038ce00)
cgo_gotypes.go:2436 +0x4c fp=0xc000cba1c0 sp=0xc000cba198 pc=0x14f6aac
github.com/godror/godror.(*drv).acquireConn.func8.1(0x41b8c5?, 0xc000cba2a8?, {0x0?, 0x0}, 0xc000cba2e0?, {0x0?, 0x0}, 0x8?, 0x7fa772ac45b8?, 0x0, ...)
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:580 +0x159 fp=0xc000cba250 sp=0xc000cba1c0 pc=0x150e859
github.com/godror/godror.(*drv).acquireConn.func8()
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:580 +0x57 fp=0xc000cba2c0 sp=0xc000cba250 pc=0x150e6d7
github.com/godror/godror.(*drv).checkExecNoLOT(0x41bc27?, 0x8?)
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:269 +0x22 fp=0xc000cba2e0 sp=0xc000cba2c0 pc=0x150bea2
github.com/godror/godror.(*drv).checkExec(0xc000d6ef30?, 0x13?)
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:263 +0x34 fp=0xc000cba310 sp=0xc000cba2e0 pc=0x150bdf4
github.com/godror/godror.(*drv).acquireConn(
, , {{{0xc000d71500, 0x5}, {0xc000d6ef30, 0x13}, {{0xc000bf5b80, 0x19}}, {0x0, 0x0}, ...}, ...})
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:573 +0x8c5 fp=0xc000cba7e0 sp=0xc000cba310 pc=0x150dae5
github.com/godror/godror.(*drv).createConn(
, , {{{0xc000d71500, 0x5}, {0xc000d6ef30, 0x13}, {{0xc000bf5b80, 0x19}}, {0x0, 0x0}, ...}, ...})
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:393 +0xaf fp=0xc000cbab38 sp=0xc000cba7e0 pc=0x150cd6f
github.com/godror/godror.(*drv).createConnFromParams(
, {{{0xc000d71500, 0x5}, {0xc000d6ef30, 0x13}, {{0xc000bf5b80, 0x19}}, {0x0, 0x0}, {0x0, ...}, ...}, ...})
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:610 +0x267 fp=0xc000cbafe8 sp=0xc000cbab38 pc=0x150f347
github.com/godror/godror.connector.Connect({0x6076720, {{{0xc000d71500, 0x5}, {0xc000d6ef30, 0x13}, {{...}}, {0x0, 0x0}, {0x0, 0x0}, ...}, ...}}, ...)
/root/go/pkg/mod/github.com/godror/[email protected]/drv.go:1115 +0x7dc fp=0xc000cbb7a0 sp=0xc000cbafe8 pc=0x151327c
github.com/godror/godror.(*connector).Connect(0x0?, {0x4173dd8?, 0xc000136000?})
:1 +0x9e fp=0xc000cbba80 sp=0xc000cbb7a0 pc=0x155657e
database/sql.(*DB).conn(0xc000d73ad0, {0x4173dd8, 0xc000136000}, 0x1)
/opt/go/src/database/sql/sql.go:1395 +0x782 fp=0xc000cbbbf8 sp=0xc000cbba80 pc=0x1497c02
database/sql.(*DB).PingContext(0x33309e0?, {0x4173dd8, 0xc000136000})
/opt/go/src/database/sql/sql.go:853 +0x79 fp=0xc000cbbc68 sp=0xc000cbbbf8 pc=0x14957d9
database/sql.(*DB).Ping(...)
/opt/go/src/database/sql/sql.go:875
flashcat.cloud/categraf/inputs/oracle.(*Instance).Gather(0xc0007913b0, 0xc000621980)
/app/develop/categraf/inputs/oracle/oracle_linux_amd64.go:115 +0x1a5 fp=0xc000cbbf68 sp=0xc000cbbc68 pc=0x156d925
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce.func2({0x417bda0, 0xc0007913b0})
/app/develop/categraf/agent/metrics_reader.go:111 +0x133 fp=0xc000cbbfc0 sp=0xc000cbbf68 pc=0x2d923f3
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce.func3()
/app/develop/categraf/agent/metrics_reader.go:113 +0x2e fp=0xc000cbbfe0 sp=0xc000cbbfc0 pc=0x2d9228e
runtime.goexit()
/opt/go/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc000cbbfe8 sp=0xc000cbbfe0 pc=0x479b61
created by flashcat.cloud/categraf/agent.(*InputReader).gatherOnce
/app/develop/categraf/agent/metrics_reader.go:99 +0x16d

goroutine 1 [chan receive]:
main.handleSignal(0xc000bc0250?)
/app/develop/categraf/main.go:89 +0x11a
main.runAgent(0x0?)
/app/develop/categraf/main_posix.go:12 +0x28
main.main()
/app/develop/categraf/main.go:70 +0x209

goroutine 20 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000208100)
/root/go/pkg/mod/[email protected]/stats/view/worker.go:276 +0xad
created by go.opencensus.io/stats/view.init.0
/root/go/pkg/mod/[email protected]/stats/view/worker.go:34 +0x8d

goroutine 162 [syscall]:
os/signal.signal_recv()
/opt/go/src/runtime/sigqueue.go:151 +0x2f
os/signal.loop()
/opt/go/src/os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
/opt/go/src/os/signal/signal.go:151 +0x2a

goroutine 132 [sleep]:
time.Sleep(0x3b9aca00)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/config.(*HostnameCache).update(0xc00058df20?)
/app/develop/categraf/config/hostname.go:51 +0x25
created by flashcat.cloud/categraf/config.InitHostname
/app/develop/categraf/config/hostname.go:44 +0xc5

goroutine 133 [sleep]:
time.Sleep(0x5f5e100)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/writer.readQueue(0x0?)
/app/develop/categraf/writer/queue.go:58 +0x1bf
created by flashcat.cloud/categraf/writer.initQueue
/app/develop/categraf/writer/queue.go:18 +0x8f

goroutine 134 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba0500)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 135 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba05c0)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 136 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba07c0)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 137 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba0880)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 138 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba15c0)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 139 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba1740)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 140 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba19c0)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 141 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000ba1cc0)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 142 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000d62140)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 143 [runnable]:
syscall.Syscall6(0x10b, 0xffffffffffffff9c, 0xc0009a4000, 0xc0009a2000, 0x80, 0x0, 0x0)
/opt/go/src/syscall/asm_linux_amd64.s:43 +0x5
syscall.readlinkat(0x4ffbe5?, {0xc0009a0040?, 0xc0009a0030?}, {0xc0009a2000?, 0x80?, 0x3?})
/opt/go/src/syscall/zsyscall_linux_amd64.go:100 +0x129
syscall.Readlink(...)
/opt/go/src/syscall/syscall_linux.go:186
os.Readlink({0xc0009a0040, 0x10})
/opt/go/src/os/file_unix.go:376 +0x98
github.com/shirou/gopsutil/v3/net.getProcInodes({0x3a63966, 0x5}, 0x94b, 0x5?)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:563 +0x345
github.com/shirou/gopsutil/v3/net.getProcInodesAllWithContext({0x4173dd8?, 0xc000136000?}, {0x3a63966, 0x5}, 0x0?)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:684 +0xd9
github.com/shirou/gopsutil/v3/net.connectionsPidMaxWithoutUidsWithContext({0x4173dd8, 0xc000136000}, {0x3a62304, 0x3}, 0x0, 0x0?, 0x0?)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:466 +0xfd
github.com/shirou/gopsutil/v3/net.ConnectionsPidMaxWithContext(...)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:450
github.com/shirou/gopsutil/v3/net.ConnectionsPidWithContext({0x4173dd8?, 0xc000136000?}, {0x3a62304?, 0x0?}, 0x0?)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:433 +0x2e
github.com/shirou/gopsutil/v3/net.ConnectionsWithContext(...)
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:395
github.com/shirou/gopsutil/v3/net.Connections({0x3a62304?, 0x0?})
/root/go/pkg/mod/github.com/shirou/gopsutil/[email protected]/net/net_linux.go:391 +0x37
flashcat.cloud/categraf/inputs/system.(*SystemPS).NetConnections(0x0?)
/app/develop/categraf/inputs/system/ps.go:172 +0x25
flashcat.cloud/categraf/inputs/netstat.(*NetStats).Gather(0xc000d0cbe0?, 0xc000652000?)
/app/develop/categraf/inputs/netstat/netstat.go:34 +0x3b
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc000d623c0)
/app/develop/categraf/agent/metrics_reader.go:87 +0xe8
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000d623c0)
/app/develop/categraf/agent/metrics_reader.go:67 +0x18a
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 144 [select]:
database/sql.(*DB).connectionOpener(0xc000d73ad0, {0x4173da0, 0xc000d62ac0})
/opt/go/src/database/sql/sql.go:1226 +0x8d
created by database/sql.OpenDB
/opt/go/src/database/sql/sql.go:794 +0x18d

goroutine 145 [semacquire]:
sync.runtime_Semacquire(0xc000621960?)
/opt/go/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc000302fc0?)
/opt/go/src/sync/waitgroup.go:136 +0x52
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc000d62b00)
/app/develop/categraf/agent/metrics_reader.go:116 +0x285
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000d62b00)
/app/develop/categraf/agent/metrics_reader.go:67 +0x18a
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 146 [runnable]:
syscall.Syscall(0xd9, 0xb, 0xc0006d2000, 0x2000)
/opt/go/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.Getdents(0x7fa772ac61d8?, {0xc0006d2000?, 0xc000600800?, 0xc000d9e140?})
/opt/go/src/syscall/zsyscall_linux_amd64.go:439 +0x4d
syscall.ReadDirent(...)
/opt/go/src/syscall/syscall_linux.go:870
internal/poll.ignoringEINTRIO(...)
/opt/go/src/internal/poll/fd_unix.go:794
internal/poll.(*FD).ReadDirent(0xc0006d24f8?, {0xc0006d2000, 0x2000, 0x2000})
/opt/go/src/internal/poll/fd_unix.go:646 +0x1ca
os.(*File).readdir(0xc0006d00a8, 0xffffffffffffffff?, 0x0)
/opt/go/src/os/dir_unix.go:70 +0x1f0
os.(*File).Readdirnames(0xc000c01100?, 0x8?)
/opt/go/src/os/dir.go:70 +0x25
path/filepath.glob({0xc000c01100, 0x8}, {0xc000c1a00d, 0x4}, {0xc0008cc000?, 0x461bb0?, 0xc0007f6c90?})
/opt/go/src/path/filepath/match.go:347 +0x11a
path/filepath.globWithLimit({0xc000c1a000, 0x11}, 0x0)
/opt/go/src/path/filepath/match.go:288 +0x314
path/filepath.Glob(...)
/opt/go/src/path/filepath/match.go:244
flashcat.cloud/categraf/inputs/processes.(*Processes).gatherFromProc(0x7fa749e90228?, 0x20?)
/app/develop/categraf/inputs/processes/processes_notwindows.go:140 +0x56
flashcat.cloud/categraf/inputs/processes.(*Processes).Gather(0xc000d7d3b0, 0x0?)
/app/develop/categraf/inputs/processes/processes_notwindows.go:62 +0xa5
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc000d62d80)
/app/develop/categraf/agent/metrics_reader.go:87 +0xe8
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc000d62d80)
/app/develop/categraf/agent/metrics_reader.go:67 +0x18a
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

goroutine 147 [sleep]:
time.Sleep(0x37e11d600)
/opt/go/src/runtime/time.go:194 +0x12e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc00086c840)
/app/develop/categraf/agent/metrics_reader.go:73 +0x96
created by flashcat.cloud/categraf/agent.(*Agent).StartInputReader
/app/develop/categraf/agent/metrics_reader.go:32 +0x10a

from categraf.

kongfei605 avatar kongfei605 commented on August 10, 2024

cc1: error: unrecognized command line option "-fno-lto"

try CGO_ENABLE=1 go build --tags xxxx

from categraf.

shizhoulong356 avatar shizhoulong356 commented on August 10, 2024

exactly not ok , CGO_ENABLE is open

from categraf.

kongfei605 avatar kongfei605 commented on August 10, 2024

Detail cgo_enable is not shown in steps to reproduce. We did not have centos6 to test. You may try google it first.

from categraf.

UlricQin avatar UlricQin commented on August 10, 2024

The oracle monitoring data can be collected remotely, you can use centos7 to compile categraf, and then remotely collect the oracle deployed on centos6

from categraf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.