Course Builder Deployment - "Could not guess mimetype"

352 views
Skip to first unread message

Ben Cotten

unread,
Jan 21, 2017, 6:18:08 PM1/21/17
to Google App Engine
First, let me say, I have almost ZERO experience with Python or deploying apps to Google App Engine or cloud services.

I'm following their insructions, and have successfully deployed a local instance of Course Builder on my Windows machine.  No problem there.

But when I try running the script for deploying it to the cloud, I get errors at the end of the install saying "Could not guess mimetype" for a long a list of files.

ANY IDEAS?

  -Ben

Here is a full copy/paste from the terminal window:

================================
Removing GCB_ALLOW_STATIC_SERV set to ''
Sourced as: './scripts/common.sh'
Windows install; skipping test-related downloads.
Ensuring runtime folder /home/Ben/coursebuilder_resources_1_11_001/runtime
Using GAE SDK 1.9.40 from /home/Ben/coursebuilder_resources_1_11_001/runtime/goo                             gle_appengine
Using six-1.5.2 from /home/Ben/coursebuilder_resources_1_11_001/runtime/six
Using beautifulsoup4-4.4.1 from /home/Ben/coursebuilder_resources_1_11_001/runti                             me/beautifulsoup4
Using third party Python packages from /cygdrive/c/Users/Ben/Documents/coursebui                             lder/lib
Using yui-3.6.0 from /home/Ben/coursebuilder_resources_1_11_001/runtime/yui
Static serving enabled
Using current /cygdrive/c/Users/Ben/Documents/coursebuilder/static.yaml
01:17 PM Application: pest-university (was: mycourse); version: 1
01:17 PM Host: appengine.google.com
01:17 PM Starting update of app: pest-university, version: 1
01:17 PM Getting current resource limits.
01:17 PM Scanning files on local disk.
01:17 PM Scanned 500 files.
01:17 PM Scanned 1000 files.
01:17 PM Scanned 1500 files.
01:17 PM Scanned 2000 files.
01:17 PM Scanned 2500 files.
01:17 PM Scanned 3000 files.
Could not guess mimetype for lib/_static/yui_2in3-2.9.0/2in3-master/dist/2.9.0/build/assets/skins/sam/sprite.psd.  Using application/octet-stream.
Could not guess mimetype for lib/_static/underscore-1.4.3/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/underscore-1.4.3/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/bower.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/webcomponentsjs/build.log.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/webcomponentsjs/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-component-tester/browser.js.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-animations-js/COPYING.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-animations-js/History.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-animations-js/web-animations-next-lite.min.js.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-animations-js/web-animations-next.min.js.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/web-animations-js/web-animations.min.js.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/test-fixture/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/test-fixture/wct.conf.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/sw-toolbox/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/sw-toolbox/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/sw-toolbox/sw-toolbox.map.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/stacky/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/sinon-chai/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/promise-polyfill/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/promise-polyfill/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/prism/CHANGELOG.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/prism/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/prism/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/polymer/build.log.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/platinum-elements/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/platinum-bluetooth/LICENSE.  Using application/octet-stream.
01:17 PM Scanned 3500 files.
Could not guess mimetype for lib/_static/polymer-1.2.0/neon-animation/guides/neon-animation.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/mocha/CHANGELOG.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/mocha/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/Makefile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/component.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/man/marked.1.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/doc/broken.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/doc/todo.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/marked/bin/marked.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/lodash/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/API.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/tsconfig.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/typings.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/analyzer.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/error-swallowing-fs-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/file-loader.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/fs-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/noop-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/redirect-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/string-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/loader/xhr-resolver.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/analyze-properties.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/ast-value.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/behavior-finder.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/declaration-property-handlers.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/descriptors.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/docs.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/element-finder.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/esutil.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/feature-finder.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/fluent-traverse.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/import-parse.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/js-parse.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/src/ast-utils/jsdoc.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/doctrine.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/dom5.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/escodegen.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/espree.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/estraverse.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/estree.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/hydrolysis/custom_typings/main.d.ts.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-youtube-upload/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-youtube/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-streetview-pano/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-signin/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-sheets/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-map/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-hangout-button/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-feeds/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-chart/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-castable-video/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-calendar/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-apis/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/google-analytics/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/ga-api-utils/CHANGELOG.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/ga-api-utils/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/ga-api-utils/Makefile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/ga-api-utils/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/cors-upload-sample/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/chai/CODE_OF_CONDUCT.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/chai/History.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/chai/ReleaseNotes.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/chai/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/CHANGELOG.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/Makefile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/component.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/async/dist/async.min.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/accessibility-developer-tools/Changelog.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/polymer-1.2.0/accessibility-developer-tools/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/material-design-iconic-font-1.1.1/License.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/material-design-iconic-font-1.1.1/fonts/Material-Design-Iconic-Font.eot.  Using application/octet-stream.
01:17 PM Scanned 4000 files.
Could not guess mimetype for lib/_static/dependo-0.1.4/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dependo-0.1.4/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dependo-0.1.4/orig/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dependo-0.1.4/orig/readme.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dependo-0.1.4/orig/bin/dependo.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/AUTHORS.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/Gemfile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/Guardfile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/bower.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/dc.min.js.map.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/make.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dc.js-1.6.0/dc.js-1.6.0/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dagre-d3-0.4.17p/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dagre-d3-0.4.17p/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dagre-0.7.4/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/dagre-0.7.4/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/d3-3.4.3/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/CONTRIBUTING.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/LICENSE.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/Makefile.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/README.md.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/component.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/package.json.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/lib/dart/AUTHORS.  Using application/octet-stream.
Could not guess mimetype for lib/_static/crossfilter-1.3.7/crossfilter-1.3.7/lib/dart/LICENSE.  Using application/octet-stream.
Error 404: --- begin server output ---
This application does not exist (project_id=u'pest-university'). To create an App Engine application in this project, run "gcloud beta app create" in your console.
--- end server output ---

