-
Notifications
You must be signed in to change notification settings - Fork 390
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
get_job_status fails if it connects to backup master #665
Comments
Okay, so, here is the thing. The https://github.com/jhuckaby/Cronicle/blob/master/docs/APIReference.md#redirects I cannot explain why you are seeing that weird "protocol violation" error, or where that is even coming from. Some kind of proxy server you have in the middle, which isn't expecting a HTTP 302? Dunno. Anyway, here is the thing. The I will fix that. |
Hmmmm IPV6? |
[apache@apchop01 ~]$ curl -v -L "http://orcl02.example.com:3012/api/app/get_event/v1/?api_key=a44e89551e0232b8e7aab002147c357e&id=elo3mvp8h02"
|
Okay, that is really bizarre. Your backup server thinks that the master server's IP address is What does your server data look like? Try: /opt/cronicle/bin/storage-cli.js list_get global/servers Are the IPs munged in there as well? I'm still trying to fathom how this could possibly have happened. |
[root@orcl02 cronicle]# /opt/cronicle/bin/storage-cli.js list_get global/servers |
Okay thanks, all normal there. I'll have to dig into this when I have some time. That is really a weird bug. |
OTOH [root@orcl02 cronicle]# netstat -anp | grep Cronicle So, it seems because Cronicle is bound to an IPV6 address, anything it gets is going to come from an IPV6 address, so It thinks everything needs to be an IPV6 address |
setting |
Okay, thank you for all this info. I'll dig in as soon as I have time. |
Summary
the get_job_status API fails if it happens to hit the backup master in multi-server config . This does not happen with other API calls
Steps to reproduce the problem
Your Setup
Virtualbox
Cronicle 0.9.38
2 master servers (primary, backup)- access via round-robin DNS (Oracle SCAN IPs) to virtual hostname
conf/config.json has "web_direct_connect": true,
2 other worker servers
can connect to web console via virtual hostname and everything works as expected. Can use other APIs against both master nodes and they work correctly
ie
Operating system and version?
[root@orcl01 ~]# cat /etc/oracle-release
Oracle Linux Server release 7.9
[root@orcl01 ~]# uname -a
Linux orcl01.example.com 5.4.17-2136.324.5.3.el7uek.x86_64 #2 SMP Tue Oct 10 12:44:19 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
Node.js version?
v16.20.2
Cronicle software version?
0.9.38
Are you using a multi-server setup, or just a single server?
Multi
Are you using the filesystem as back-end storage, or S3/Couchbase?
filesystem (cluster)
Can you reproduce the crash consistently?
yes
Log Excerpts
Can't see anything specific
The text was updated successfully, but these errors were encountered: