CGI program sent malformed or too big (>16384 bytes) HTTP headers: [init_ca_bundle_stat

Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: [init_ca_bundle_stat: stat /common/certs/ca-bundle.crt: No such file or directory
plugin_package: /build/work/f8886cd74a16a2f0/os/RokuOS/Device/Source/Crypto/Random.cpp:47: void Roku::Random::initialize_mainapp(): Assertion `len == (int)sizeof(rint)’ failed.

Um.. Roku? Why can’t I package my application on your new Roku Express 4K+? I’ve done the genkey. I’ve done the packager. Then up comes this… How? Should I just use another device or is this something you haven’t included on the device? Is there some plugin/app I need to download from the Roku store to fix this? Obviously the firmware doesn’t include everything on this new device. Help.. lol.

I do have other devices but I want to package on this exact device. Is it possible?

If it’s brand new make sure you check for updates a few times. I’ve seen it where I check for updates and it seems to find something new even though I just checked for updates a minute earlier. Not much could possibly work if “/common/certs/ca-bundle.crt” is missing.

Still same problem. No update available still cannot package anything.

Works fine on my other Roku Express non-4K, my other 2 Roku TV 4K, and the other 3 Roku Ultra. Also works fine on Roku Streaming Stick+. It just isn’t working to package on the device I want to target…

Roku Express 4K+ 3941X
10.01 - build 4180-CR

I still think that “stat /common/certs/ca-bundle.crt: No such file or directory” looks awfully suspicious. Did you try something like “?listdir(“common:/certs/”)” from within the console?

We have to get someone like @RokuJonathanD to look into it since he seems to be the only Roku employee that ever visits this forum.

same problem with my new express 4k+.

Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: [init_ca_bundle_stat: stat /common/certs/ca-bundle.crt: No such file or directory
plugin_package: /build/work/2ac1d87d0094fce3/os/RokuOS/Device/Source/Crypto/Random.cpp:47: void Roku::Random::initialize_mainapp(): Assertion `len == (int)sizeof(rint)' failed.
]  

X01600VX6EU3 (Roku Express 4K+ dev kit - 10.5.0.4174)

Last updated on 10/5/21.

Restart the 4K Roku express. After reboot go to the DEV page for the Roku development. After you log in to the DEV page on your Roku you can telnet into the Roku device on port 8085. While on telnet you can now try to push the package to the Roku. My 4K Roku Express started to accept packages after I did this.

thanks. no luck after a reboot, dev web UI login, telnet to 8085 (seeing the live log), re-cram.. packager still throws the same error.

my roku3 with 10.0 works fine… I haven’t tried my other 10.5 rokus

Me also facing the same problem. I try this but still the same problem.

Same here.

Hi, I’m experiencing this same issue.

Device:
Roku Express 4K+ 3941X - 10.5.0.4201

Did anyone get past this issue?? Same problem here.

Streaming Stick 4K

We’ve got a fix for this that will be released in 12.5 OS. Thanks!

@user1 Can I ask what you changed in 12.5? It broke my tool that a lot of QA people use. Thanks!

Experiencing this error on 4800X running 12.5.0 (build4178-C2). It occurs every now and then.

Did anyone find a solution to this?

Any update on this error here, still occurring after update 12.5 is applied to device

Same thing happened to me today and now I can’t package my channel. I’m working on a 4200X, version: 14.0.4. Should I wait for update or should I buy another device?

Error 500: Internal Server Error
CGI program sent malformed or too big (>16384 bytes) HTTP headers: [init_ca_bundle_stat: stat /common/certs/ca-bundle.crt: No such file or directory
plugin_package: RokuOS/ToolsLib/ToolsCryptoConcur/ToolsCryptoConcur.cpp:43: virtual int Roku::PlatformCryptoBase::getRandomBytes(unsigned char*, unsigned int): Assertion `f >= 0' failed.
]

Same here on a 4200X - Roku 3 with OS 14.04. I hope this is just a regression and will be fixed quickly. No one else has complained since November 2023.

@user1 , are you aware of the repeat occurrence of this issue?

I’ve also been experiencing this for a few months now. It’s not always reproducible BTW but is so annoying when it happens because I need to wait until it randomly fix again it could take a day.
Model: 3941RW
OS version: 14.0

We are aware of this issue and have an open ticket with one of our engineering teams to look into it. As of right now, we don’t have an ETA or a fix or a work around