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
10 Replies
Codercord
Codercord6d ago
<#1284058437751144468>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys6d ago
hey @Ben.Ng, do you have any particularly big files in the template ?
Ben.Ng
Ben.Ng6d ago
Dear @Phorcys . I have two folders with sizes 1.31GB and 99.9MB. Has the Enterprise version fix this bug?
Phorcys
Phorcys6d ago
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
Ben.Ng
Ben.Ng6d ago
Dear @Phorcys , They are One Appimage file and one Zip file supporting the Application.
Phorcys
Phorcys6d ago
I suggest that you either download them from a file server during the image build process or push to a registry as mentioned before
Ben.Ng
Ben.Ng6d ago
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.
Phorcys
Phorcys6d ago
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
Ben.Ng
Ben.Ng6d ago
Dear @Phorcys , thank sir
Phorcys
Phorcys6d ago
let me know if you need any help!
Want results from more Discord servers?
Add your server