jpanther/lynx

Build failed on Cloudflare Pages

jesb1n opened this issue · 2 comments

Language

English

What's the issue?

I have been trying to deploy lynx on Cloudflare pages and it fails every time. Any one can help me with this?

Theme version

1.1.0

Hugo version

0.54.0

Relevant Hugo log output

13:22:19.758	Initializing build environment. This may take up to a few minutes to complete
13:22:21.753	Success: Finished initializing build environment
13:22:21.753	Cloning repository...
13:22:23.465	Success: Finished cloning repository files
13:22:23.736	Installing dependencies
13:22:23.750	Python version set to 2.7
13:22:27.585	v12.18.0 is already installed.
13:22:28.957	Now using node v12.18.0 (npm v6.14.4)
13:22:29.292	Started restoring cached build plugins
13:22:29.308	Finished restoring cached build plugins
13:22:29.995	Attempting ruby version 2.7.1, read from environment
13:22:35.802	Using ruby version 2.7.1
13:22:36.164	Using PHP version 5.6
13:22:36.337	5.2 is already installed.
13:22:36.367	Using Swift version 5.2
13:22:36.369	Started restoring cached node modules
13:22:36.389	Finished restoring cached node modules
13:22:36.640	Installing NPM modules using NPM version 6.14.4
13:22:37.575	npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
13:22:40.471	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
13:22:40.471	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
13:22:40.472	
13:22:40.473	added 138 packages from 138 contributors and audited 139 packages in 2.935s
13:22:40.519	
13:22:40.519	17 packages are looking for funding
13:22:40.520	  run `npm fund` for details
13:22:40.520	
13:22:40.520	found 2 vulnerabilities (1 moderate, 1 critical)
13:22:40.520	  run `npm audit fix` to fix them, or `npm audit` for details
13:22:40.536	NPM modules installed
13:22:40.907	Installing Hugo 0.54.0
13:22:41.616	Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
13:22:41.620	Started restoring cached go cache
13:22:41.642	Finished restoring cached go cache
13:22:41.797	go version go1.14.4 linux/amd64
13:22:41.823	go version go1.14.4 linux/amd64
13:22:41.827	Installing missing commands
13:22:41.828	Verify run directory
13:22:41.828	Executing user command: hugo
13:22:41.862	Error: "/opt/buildhome/repo/i18n/fr.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category dev
13:22:41.862	map[translation:map[apple:Apple dev:DEV lastfm:Last.fm pinterest:Pinterest researchgate:ResearchGate slack:Slack telegram:Telegram kickstarter:Kickstarter twitch:Twitch whatsapp:WhatsApp twitter:Twitter youtube:YouTube email:Email flickr:Flickr google:Google reddit:Reddit tiktok:TikTok snapchat:Snapchat soundcloud:Soundcloud codepen:CodePen facebook:Facebook instagram:Instagram medium:Medium patreon:Patreon keybase:Keybase linkedin:LinkedIn mastodon:Mastodon tumblr:Tumblr discord:Discord link:Site internet microsoft:Microsoft orcid:ORCiD steam:Steam amazon:Amazon dribbble:Dribbble foursquare:Foursquare github:GitHub gitlab:GitLab] id:link]
13:22:41.871	Failed: build command exited with code: 255

Cloudflare uses a really outdated version Hugo by default. Try adding the HUGO_VERSION environment variable with the value 0.96.0. I don't think this will solve your issue, but it's worth a try and something is you should do anyway.

Yes. Tried the same and its working now.
Thank you.

Log:

19:52:59.639	Initializing build environment. This may take up to a few minutes to complete
19:53:01.613	Success: Finished initializing build environment
19:53:01.613	Cloning repository...
19:53:03.529	Success: Finished cloning repository files
19:53:03.788	Installing dependencies
19:53:03.801	Python version set to 2.7
19:53:07.786	v12.18.0 is already installed.
19:53:09.219	Now using node v12.18.0 (npm v6.14.4)
19:53:09.563	Started restoring cached build plugins
19:53:09.580	Finished restoring cached build plugins
19:53:10.286	Attempting ruby version 2.7.1, read from environment
19:53:16.265	Using ruby version 2.7.1
19:53:16.632	Using PHP version 5.6
19:53:16.805	5.2 is already installed.
19:53:16.833	Using Swift version 5.2
19:53:16.835	Started restoring cached node modules
19:53:16.855	Finished restoring cached node modules
19:53:17.098	Installing NPM modules using NPM version 6.14.4
19:53:18.071	npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
19:53:21.095	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
19:53:21.095	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
19:53:21.096	
19:53:21.098	added 138 packages from 138 contributors and audited 139 packages in 3.067s
19:53:21.147	
19:53:21.147	17 packages are looking for funding
19:53:21.147	  run `npm fund` for details
19:53:21.147	
19:53:21.147	found 2 vulnerabilities (1 moderate, 1 critical)
19:53:21.147	  run `npm audit fix` to fix them, or `npm audit` for details
19:53:21.163	NPM modules installed
19:53:21.530	Installing Hugo 0.96.0
19:53:22.824	hugo v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb+extended linux/amd64 BuildDate=2022-03-26T09:15:58Z VendorInfo=gohugoio
19:53:22.830	Started restoring cached go cache
19:53:22.854	Finished restoring cached go cache
19:53:23.021	go version go1.14.4 linux/amd64
19:53:23.043	go version go1.14.4 linux/amd64
19:53:23.047	Installing missing commands
19:53:23.048	Verify run directory
19:53:23.048	Executing user command: hugo
19:53:23.105	Start building sites … 
19:53:23.106	hugo v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb+extended linux/amd64 BuildDate=2022-03-26T09:15:58Z VendorInfo=gohugoio
19:53:23.117	
19:53:23.117	                   | EN  
19:53:23.117	-------------------+-----
19:53:23.117	  Pages            |  2  
19:53:23.117	  Paginator pages  |  0  
19:53:23.117	  Non-page files   |  0  
19:53:23.117	  Static files     |  7  
19:53:23.117	  Processed images |  0  
19:53:23.117	  Aliases          |  0  
19:53:23.117	  Sitemaps         |  1  
19:53:23.117	  Cleaned          |  0  
19:53:23.117	
19:53:23.118	Total in 30 ms
19:53:23.129	Finished
19:53:23.129	Note: No functions dir at /functions found. Skipping.
19:53:23.129	Validating asset output directory
19:53:23.657	Deploying your site to Cloudflare's global network...
19:53:28.260	Success: Your site was deployed!