Archive too big. Must be <= 1048576 bytes
Dear Develop team, When I push template. I have issue "Archive too big. Must be <= 1048576 bytes", and I want to fixed it. Could you help me?
Best regards,
Ben.Ng
Solution:Jump to solution
I agree, but it's currently not possible to modify that limit and generally not wise because it goes beyond what the in-database storage was intended for and will likely hinder performance
10 Replies
<#1284058437751144468>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey @Ben.Ng, do you have any particularly big files in the template ?
Dear @Phorcys . I have two folders with sizes 1.31GB and 99.9MB. Has the Enterprise version fix this bug?
hey, this is not a bug and intended behavior, every template version is stored in the database, so if bigger sizes were allowed then you would very rapidly have a huge storage usage
may I ask what those folders are?
if these folders are only used for building the Docker image and are absolutely necessary, then the recommended way is to build the images outside of Coder and push them to a registry first, then configure your template to pull those
Dear @Phorcys , They are One Appimage file and one Zip file supporting the Application.
I suggest that you either download them from a file server during the image build process or push to a registry as mentioned before
Dear @Phorcys "if larger sizes are allowed you will quickly have large storage
may I ask what those folders are?" In this opinion, I am allowed to modify the template size rule.
Solution
I agree, but it's currently not possible to modify that limit and generally not wise because it goes beyond what the in-database storage was intended for and will likely hinder performance
Dear @Phorcys , thank sir
let me know if you need any help!