Cannot start container


#1

Hi, I downloaded docker, and the CS-50 container, when I started doing the MOOC from Harvard.

All was running well (apart from the debugger which was intermittent even on c9.io ), until last week, when I left for some work and turned it off…

Turn it back on, when I get home and am presented with a pop-up error…

TypeError: 'undefined' is not an object (evaluating 'menus.get("Cloud9/Quit Cloud9").item.setAttribute')

… and a forever spinning wheel.

The Firefox developer tools shows… (rows of dots to separate items on same line)

Unexpected end of file while searching for closing } of invalid rule set. ...................................................................... ide.html:2:33

With error details being given as
<anonymous>.............................. ide.html:155 EventEmitter.prototype.emit()............ events.js:89 startPlugins()....................... architect.js:473 startPlugins()....................... architect.js:478 register()........................... architect.js:509 main/<()................................ preload.js:77 getTheme/<()............................ preload.js:58 _require()........................ mini_require.js:232 processLoadQueue/<().............. mini_require.js:131 processLoadQueue()................ mini_require.js:122 cb().............................. mini_require.js:626 loadText/xhr.onload()............. mini_require.js:419

and…

Expected ':' but found ';'. Declaration dropped. ......................... ide.html

as the second error, with details listed as
app<()................................ ide.html:147 done()............................ architect.js:592 EventEmitter.prototype.emit()......... events.js:89 startPlugins().................... architect.js:473 startPlugins().................... architect.js:478 register()........................ architect.js:509 main/<()............................. preload.js:77 getTheme/<()......................... preload.js:58 _require()..................... mini_require.js:232 processLoadQueue/<()........... mini_require.js:131 processLoadQueue()............. mini_require.js:122 cb()........................... mini_require.js:626 loadText/xhr.onload().......... mini_require.js:419

… as the last errors before the popup appears.

Both of these errors were accompanied by the following block of text…
loadMainMenuInfo@http://192.168.x.x:5050/static/plugins/c9.ide.cs50.simple/simple50.js:397:13 load@http://192.168.x.x:5050/static/plugins/c9.ide.cs50.simple/simple50.js:596:13 main/<@http:/192.168.x.x:5050/static/plugins/c9.ide.cs50.simple/simple50.js:635:13 EventEmitter.prototype.emit@http://192.168.x.x:5050/static/lib/events.js:73:1 load@http://192.168.x.x:5050/static/plugins/c9.core/ext.js:492:17 Plugin/<.name@http://192.168.x.x:5050/static/plugins/c9.core/ext.js:793:25 @http://192.168.x.x:5050/ide.html:166:25 EventEmitter.prototype.emit@http://192.168.x.x:5050/static/lib/events.js:81:27 register/<@http://192.168.x.x:5050/static/lib/architect/architect.js:501:17 register@http://192.168.x.x:5050/static/lib/architect/architect.js:486:13 main@http://192.168.x.x:5050/static/plugins/c9.ide.cs50.simple/simple50.js:652:9 startPlugins@http://192.168.x.x:5050/static/lib/architect/architect.js:470:17 startPlugins@http://192.168.x.x:5050/static/lib/architect/architect.js:478:21 register@http://192.168.x.x:5050/static/lib/architect/architect.js:509:13 main/<@http://192.168.x.x:5050/static/plugins/c9.ide.layout.classic/preload.js:77:1 getTheme/<@http://192.168.x.x:5050/static/plugins/c9.ide.layout.classic/preload.js:58:21 _require@http://192.168.x.x:5050/static/mini_require.js:232:32 processLoadQueue/<@http://192.168.x.x:5050/static/mini_require.js:131:13 processLoadQueue@http://192.168.x.x:5050/static/mini_require.js:122:5 cb@http://192.168.x.x:5050/static/mini_require.js:626:9 loadText/xhr.onload@http://192.168.x.x:5050/static/mini_require.js:419:9

After I clear the error, occasionally I see a red warning tab briefly appear about missing languages (although I have seen that during working sessions, it is mentioned just in case is has relevance )…

Errors reported to the console then include a whole bunch of HTTP 499 errors…

`HTTP error 499: … … http-xhr.js:126:25

VFS connection does not exist

Client Closed Request

499 - standalone VFS connection does not exist

This error has been logged. We will investigate this further and will prevent this from happening in the future. If this error persists please don't hesitate to contact support.

`

which is then followed by what appear to be reconnection tries and disconnections…

Socket close; reconnecting: ping timeout ...................................................................client.js:83:17 Schedule re-connect in: 250 ...................................................................client.js:107:9 PubSub disconnected ....................................... pubsub-client.js:74:13 Error: EDISCONNECT: Client disconnected? ..................................................................vfs.ping.js:29:1 Error: EDISCONNECT: Client disconnected? ................................................................... bridge.js:31:1 Error: EDISCONNECT: Client disconnected? ............................................................ pubsub-client.js:38:1 Error connecting to the terminal: Error: EDISCONNECT: Client disconnected? .........................................................tmux_connection.js:193:17 Error opening Terminal: EDISCONNECT: Client disconnected? ........................................................ tmux_connection.js:285:21 Reconnecting while already connected/connecting. Abort ......................................................... tmux_connection.js:30:13 GET http://192.168.x.x:5050/static/plugins/c9.ide.layout.classic/images/file-tree-load-spinner-dark-unfocus_flat_light.gif ................[HTTP/1.1 304 Not Modified 4ms] PubSub connected ............................................pubsub-client.js:43:21

Which is where it has sat for the duration of completing this post… and the browser window remains with the logo, spinning wheel, and a not very useful link to the current status of the online c9 servers in the bottom right corner.

Software it was happily running on is
os: OpenSUSE 13.2
kernel 4.4.4-4.1-g0c1f87e-default X86_64,
docker 1.91-52.1

Any suggestions?


#2

Where from did you download that container?
Seems like some of your plugins were updated, and some were not.


#3

I downloaded it after I installed docker by using the following command from the cs50 course support materials… docker run -e "OFFLINE_IP=$(docker-machine ip default)" -e "OFFLINE_PORT=8080" --name cs50ide -d -p 5050:5050 -p 8080:8080 cs50/ide50-offline

So I can only assume it is from some ‘official’ docker repository, and that that command just configured ports and ‘phoned home’ to get the ‘cs50/ide50-offline’ container.

I then updated it using it’s own update50 command as advised by course documentation. It was running fine after the first update, and I had definitely restarted the machine since I originally installed and updated it - I only turn it off when I leave home for more than a day or so, but can’t say that I had turned it off since the last update I ran (they seemed to do nothing, and offer the same 13MB update file time and time again) so I didn’t bother restarting the container after seeing the same sized file update the same programs… Maybe that was my undoing…

As an aside, I thought I’d try and provide enough info to give someone a vague clue what was up, but how did you spot plugin versions?


#4

but how did you spot plugin versions

“Cloud9/Quit Cloud9” menu item was changed recently, so i thought 'undefined' is not an object error may be caused by that


#5

Ahh…

No sign of interest from cs50 devs, but unsure where problem lies… You altered an item, and their container broke?

Found a drity workaround on Firefox - deleted the ‘loadingcontainer’ div element after dismissing the error.


#6

You altered an item, and their container broke?

yes cs50 was trying to hide that item, but now it gets undefined. So my guess is that part of plugins on your container is updated and part isn’t.

I just tried installing docker image using the command you gave me and new install doesn’t show any errors.
What do you see when running cat /var/c9sdk/package.json | grep version? did you try docker restart?


#7

div named “loadingide” also needs to be deleted. (forgot to mention that one)

The plain container is OK - As mentioned in post #3 (2 paragraphs below the install command ) it is after running the ‘Update50’ command (which is in the /usr/bin/ directory - and is a few apt-get commands strung together) - and restarting the docker container - that it fails.

That command returns “version”: “3.1.2161”,


#8

Yes - I did try docker restart - it was after turning it off for a few days and firing up machine that I first encountered the issue - and I also turned docker off and on again after getting the same result after stopping docker, entirely wiping everything under /var/lib/docker/ and then running a new container download followed by update. (although it was more like a minute as opposed to days).

Complete logfile - no update has been run since the error appeared.

sudo cat /home/ubuntu/lib/ide50.log

Update50 - Tue, 12 Apr 2016 03:11:54 +0000
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://mirror.cs50.net  InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty Release
Get:3 https://deb.nodesource.com trusty InRelease
Get:4 http://archive.ubuntu.com trusty-updates/main Sources [341 kB]
Get:5 http://archive.ubuntu.com trusty-updates/restricted Sources [5217 B]
Get:6 http://archive.ubuntu.com trusty-updates/universe Sources [192 kB]
Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [945 kB]
Hit http://mirror.cs50.net  Packages
Get:8 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [23.5 kB]
Get:9 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [462 kB]
Get:10 https://deb.nodesource.com trusty/main Sources
Get:11 http://archive.ubuntu.com trusty-security/main Sources [140 kB]
Get:12 https://deb.nodesource.com trusty/main amd64 Packages
Get:13 http://archive.ubuntu.com trusty-security/restricted Sources [3920 B]
Get:14 http://archive.ubuntu.com trusty-security/universe Sources [40.5 kB]
Get:15 http://archive.ubuntu.com trusty-security/main amd64 Packages [566 kB]
Get:16 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [20.2 kB]
Get:17 http://archive.ubuntu.com trusty-security/universe amd64 Packages [164 kB]
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Fetched 3041 kB in 17s (174 kB/s)
Reading package lists...
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_restricted_source_Sources.gz is not what the server reported 5217 5219
W: Size of file /var/lib/apt/lists/deb.nodesource.com_node%5f0.10_dists_trusty_main_binary-amd64_Packages.gz is not what the server reported 929 930
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libc-ares2 libv8-3.14.5
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 74 not upgraded.
Need to get 13.0 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirror.cs50.net/ide50/2015/dists/trusty/main/binary-amd64/  ide50 53 [13.0 MB]
Fetched 13.0 MB in 20s (630 kB/s)
(Reading database ... 40024 files and directories currently installed.)
Preparing to unpack .../archives/ide50_53_amd64.deb ...
Unpacking ide50 (53) over (53) ...
Setting up ide50 (53) ...
Resetting permissions ...
Setting configuration files ...
Setting up MySQL ...
Updating Cloud9 SDK ...

All done! <3
Please reload your workspace to get the latest updates!`

#9

I am aware that it may well be unrelated, however, a user here https://www.reddit.com/r/cs50/comments/4eumhm/my_pset_folders_are_gone/

Reported their workspace clearing immediately after an update using ‘update50’.

All other reports I have seen involve hibernation, whereas that was a currently active workspace.

It might give an indication in your workspace wiping issue.


#10

Genius option, getting rid of that div… Worked for me!!