=========================================

Josh Moore

unread,
Jan 22, 2017, 12:56:02 AM1/22/17
to google-a...@googlegroups.com
This seems related to a third-party set of code.  Can you link to the "Course Builder" you're trying to deploy?


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9f7afe7f-3397-4cc1-ba48-45ee993196ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Josh Moore | Cloud Solutions Engineer | josh...@google.com | 

Adam (Cloud Platform Support)

unread,
Jan 22, 2017, 7:22:08 PM1/22/17
to google-a...@googlegroups.com
So, your deployment isn't actually failing because of the MIME type messages, which are actually just warnings. Your deployment fails because of this:

This application does not exist (project_id=u'pest-university'). To create an App Engine application in this project, run "gcloud beta app create" in your console.

You need to run the 'gcloud beta app create' command first on a new project, or go through the app creation flow in the Cloud Console under 'App Engine' (running the command is easier).

As for those warnings, I believe a large part of it is due to Python's 'mimetypes' module (which is used by the SDK) not being very good at guessing MIME types on Windows. Someone else who is more knowledgeable might chime in about that. To get around it, you can use the 'mime_types' element in app.yaml to specify a MIME type for a URL path, but it only really matters if you're planning to serve those files as static files. As an overly simplistic example:

- url: static/(.*\.json)
  static_files
: static/\1
  upload
: static/(.*\.json)
  mime_type
: application/json

Otherwise, you can probably ignore those messages.

On Sunday, January 22, 2017 at 12:56:02 AM UTC-5, joshuamo wrote:
This seems related to a third-party set of code.  Can you link to the "Course Builder" you're trying to deploy?

Sabrina Espasandin

unread,
Jan 11, 2018, 9:39:08 AM1/11/18
to Google App Engine
Hi, Adam

I ran into the same problem, but I'm unsure as to how to run the gcloud beta app create command. When I type it in the terminal I get an error message: 

-bash: gcloud: command not found


Any help would be very much appreciated.

To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.



--


Monique Wilhelm

unread,
Mar 12, 2018, 9:04:49 AM3/12/18
to Google App Engine
Did you download the google cloud sdk shell?  That is the point at which I am getting stuck.

Loretta Rafay

unread,
Apr 3, 2018, 9:04:45 AM4/3/18
to Google App Engine
Adam, thank you, this was helpful to me.  I chose to do the "go through the app creation flow in the Cloud Console" recommendation, because I suck at the command line, and now everything works.  Thank you!!!
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.



--


Loretta Rafay

unread,
Apr 3, 2018, 9:04:45 AM4/3/18
to Google App Engine
I'm also having this same problem.

Uffa Modey

unread,
Apr 21, 2019, 4:08:13 PM4/21/19
to Google App Engine
Thank you Adam. This was extremely helpful. I was also getting this error message. I followed the app creation flow in the Cloud Console under 'App Engine'  and I have now successfully set up course builder
To unsubscribe from this group and stop receiving emails from it, send an email to google-a...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.



--


Reply all
Reply to author
Forward
0 new messages