Replies: 4 comments 1 reply
-
Are you trying to run ODC behind a reverse proxy or Cloudflare Tunnel? That is unfortunately not easily done as ODC does not play nice with reverse proxies. I suspect a bug in module.exports = {
getURLData(req) {
let protocol = 'http';
if (req.headers['x-forwarded-proto'] === 'https') {
protocol = 'https';
}
let ret;
const parsedUrl = req.get('Host').split(':');
if (parsedUrl.length > 1) {
ret = {
address: parsedUrl[0],
port: parsedUrl[1],
protocol,
};
} else {
ret = {
address: req.get('Host'),
port: 80,
protocol: req.protocol,
};
}
return ret;
},
}; Which worked in my setup but I haven't tested it yet, which is why it's not out there yet. If you are able to confirm that this code-snippet fixes your issue I'm happy to create an official fixed docker version for you. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick reply. No, I'm not running ODC behind any proxy or Cloudlfare tunnel (I also don't understand form where did Axios get that I will try the fix that you provided and report back. |
Beta Was this translation helpful? Give feedback.
-
In this case I'm not sure the fix will work for you. From what I see somehow ODC changed the port to 443 (standard HTTPS port) which is why I assumed a reverse proxy or TLS endpoint of some sort. Could you describe your setup one more time for me? Do you have any special networking setup (VPN, Proxy, etc?) running? |
Beta Was this translation helpful? Give feedback.
-
ODC is running on a Jetson Nano using the provided |
Beta Was this translation helpful? Give feedback.
-
With both version 3.0.1 and 3.0.2, I'm having trouble with random crashing. I did some debugging but was unable to reliably reproduce the behavior. The crashes usually happen on startup but in a few cases also during operation.
OpenDataCam is running on a Jetson Nano inside Docker.
If found that after the crash the web GUI at 8080 is unavailable, but the raw camera stream is available at 8090.
The full log is available in the attached file.
(Unrelated to this issue I also saw cases where the Darknet API responds with multiple frames in one go and the parser throws an error because the JSON is invalid. I don't know if this is a Darknet issue or OpenDataCam.)
odc_crash.log
Beta Was this translation helpful? Give feedback.
All reactions