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

[SmartOS] Broken collectd-network in 2016Q4 #483

Closed
hadret opened this issue Apr 13, 2017 · 6 comments
Closed

[SmartOS] Broken collectd-network in 2016Q4 #483

hadret opened this issue Apr 13, 2017 · 6 comments
Assignees

Comments

@hadret
Copy link

hadret commented Apr 13, 2017

Hi,

recently I noticed that nodes I migrated to base-64-lts 16.4.1 are no longer sending metrics to my central graphite server. Turned out that collectd daemon was failing to start due to fatal error. Here's the message:

[ Apr 13 11:03:47 Enabled. ]
[ Apr 13 11:03:47 Executing start method ("/opt/local/sbin/collectd"). ]
configfile: stat (/opt/local/etc/collectd.d/*.conf) failed: No such file or directory
ld.so.1: collectd: fatal: relocation error: file /opt/local/lib/collectd/network.so: symbol gcry_control: referenced symbol not found
[ Apr 13 11:03:47 Method "start" failed due to signal KILL. ]

image:base-64-lts 16.4.1
collectd:5.6.2
platform:joyent_20161222T003450Z

Regards,
Filip

@mamash mamash self-assigned this Apr 13, 2017
@mamash
Copy link

mamash commented Apr 13, 2017

Hm, it's strange. I see the network.so lib doesn't link libgcrypt like it should (I think), but I can't bring collectd crashing on the missing symbol, it just keeps running. I'll continue investigating.

@hadret
Copy link
Author

hadret commented Apr 13, 2017

Ah, probably I should have include also the configuration I'm using! Here's the relevant part:

LoadPlugin network
<Plugin network>
        <Server "$REMOTE_SERVER" "$REMOTE_PORT">
                SecurityLevel Sign
                Username "$USER"
                Password "$PASSWORD"
        </Server>
        MaxPacketSize 1500
</Plugin>

If link against libgcrypt should be there and it is part responsible for encryption in network plugin, then this might be the very reason it fails.

@mamash
Copy link

mamash commented Apr 13, 2017

Ah OK, confirmed.

@mamash
Copy link

mamash commented Apr 13, 2017

I fixed this in pkgsrc trunk, will backport to 2016Q4.

@hadret
Copy link
Author

hadret commented Apr 14, 2017

Great! Many thanks!

@mamash
Copy link

mamash commented Apr 16, 2017

Should be fixed in 2016Q4, I backported the update to 5.7.1 too.

@mamash mamash closed this as completed Apr 18, 2017
jsonn referenced this issue in jsonn/pkgsrc Apr 23, 2017
sysutils/collectd-network: build fix

Revisions pulled up:
- sysutils/collectd-network/Makefile                            1.2

---
   Module Name:    pkgsrc
   Committed By:   fhajny
   Date:           Thu Apr 13 17:48:27 UTC 2017

   Modified Files:
           pkgsrc/sysutils/collectd-network: Makefile

   Log Message:
   Use a more explicit libgcrypt reference, fixes joyent/pkgsrc#483.
   PKGREVISION++
netbsd-srcmastr referenced this issue in NetBSD/pkgsrc Jun 9, 2017
sysutils/collectd-network: build fix

Revisions pulled up:
- sysutils/collectd-network/Makefile                            1.2

---
   Module Name:    pkgsrc
   Committed By:   fhajny
   Date:           Thu Apr 13 17:48:27 UTC 2017

   Modified Files:
           pkgsrc/sysutils/collectd-network: Makefile

   Log Message:
   Use a more explicit libgcrypt reference, fixes joyent/pkgsrc#483.
   PKGREVISION++
netbsd-srcmastr referenced this issue in NetBSD/pkgsrc Jun 22, 2017
sysutils/collectd-network: build fix

Revisions pulled up:
- sysutils/collectd-network/Makefile                            1.2

---
   Module Name:    pkgsrc
   Committed By:   fhajny
   Date:           Thu Apr 13 17:48:27 UTC 2017

   Modified Files:
           pkgsrc/sysutils/collectd-network: Makefile

   Log Message:
   Use a more explicit libgcrypt reference, fixes joyent/pkgsrc#483.
   PKGREVISION++
jsonn referenced this issue in jsonn/pkgsrc Jun 22, 2017
sysutils/collectd-network: build fix

Revisions pulled up:
- sysutils/collectd-network/Makefile                            1.2

---
   Module Name:    pkgsrc
   Committed By:   fhajny
   Date:           Thu Apr 13 17:48:27 UTC 2017

   Modified Files:
           pkgsrc/sysutils/collectd-network: Makefile

   Log Message:
   Use a more explicit libgcrypt reference, fixes joyent/pkgsrc#483.
   PKGREVISION++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants