Bug Report: Updated Terms of Use

101 views
Skip to first unread message

b0rgBart

unread,
Jun 23, 2015, 8:34:55 PM6/23/15
to canvas-l...@googlegroups.com
Hi there - 

I seem to be experiencing a BUG with the new "Terms of Service" agreement.

The problem happens when I click the checkbox on "I agree to the terms of use and privacy policy"... and click Submit.
Instead of getting routed to a real page, I get code showing up in the browser that reads like this:

while(1);{"id":1,"name":"email","sortable_name":"email","short_name":"email","login_id":"email","locale":null,"permissions":{"can_update_name":true,"can_update_avatar":false}}


I replaced the email addresses with just 'email' for the sake of this posting -- -so that's not the source of the problem here.

Being new to both Canvas and Rails, I'm not sure exactly what's happening, but I'm guessing that there's some little typo in the code that accepts the terms of use agreement, and that is keeping the whole rest of the app from working.

Thanks for your help on this!







Fabricio Costi

unread,
Jun 25, 2015, 1:45:48 AM6/25/15
to canvas-l...@googlegroups.com
Experiencing the same issue (fresh deployment).

Fabricio Costi

unread,
Jun 25, 2015, 1:49:11 AM6/25/15
to canvas-l...@googlegroups.com

On Wednesday, June 24, 2015 at 10:34:55 AM UTC+10, b0rgBart wrote:

Fabricio Costi

unread,
Jun 25, 2015, 1:56:12 AM6/25/15
to canvas-l...@googlegroups.com
While submitting, apache error.log:

...

[Thu Jun 25 05:50:31.618989 2015] [mpm_event:notice] [pid 1188:tid 139697625814912] AH00491: caught SIGTERM, shutting down

[ 2015-06-25 05:50:32.7314 2298/7f8627d69780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '2297', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }

[ 2015-06-25 05:50:32.7899 2301/7f013fded780 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.2297/generation-0/request

[ 2015-06-25 05:50:32.8425 2306/7fe3ced4d780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.2297/generation-0/logging

[ 2015-06-25 05:50:32.8429 2298/7f8627d69780 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!

[ 2015-06-25 05:50:32.8906 2321/7fe64540f780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.37', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.37', 'web_server_pid' => '2318', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }

[ 2015-06-25 05:50:32.9159 2324/7f2c6252b780 agents/HelperAgent/Main.cpp:643 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.2318/generation-0/request

[ 2015-06-25 05:50:32.9251 2329/7fa36130f780 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.2318/generation-0/logging

[Thu Jun 25 05:50:32.927781 2015] [mpm_event:notice] [pid 2318:tid 139986647832448] AH00489: Apache/2.4.7 (Ubuntu) Phusion_Passenger/4.0.37 OpenSSL/1.0.1f configured -- resuming normal operations

[Thu Jun 25 05:50:32.927873 2015] [core:notice] [pid 2318:tid 139986647832448] AH00094: Command line: '/usr/sbin/apache2'

[ 2015-06-25 05:50:32.9279 2321/7fe64540f780 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started!

App 2441 stdout: 

App 2441 stderr: /var/canvas/vendor/bundle/ruby/1.9.1/bundler/gems/rails-b344986bc3d9/activesupport/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

[ 2015-06-25 05:51:28.5112 2324/7f2c62434700 Pool2/SmartSpawner.h:301 ]: Preloader for /var/canvas started on PID 2441, listening on unix:/tmp/passenger.1.0.2318/generation-0/backends/preloader.2441

App 2537 stdout: 

App 2545 stdout: 

[ 2015-06-25 05:51:30.8379 2324/7f2c62434700 Pool2/SmartSpawner.h:689 ]: An error occurred while spawning a process: An error occurred while starting the web application. It exited before signalling successful startup back to Phusion Passenger.

[ 2015-06-25 05:51:30.8379 2324/7f2c62434700 Pool2/SmartSpawner.h:690 ]: The application preloader seems to have crashed, restarting it and trying again...

App 2441 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb:67:in `fork'

App 2441 stderr: : 

App 2441 stderr: Cannot allocate memory - fork(2)

App 2441 stderr:  (

App 2441 stderr: Errno::ENOMEM

App 2441 stderr: )

App 2441 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb:67:in `accept_and_process_next_client'

App 2441 stderr: from /usr/lib/ruby/vendor_ruby/phusion_passenger/preloader_shared_helpers.rb:117:in `run_main_loop'

App 2441 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:159:in `<module:App>'

App 2441 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'

App 2441 stderr: from /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'

App 2561 stdout: 

[ 2015-06-25 05:51:35.0241 2324/7f2c62518700 Pool2/Pool.h:777 ]: Process (pid=2545, group=/var/canvas#default) no longer exists! Detaching it from the pool.

App 2561 stderr: /var/canvas/vendor/bundle/ruby/1.9.1/bundler/gems/rails-b344986bc3d9/activesupport/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.


...

no errors on canvas_*.log files and displays the code mentioned by b0rgBart on the browser.



On Wednesday, June 24, 2015 at 10:34:55 AM UTC+10, b0rgBart wrote:

Graham Ballantyne

unread,
Jun 25, 2015, 1:58:53 AM6/25/15
to canvas-l...@googlegroups.com
It looks like Passenger is throwing a no-memory error:

App 2441 stderr: Cannot allocate memory - fork(2)
App 2441 stderr:  (
App 2441 stderr: Errno::ENOMEM
App 2441 stderr: )

How much RAM have you got on your server?

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fabricio Costi

unread,
Jun 25, 2015, 1:59:55 AM6/25/15
to canvas-l...@googlegroups.com
2GB

Fabricio Costi

unread,
Jun 25, 2015, 2:02:12 AM6/25/15
to canvas-l...@googlegroups.com
Just resized the instance to 4GB of RAM and getting the same error.

Fabricio Costi

unread,
Jun 25, 2015, 2:06:06 AM6/25/15
to canvas-l...@googlegroups.com
restarted once again the server (with 4GB of RAM) and those error messages are gone from error.log, yet the terms of use bug persists.

Fabricio Costi

unread,
Jun 25, 2015, 2:25:58 AM6/25/15
to canvas-l...@googlegroups.com
this happens regardless of your choice (whether ticking or not the accept box) and click on submit.


On Wednesday, June 24, 2015 at 10:34:55 AM UTC+10, b0rgBart wrote:

b0rgBart

unread,
Jun 29, 2015, 7:59:27 PM6/29/15
to canvas-l...@googlegroups.com
I'm still having this problem with the "TERMS OF SERVICE" dialog box - blocking my entry into the canvas system
that I have just installed (using the QuickStart Guide).

I'm wondering if it has something to do with the NPM assets that I had trouble installing?

(see screenshot).
canvas_install.png

Fabricio Costi

unread,
Jun 29, 2015, 8:06:24 PM6/29/15
to canvas-l...@googlegroups.com
I don't think so.

I'm also still having this issue and my setup completed without errors (twice).

When installed from the quick start script it works fine, but when using the production instructions this issue happens.

Wiped out my instance, started from scratch following carefully the production instructions and same thing happening...
Message has been deleted

Mark Wong

unread,
Jul 6, 2015, 12:15:05 AM7/6/15
to canvas-l...@googlegroups.com
I ran into the same issue and posted on their GithHub.  They are working on this bug and gave us a workaround to bypass the TOS page for now.  Take a look at https://github.com/instructure/canvas-lms/issues/654

Bart Dority

unread,
Jul 8, 2015, 12:26:02 AM7/8/15
to canvas-l...@googlegroups.com
Thank you Mark!  This work-around is exactly what I needed!



Reply all
Reply to author
Forward
0 new messages