Closed PaulWalkerUK closed 6 years ago
Having said that, more often than not, I don't get any error output - it just exits quietly. Whether that means there are 2 separate issues, or one issue that just exhibits differently, I have no idea, sorry.... This last time, it ran for for 25 minutes before quietly exiting...
I have not tested the program on Windows simply because I don't have a machine to test it on. I know a build with the Postgres driver has successfully worked, but have not tested with the other drivers.
This ORA-21500
implies an issue in the Oracle driver. Which database are needing to talk to? You change the cmd/sql-agent/main.go
file and comment out the drivers you don't need and try rebuilding it.
I'm using Oracle 11.2.0.4. Don't worry about it, I'll try digging into further and see how far I get (I'm new to Go, so it'll be a learning experience!! 😉)
No problem at all! Please feel free to ask questions even if they appear to be Go-specific.
I never managed to get any further in establishing what was happening (though it looks more likely related to the number of queries run, rather than time). I've worked around it by running it as a service that will automatically restart if the application exits :smile:
Feel free to close this ticket if you like. Thanks
@PaulWalkerUK , can you please provide the instructions how you created a Windows binary and run it as a service?
I forget the details now, but once I'd built the exe, I probably used nssm to setup the service in Windows
I'm using sql-agent along with prometheus-sql. Sql-agent runs fine - but only for a few minutes, then it exits. I get the following output:
This occurred after about 10 minutes (I'm connecting to an Oracle database)
I've had to build it on Windows 7 using
go install
since I'm not using envirnment that has Docker available.