Production failed: Build script returned non-zero exit code: 255


#1

Hello everyone,

I am totally new to this. What would this error mean?

    5:15:26 AM: Build started5:15:27 AM: Fetching cached dependencies5:15:27 AM: Expected build cache - but failed to find it5:15:28 AM: Failed to extract cache, continuing with build5:15:28 AM: No cached dependencies found. Cloning fresh repo5:15:28 AM: git lfs clone git@github.com:mrwullah/wasim5:15:29 AM: git remote rm origin5:15:30 AM: Preparing Git Reference refs/heads/master5:15:31 AM: Running build command: hugo --theme=WasimUllah5:15:32 AM: Downloading and installing node v6.11.3...5:15:33 AM: Downloading https://nodejs.org/dist/v6.11.3/node-v6.11.3-linux-x64.tar.xz...5:15:33 AM: 
                                                                           0.0%5:15:33 AM: 
                                                                           1.1%5:15:33 AM: 
###                                                                        4.9%5:15:33 AM: 
##############                                                            19.8%5:15:33 AM: 
##############################                                            42.0%5:15:34 AM: 5:15:34 AM: ######################################                                    53.4%5:15:34 AM: 
######################################################5:15:34 AM:                  75.3%5:15:34 AM: 5:15:34 AM: #############################################5:15:34 AM: ########################     97.0%5:15:34 AM: 
######################################################################## 100.0%5:15:34 AM: 5:15:34 AM: Computing checksum with sha256sum5:15:34 AM: Checksums matched!5:15:36 AM: Now using node v6.11.3 (npm v3.10.10)5:15:36 AM: Using version v6.11.3 of node5:15:36 AM: Using /opt/buildhome/.rvm/gems/ruby-2.1.25:15:36 AM: ERROR: 2017/09/11 00:15:36 hugo.go:421: Current theme does not support Hugo version 0.17. Minimum version required is 0.185:15:36 AM: Started building sites ...5:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:477: template: theme/partials/footer.html:9: function "now" not defined5:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html", "_internal/google_analytics.html", "theme/index.html", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/_default/list.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/share.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html" in theme/partials/footer.html5:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/partials/duoshuo.html", "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/google_analytics.html", "theme/index.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "theme/partials/post-list.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "_internal/opengraph.html", "theme/partials/share.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml" in theme/partials/footer.html5:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "theme/partials/share.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/_default/single.html", "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html", "theme/taxonomy/tag.terms.html", "_internal/google_analytics.html", "theme/index.html", "theme/partials/profile.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/schema.html", "_internal/google_news.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/_default/robots.txt", "theme/404.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html" in theme/partials/footer.html5:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/google_analytics.html", "theme/index.html", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/share.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html" in theme/partials/footer.html5:15:36 AM: Build complete: exit code: 2555:15:36 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/share.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html", "_internal/google_analytics.html", "theme/index.html", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html" in theme/partials/footer.html5:15:36 AM: Cleaning up docker container5:15:37 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/share.html", "_internal/shortcodes/highlight.html", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/_default/sitemapindex.xml", "_internal/google_analytics_async.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/vimeo.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html", "_internal/shortcodes/speakerdeck.html", "theme/index.html", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/google_analytics.html", "_internal/shortcodes/test.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html", "theme/partials/head.html" in theme/partials/footer.html5:15:37 AM: Error running command: Build script returned non-zero exit code: 2555:15:37 AM: ERROR: 2017/09/11 00:15:36 template.go:132: template: "theme/partials/footer.html" is an incomplete or empty template; defined templates are: "_internal/google_analytics.html", "theme/index.html", "theme/partials/profile.html", "theme/taxonomy/tag.terms.html", "_internal/shortcodes/ref.html", "_internal/shortcodes/test.html", "_internal/schema.html", "theme/partials/tagcloud.html", "theme/section/about.html", "_internal/shortcodes/relref.html", "_internal/shortcodes/youtube.html", "_internal/shortcodes/gist.html", "_internal/google_news.html", "theme/_default/list.html", "theme/partials/disqus.html", "theme/partials/github-issues-tip.html", "_internal/shortcodes/figure.html", "_internal/shortcodes/tweet.html", "_internal/pagination.html", "_internal/_default/robots.txt", "theme/404.html", "theme/partials/head.html", "theme/partials/latest-posts.html", "theme/partials/post-list.html", "_internal/shortcodes/highlight.html", "_internal/_default/sitemap.xml", "_internal/opengraph.html", "theme/partials/share.html", "_internal/_default/sitemapindex.xml", "_internal/disqus.html", "_internal/twitter_cards.html", "theme/partials/pagination.html", "theme/partials/social.html", "_internal/shortcodes/vimeo.html", "_internal/google_analytics_async.html", "theme/_default/single.html", "theme/partials/js.html", "theme/partials/nav.html", "_internal/shortcodes/speakerdeck.html", "_internal/_default/rss.xml", "theme/partials/duoshuo.html" in theme/partials/footer.html5:15:37 AM: Built site for language en:0 draft content0 future content0 expired content2 pages created0 non-page files copied1 paginator pages created0 tags created5:15:37 AM: 0 categories createdtotal in 16 ms5:15:37 AM: An error occurred while building the site, skipping the deploy and cache refresh.5:15:37 AM: Build script returned non-zero exit code: 2555:15:37 AM: Finished processing build request in 10.60921263s

It appears when I am deploying a website from Github.

Please help me resolve this issue. It’s urgent! Thank you


#2

I can’t read what you embedded. It scrolls way off the page. Looks like you’re having some template errors, of course, so the best thing to do is to simplify and isolate until you narrow down the error. There might be something more specific in there, but I really can’t tell.