Picture of Jason Chui
Preview stuck at loading screen
by Jason Chui - Tuesday, 3 September 2019, 6:49 AM
 

I am using the AT v0.10.0, framework 3.0.0, and mongodb 3.6

This is a newly upgraded AT. The previous installation works fine.

Now, when I click on preview, I will be stuck at the loading screen (The one with the loading circle and the word "Loading..." on top.) I am simply trying with the default course given when I click on create new course.

Initially I had an error message that says theme not defined. So I went to theme picker to choose a theme. 

Having specified a theme at the theme picker (I chose Vanilla), now I don't even get an error message. The command prompt says "All assets processed" and "Retrieving JSON" if I don't switch themes. If I switched themes e.g. from Vanilla to Adapt Community, I see the loading completed in 3.8s, but the loading is still stuck.

I have tried Chrome and Firefox to no avail...

Please help! This is the console output:

C:\adapt_authoring>node server
info [03 Sep 19 14:42:06 +08:00] configuration loaded from C:\adapt_authoring\conf\config.json
info [03 Sep 19 14:42:06 +08:00] Supporting the following authentication types:
info [03 Sep 19 14:42:06 +08:00] - local
info [03 Sep 19 14:42:08 +08:00] Connection established: adapt-tenant-master
info [03 Sep 19 14:42:08 +08:00] Adapt authoring tool 0.10.0.
info [03 Sep 19 14:42:08 +08:00] Adapt framework 3.0.0.
info [03 Sep 19 14:42:08 +08:00] Server started listening on port 80
info [03 Sep 19 14:42:36 +08:00] Retrieving JSON
info [03 Sep 19 14:42:36 +08:00] All assets processed
info [03 Sep 19 14:43:41 +08:00] Retrieving JSON
info [03 Sep 19 14:43:41 +08:00] All assets processed
info [03 Sep 19 14:45:54 +08:00] Event:rebuildCourse triggered for Tenant: 5a1e7d0672f0ec3822230bb4 Course: 5d6e0a00a25e3d0e1c0bbc84
info [03 Sep 19 14:45:54 +08:00] Writing build to C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\.rebuild
info [03 Sep 19 14:45:54 +08:00] Event:rebuildCourse triggered for Tenant: 5a1e7d0672f0ec3822230bb4 Course: 5d6e0a00a25e3d0e1c0bbc84
info [03 Sep 19 14:45:54 +08:00] Writing build to C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\.rebuild
info [03 Sep 19 14:45:54 +08:00] Event:rebuildCourse triggered for Tenant: 5a1e7d0672f0ec3822230bb4 Course: 5d6e0a00a25e3d0e1c0bbc84
info [03 Sep 19 14:45:54 +08:00] Writing build to C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\.rebuild
info [03 Sep 19 14:45:54 +08:00] Event:rebuildCourse triggered for Tenant: 5a1e7d0672f0ec3822230bb4 Course: 5d6e0a00a25e3d0e1c0bbc84
info [03 Sep 19 14:45:54 +08:00] Writing build to C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\.rebuild
info [03 Sep 19 14:45:54 +08:00] Event:rebuildCourse triggered for Tenant: 5a1e7d0672f0ec3822230bb4 Course: 5d6e0a00a25e3d0e1c0bbc84
info [03 Sep 19 14:45:54 +08:00] Writing build to C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\.rebuild
info [03 Sep 19 14:45:59 +08:00] Retrieving JSON
info [03 Sep 19 14:46:00 +08:00] All assets processed
info [03 Sep 19 14:46:00 +08:00] 3.1. Ensuring framework build exists
info [03 Sep 19 14:46:00 +08:00] 3.2. Using theme: 5a1e806c53f9708c1f49bd69
info [03 Sep 19 14:46:00 +08:00] 3.3. Using menu: false
info [03 Sep 19 14:46:00 +08:00] grunt server-build:prod --outputdir=courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build --theme=5a1e806c53f9708c1f49bd69 --menu=false
info [03 Sep 19 14:46:05 +08:00] stdout: Running "server-build:prod" (server-build) task

Running "_log-vars" task
The following will be included in the build:
- 5a1e806c53f9708c1f49bd69
- adapt-contrib-text

>> Using source at "C:\adapt_authoring\temp\5a1e7d0672f0ec3822230bb4\adapt_framework\src\"
>> Building to "courses\5a1e7d0672f0ec3822230bb4\5d6e0a00a25e3d0e1c0bbc84\build\"
>> Using theme "5a1e806c53f9708c1f49bd69"

Running "build-config" task

Running "copy:index" (copy) task
Copied 1 file

Running "copy:coreAssets" (copy) task
Created 1 directory, copied 3 files

Running "copy:componentAssets" (copy) task


Running "copy:componentFonts" (copy) task


Running "copy:extensionAssets" (copy) task


Running "copy:extensionFonts" (copy) task


Running "copy:menuAssets" (copy) task


Running "copy:coreFonts" (copy) task
Copied 2 files

Running "copy:menuFonts" (copy) task


Running "copy:themeAssets" (copy) task
Created 1 directory, copied 23 files

Running "copy:themeFonts" (copy) task
Created 1 directory, copied 5 files

Running "copy:scriptLoader" (copy) task
Copied 1 file

Running "copy:libraries" (copy) task
Copied 17 files

Running "copy:required" (copy) task


Running "less:compile" (less) task
screen size: { small: 519, medium: 759, large: 1024 }

Running "handlebars:compile" (handlebars) task
>> 1 file created.

Running "javascript:compile" (javascript) task

Running "replace:dist" (replace) task

Running "scripts:adaptpostbuild" (scripts) task

Done.


Execution Time (2019-09-03 06:46:01 UTC)
loading tasks 101ms ██ 3%
build-config 329ms ████ 9%
copy:componentAssets 152ms ██ 4%
copy:componentFonts 110ms ██ 3%
copy:extensionAssets 88ms █ 2%
copy:extensionFonts 80ms █ 2%
copy:themeAssets 95ms █ 2%
copy:libraries 54ms █ 1%
copy:required 559ms ██████ 15%
less:compile 691ms ████████ 18%
handlebars:compile 486ms █████ 13%
javascript:compile 873ms █████████ 23%
loading grunt-replace 60ms █ 2%
Total 3.8s

Picture of Tom Greenfield
Re: Preview stuck at loading screen
by Tom Greenfield - Tuesday, 3 September 2019, 8:06 AM
 
info [03 Sep 19 14:46:00 +08:00] 3.3. Using menu: false

Have you tried selecting a menu?

Picture of Jason Chui
Re: Preview stuck at loading screen
by Jason Chui - Tuesday, 3 September 2019, 8:28 AM
 

Omg... I feel so dumb.

Thanks! It works now!