-
Notifications
You must be signed in to change notification settings - Fork 237
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
panic: runtime error: invalid memory address or nil pointer dereference #411
Comments
I had the same problem using Oracle exporter 0.5.1 or 0.5.2 with OS version centos7.9 |
Same here: Oracle exporter 0.6.0
|
I have the same problem, too.
|
Seems this one might be solved by #460 |
@HansK-p The latest one is still 0.6.0 on Apr 6th, this commit was merged (Jul 29th) but not released, any update further? |
We have had no issues after we took the patched version into use some months ago. |
Thanks @HansK-p , may I know where/how I could get the patched version? |
I'm not very good with this, so my approach is probably not ideal. I cloned the repo, checked out v0.6.0, probably applied the small change manually based on #460, created the docker image and pushed it to our own container registry. This might work: git clone https://github.com/iamseth/oracledb_exporter.git cd oracledb_exporter/ git checkout 0.6.0 vi collector/collector.go # apply PR changes manually docker build --build-arg BASE_IMAGE=scratch --build-arg VERSION=0.6.0 --build-arg ORACLE_VERSION=19.14 -t oracledb_exporter:0.6.0-patched Be aware that I haven't double check if the information above is correct, but at least I tried a docker build and it didn't fail. I have not tried to create oracledb_exporter binaries, only containers. |
We are running the exporter in VM, the docker version may not help, but thanks a lot for the details, I will open an issue for this. |
After running for a period of time, the following error always occurs, causing the program to exit abnormally.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9a825c]
goroutine 46190 [running]:
github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape.func2()
/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:315 +0xffc
created by github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape
/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:321 +0x94e
The text was updated successfully, but these errors were encountered: