-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Issue using canvas:compile | Parallel::UndumpableException: FrozenError: can't modify frozen Array #2303
Comments
Having the exact same problem... I've tried the prod and all the recent stable branches and master branch with no luck. Also had no luck with their docker script. |
I'm not sure if it's related, but I had the same issue before, |
I recently installed canvas in a self-hosted vm instance. Despite the problem doesn't seem the same, just running If you google the error, all the issues are canvas related, so I guess that they are wrapping a memory error with that exception. It seems that js:webpack_production is a task with heavy memory requirements and that's why it fails often to compile. |
I'm trying to put together a production Dockerfile, but I'm also verifying the steps in Ubuntu 22.04 VM. I got stuck on this as well, FrozenError, although in my case it's after
No change after deleting I used https://github.com/instructure/canvas-lms/archive/prod.tar.gz, I'd rather go for a concrete pinned version, but I don't know how to do it and existing guides differ quite a lot on how and what to download, often leading to 404 anyway. |
I had the same exact problem when using my own Dockerfile, and I gave up on it after a few tries. I decided to give it another try today, and following Production Start almost to the letter on the I'm going to try creating a Dockerfile again using the |
Just to be sure, could that error indicate a lack of memory? I'm no Rails/Ruby expert, but just from the message itself, I assume it's the source code problem. |
What are the memory requirements? It's quite a strange one. I'm a novice with ruby. I haven't picked this project back up for the last few months.
…________________________________
From: virgo47 ***@***.***>
Sent: Tuesday, 26 March 2024 8:00 pm
To: instructure/canvas-lms ***@***.***>
Cc: aidangibson ***@***.***>; Author ***@***.***>
Subject: Re: [instructure/canvas-lms] Issue using canvas:compile | Parallel::UndumpableException: FrozenError: can't modify frozen Array (Issue #2303)
Just to be sure, could that error indicate a lack of memory? I'm no Rails/Ruby expert, but just from the message itself, I assume it's the source code problem.
—
Reply to this email directly, view it on GitHub<#2303 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADCOZDG6ZMRTQVSIIGNACXLY2EFIHAVCNFSM6AAAAABCB7JNKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJZGUZDKNRRHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
EDIT: So my problem seems to be that I wanted to run this as Dockerfile step - but this step requires config/database.yml correctly configured and DB initalized. The error message is unbelievably cryptic, but the reason is simple and the step is shown AFTER DB initialization for good reason. |
I notice there's a line is the file/folder exist? maybe you can try to make a backup for it, removing it and run the compile assets command again |
I will have to give this a go over Easter, or in a few weeks time. There have been a few good pieces of input as of late to inspire me to give it another go.
…________________________________
From: Pero ***@***.***>
Sent: Thursday, March 28, 2024 10:36:03 PM
To: instructure/canvas-lms ***@***.***>
Cc: aidangibson ***@***.***>; Author ***@***.***>
Subject: Re: [instructure/canvas-lms] Issue using canvas:compile | Parallel::UndumpableException: FrozenError: can't modify frozen Array (Issue #2303)
I notice there's a line Managed item /home/science/canvas/node\_modules/plugin-bundles-generated.js isn't a directory or doesn't contain a package.json (see snapshot.managedPaths option) in your complete output log
is the file/folder exist? maybe you can try to make a backup for it, removing it and run the compile assets command again
—
Reply to this email directly, view it on GitHub<#2303 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADCOZDC4HN2ZHPO2TKJRVLLY2PQAHAVCNFSM6AAAAABCB7JNKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUG43TEMBVGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I'm still getting the same error, even after trying different versions of ruby and different branches... Did anyone have any luck fixing this? |
Unfortunately I didn't, which is a bit of a shame. I'm not sure I'll get more time to investigate before December.
…________________________________
From: Luiz Gustavo Nogara ***@***.***>
Sent: Wednesday, 22 May 2024 6:08 am
To: instructure/canvas-lms ***@***.***>
Cc: aidangibson ***@***.***>; Author ***@***.***>
Subject: Re: [instructure/canvas-lms] Issue using canvas:compile | Parallel::UndumpableException: FrozenError: can't modify frozen Array (Issue #2303)
I'm still getting the same error, even after trying different versions of ruby and different branches... Did anyone have any luck fixing this?
—
Reply to this email directly, view it on GitHub<#2303 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADCOZDDXLON5UHKWEM4CRYDZDOETTAVCNFSM6AAAAABCB7JNKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRTGE3DSNBTGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I was following the "quick" start for developers: And getting this Then I did later DB setup steps:
And then came back and did:
Now it only gives me a warning (unrelated to this issue):
The installation and set up process needs to be reviewed by "someone who knows what they are doing" (tm), and the order of steps etc. be adjusted. |
Summary:
Working through the installation guide for the simple install, and have reached an issue I can't for the life of me work out. I am trying to run Canvas LMS on Ubuntu Server 22.04.3 LTS.
When running
bundle exec rails canvas:compile_assets
or
bundle exec rake canvas:compile_assets
the compilation breaks with FrozenError.This error occurs in the Rails engine setup (as indicated by the path /var/lib/gems/3.1.0/gems/railties-7.0.8/lib/rails/engine.rb).
Specific Location of the Error:
It occurs at this point within canvas:compile_assets:
Steps to reproduce:
Follow the instructions at https://github.com/instructure/canvas-lms/wiki/Quick-Start
Run command
bundle exec rails canvas:compile_assets
Expected behavior:
Successful compilation of canvas-lms
Actual behavior:
FrozenError
Additional notes:
Compile Canvas Output.md
The text was updated successfully, but these errors were encountered: