reactjs / React.NET

.NET library for JSX compilation and server-side rendering of React components
https://reactjs.net/
MIT License
2.28k stars 940 forks source link

Fix deployment of site #1283

Open Daniel15 opened 2 years ago

Daniel15 commented 2 years ago

The old Netlify image we used is no longer available, and the current ones (Ubuntu 16.04 and 20.04) both fail:

11:18:23 PM: Build ready to start
11:18:27 PM: build-image version: 6ebfb829398e07eb99ad5455777162ff19838822 (xenial)
11:18:27 PM: build-image tag: v3.10.5
11:18:27 PM: buildbot version: 7eafb394e33f42f945c880ce4ac17c149867813a
11:18:27 PM: Building without cache
11:18:27 PM: Starting to prepare the repo for build
11:18:27 PM: No cached dependencies found. Cloning fresh repo
11:18:27 PM: git clone https://github.com/reactjs/React.NET
11:18:30 PM: Preparing Git Reference refs/heads/main
11:18:30 PM: Parsing package.json dependencies
11:18:31 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'site/jekyll' versus '' in the Netlify UI
11:18:31 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'site/jekyll/_site' versus '' in the Netlify UI
11:18:31 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'bundle exec jekyll build' versus '' in the Netlify UI
11:18:31 PM: Starting build script
11:18:31 PM: Installing dependencies
11:18:31 PM: Python version set to 2.7
11:18:32 PM: Downloading and installing node v8.17.0...
11:18:32 PM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz...
11:18:33 PM: Computing checksum with sha256sum
11:18:33 PM: Checksums matched!
11:18:35 PM: Now using node v8.17.0 (npm v6.13.4)
11:18:35 PM: Started restoring cached build plugins
11:18:35 PM: Finished restoring cached build plugins
11:18:35 PM: Attempting ruby version 2.7.2, read from environment
11:18:36 PM: Using ruby version 2.7.2
11:18:36 PM: Using bundler version 1.14.5 from Gemfile.lock
11:18:37 PM: Successfully installed bundler-1.14.5
11:18:37 PM: 1 gem installed
11:18:37 PM: Using PHP version 5.6
11:18:37 PM: Started restoring cached ruby gems
11:18:37 PM: Finished restoring cached ruby gems
11:18:37 PM: Installing gem bundle
11:18:38 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems.rb:932: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
11:18:40 PM: /opt/buildhome/.rvm/gems/ruby-2.7.2/gems/bundler-1.14.5/lib/bundler/rubygems_integration.rb:516: warning: in `eval'
Fetching gem metadata from https://rubygems.org/.........
11:18:40 PM: Fetching version metadata from [https://rubygems.org/..](https://rubygems.org/)
11:18:40 PM: Fetching dependency metadata from [https://rubygems.org/.](https://rubygems.org/)
11:18:40 PM: Unable to use the platform-specific () version of sprockets (2.12.4) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
11:18:40 PM: Unable to use the platform-specific () version of jekyll-assets (0.9.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
11:18:40 PM: Unable to use the platform-specific () version of nokogumbo (2.0.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again.
11:18:40 PM: Installing blankslate 2.1.2.4
11:18:41 PM: Installing sass 3.4.23
11:18:41 PM: Installing thor 0.19.4
11:18:41 PM: Installing fast-stemmer 1.0.2 with native extensions
11:18:42 PM: Installing colorator 0.1
11:18:42 PM: Installing highline 1.6.21
11:18:42 PM: Installing crass 1.0.6
11:18:42 PM: Installing ffi 1.9.18 with native extensions
11:18:51 PM: Installing hike 1.2.3
11:18:51 PM: Installing liquid 2.5.5
11:18:51 PM: Installing rb-fsevent 0.9.8
11:18:51 PM: Installing maruku 0.7.0
11:18:51 PM: Installing posix-spawn 0.3.13 with native extensions
11:18:52 PM: Installing yajl-ruby 1.1.0 with native extensions
11:18:53 PM: Installing redcarpet 2.3.0 with native extensions
11:18:55 PM: Installing safe_yaml 1.0.4
11:18:56 PM: Installing multi_json 1.12.1
11:18:56 PM: Installing rack 1.6.12
11:18:56 PM: Installing tilt 1.4.1
11:18:56 PM: Installing mini_portile2 2.4.0
11:18:56 PM: Using bundler 1.14.5
11:18:56 PM: Installing parslet 1.5.0
11:18:56 PM: Installing bourbon 3.2.4
11:18:56 PM: Installing classifier 1.3.4
11:18:57 PM: Installing commander 4.1.6
11:18:57 PM: Installing rb-inotify 0.9.8
11:18:57 PM: Installing rb-kqueue 0.2.4
11:18:57 PM: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
11:18:57 PM: current directory:
11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl
11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/bin/ruby -I
11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0 -r
11:18:57 PM: ./siteconf20220310-1397-1m3fl74.rb extconf.rb
11:18:57 PM: creating Makefile
11:18:57 PM: Creating deploy upload records
11:18:57 PM: current directory:
11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl
11:18:57 PM: make "DESTDIR=" clean
11:18:57 PM: current directory:
11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl
11:18:57 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
11:18:57 PM: make "DESTDIR="
11:18:57 PM: compiling yajl.c
11:18:57 PM: compiling yajl_alloc.c
11:18:57 PM: compiling yajl_buf.c
11:18:57 PM: compiling yajl_encode.c
11:18:57 PM: compiling yajl_ext.c
11:18:57 PM: yajl_ext.c: In function ‘yajl_encode_part’:
11:18:57 PM: yajl_ext.c:117:21: warning: variable ‘status’ set but not used
11:18:57 PM: [-Wunused-but-set-variable]
11:18:57 PM:      yajl_gen_status status;
11:18:57 PM:                      ^
11:18:57 PM: yajl_ext.c: In function ‘rb_yajl_parser_parse’:
11:18:57 PM: yajl_ext.c:442:17: warning: variable ‘stat’ set but not used
11:18:57 PM: [-Wunused-but-set-variable]
11:18:57 PM:      yajl_status stat;
11:18:57 PM:                  ^
11:18:57 PM: In file included from
11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby.h:33:0,
11:18:57 PM:                  from yajl_ext.h:32,
11:18:57 PM:                  from yajl_ext.c:24:
11:18:57 PM: yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:
11:18:57 PM: yajl_ext.c:852:22: error: ‘rb_cFixnum’ undeclared (first use in this function)
11:18:57 PM: rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,
11:18:57 PM: -1);
11:18:57 PM:                       ^
11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby/ruby.h:2799:104:
11:18:57 PM: note: in definition of macro ‘rb_define_method’
11:18:57 PM: #define rb_define_method(klass, mid, func, arity)
11:18:57 PM: rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
11:18:57 PM: ^
11:18:57 PM: yajl_ext.c:852:22: note: each undeclared identifier is reported only once for
11:18:57 PM: each function it appears in
11:18:57 PM: rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,
11:18:57 PM: -1);
11:18:57 PM:                       ^
11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby/ruby.h:2799:104:
11:18:57 PM: note: in definition of macro ‘rb_define_method’
11:18:57 PM: #define rb_define_method(klass, mid, func, arity)
11:18:57 PM: rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
11:18:57 PM: ^
11:18:57 PM: yajl_ext.c: At top level:
11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-self-assign’
11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
11:18:57 PM: Makefile:244: recipe for target 'yajl_ext.o' failed
11:18:57 PM: make: *** [yajl_ext.o] Error 1
11:18:57 PM: make failed, exit code 2
11:18:57 PM: Gem files will remain installed in
11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0 for inspection.
11:18:57 PM: Results logged to
11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/yajl-ruby-1.1.0/gem_make.out
11:18:57 PM: An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot
11:18:57 PM: continue.
11:18:57 PM: Make sure that `gem install yajl-ruby -v '1.1.0'` succeeds before bundling.
11:18:57 PM: Error during gem install
11:18:57 PM: Build was terminated: Build script returned non-zero exit code: 1
11:18:57 PM: Failing build: Failed to build site
11:18:57 PM: Finished processing build request in 30.509594942s

maybe we just need to upgrade the Jekyll version?

dustinsoftware commented 2 years ago

Yeah that was my first thought too

On Thu, Mar 10, 2022 at 02:20, Daniel Lo Nigro @.***> wrote:

The old Netlify image we used is no longer available, and the current ones (Ubuntu 16.04 and 20.04) both fail:

11:18:23 PM: Build ready to start

11:18:27 PM: build-image version: 6ebfb829398e07eb99ad5455777162ff19838822 (xenial)

11:18:27 PM: build-image tag: v3.10.5

11:18:27 PM: buildbot version: 7eafb394e33f42f945c880ce4ac17c149867813a

11:18:27 PM: Building without cache

11:18:27 PM: Starting to prepare the repo for build

11:18:27 PM: No cached dependencies found. Cloning fresh repo

11:18:27 PM: git clone https://github.com/reactjs/React.NET

11:18:30 PM: Preparing Git Reference refs/heads/main

11:18:30 PM: Parsing package.json dependencies

11:18:31 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'site/jekyll' versus '' in the Netlify UI

11:18:31 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'site/jekyll/_site' versus '' in the Netlify UI

11:18:31 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'bundle exec jekyll build' versus '' in the Netlify UI

11:18:31 PM: Starting build script

11:18:31 PM: Installing dependencies

11:18:31 PM: Python version set to 2.7

11:18:32 PM: Downloading and installing node v8.17.0...

11:18:32 PM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz...

11:18:33 PM: Computing checksum with sha256sum

11:18:33 PM: Checksums matched!

11:18:35 PM: Now using node v8.17.0 (npm v6.13.4)

11:18:35 PM: Started restoring cached build plugins

11:18:35 PM: Finished restoring cached build plugins

11:18:35 PM: Attempting ruby version 2.7.2, read from environment

11:18:36 PM: Using ruby version 2.7.2

11:18:36 PM: Using bundler version 1.14.5 from Gemfile.lock

11:18:37 PM: Successfully installed bundler-1.14.5

11:18:37 PM: 1 gem installed

11:18:37 PM: Using PHP version 5.6

11:18:37 PM: Started restoring cached ruby gems

11:18:37 PM: Finished restoring cached ruby gems

11:18:37 PM: Installing gem bundle

11:18:38 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0/rubygems.rb:932: warning: FILE in eval may not return location in binding; use Binding#source_location instead

11:18:40 PM: /opt/buildhome/.rvm/gems/ruby-2.7.2/gems/bundler-1.14.5/lib/bundler/rubygems_integration.rb:516: warning: in `eval'

Fetching gem metadata from https://rubygems.org/.........

11:18:40 PM: Fetching version metadata from https://rubygems.org/..

11:18:40 PM: Fetching dependency metadata from https://rubygems.org/.

11:18:40 PM: Unable to use the platform-specific () version of sprockets (2.12.4) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run bundle config specific_platform true and install again.

11:18:40 PM: Unable to use the platform-specific () version of jekyll-assets (0.9.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run bundle config specific_platform true and install again.

11:18:40 PM: Unable to use the platform-specific () version of nokogumbo (2.0.2) because it has different dependencies from the ruby version. To use the platform-specific version of the gem, run bundle config specific_platform true and install again.

11:18:40 PM: Installing blankslate 2.1.2.4

11:18:41 PM: Installing sass 3.4.23

11:18:41 PM: Installing thor 0.19.4

11:18:41 PM: Installing fast-stemmer 1.0.2 with native extensions

11:18:42 PM: Installing colorator 0.1

11:18:42 PM: Installing highline 1.6.21

11:18:42 PM: Installing crass 1.0.6

11:18:42 PM: Installing ffi 1.9.18 with native extensions

11:18:51 PM: Installing hike 1.2.3

11:18:51 PM: Installing liquid 2.5.5

11:18:51 PM: Installing rb-fsevent 0.9.8

11:18:51 PM: Installing maruku 0.7.0

11:18:51 PM: Installing posix-spawn 0.3.13 with native extensions

11:18:52 PM: Installing yajl-ruby 1.1.0 with native extensions

11:18:53 PM: Installing redcarpet 2.3.0 with native extensions

11:18:55 PM: Installing safe_yaml 1.0.4

11:18:56 PM: Installing multi_json 1.12.1

11:18:56 PM: Installing rack 1.6.12

11:18:56 PM: Installing tilt 1.4.1

11:18:56 PM: Installing mini_portile2 2.4.0

11:18:56 PM: Using bundler 1.14.5

11:18:56 PM: Installing parslet 1.5.0

11:18:56 PM: Installing bourbon 3.2.4

11:18:56 PM: Installing classifier 1.3.4

11:18:57 PM: Installing commander 4.1.6

11:18:57 PM: Installing rb-inotify 0.9.8

11:18:57 PM: Installing rb-kqueue 0.2.4

11:18:57 PM: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

11:18:57 PM: current directory:

11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl

11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/bin/ruby -I

11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/lib/ruby/2.7.0 -r

11:18:57 PM: ./siteconf20220310-1397-1m3fl74.rb extconf.rb

11:18:57 PM: creating Makefile

11:18:57 PM: Creating deploy upload records

11:18:57 PM: current directory:

11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl

11:18:57 PM: make "DESTDIR=" clean

11:18:57 PM: current directory:

11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0/ext/yajl

11:18:57 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)

11:18:57 PM: make "DESTDIR="

11:18:57 PM: compiling yajl.c

11:18:57 PM: compiling yajl_alloc.c

11:18:57 PM: compiling yajl_buf.c

11:18:57 PM: compiling yajl_encode.c

11:18:57 PM: compiling yajl_ext.c

11:18:57 PM: yajl_ext.c: In function ‘yajl_encode_part’:

11:18:57 PM: yajl_ext.c:117:21: warning: variable ‘status’ set but not used

11:18:57 PM: [-Wunused-but-set-variable]

11:18:57 PM: yajl_gen_status status;

11:18:57 PM: ^

11:18:57 PM: yajl_ext.c: In function ‘rb_yajl_parser_parse’:

11:18:57 PM: yajl_ext.c:442:17: warning: variable ‘stat’ set but not used

11:18:57 PM: [-Wunused-but-set-variable]

11:18:57 PM: yajl_status stat;

11:18:57 PM: ^

11:18:57 PM: In file included from

11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby.h:33:0,

11:18:57 PM: from yajl_ext.h:32,

11:18:57 PM: from yajl_ext.c:24:

11:18:57 PM: yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:

11:18:57 PM: yajl_ext.c:852:22: error: ‘rb_cFixnum’ undeclared (first use in this function)

11:18:57 PM: rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,

11:18:57 PM: -1);

11:18:57 PM: ^

11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby/ruby.h:2799:104:

11:18:57 PM: note: in definition of macro ‘rb_define_method’

11:18:57 PM: #define rb_define_method(klass, mid, func, arity)

11:18:57 PM: rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));

11:18:57 PM: ^

11:18:57 PM: yajl_ext.c:852:22: note: each undeclared identifier is reported only once for

11:18:57 PM: each function it appears in

11:18:57 PM: rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,

11:18:57 PM: -1);

11:18:57 PM: ^

11:18:57 PM: /opt/buildhome/.rvm/rubies/ruby-2.7.2/include/ruby-2.7.0/ruby/ruby.h:2799:104:

11:18:57 PM: note: in definition of macro ‘rb_define_method’

11:18:57 PM: #define rb_define_method(klass, mid, func, arity)

11:18:57 PM: rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));

11:18:57 PM: ^

11:18:57 PM: yajl_ext.c: At top level:

11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’

11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-self-assign’

11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’

11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’

11:18:57 PM: cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’

11:18:57 PM: Makefile:244: recipe for target 'yajl_ext.o' failed

11:18:57 PM: make: *** [yajl_ext.o] Error 1

11:18:57 PM: make failed, exit code 2

11:18:57 PM: Gem files will remain installed in

11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/gems/yajl-ruby-1.1.0 for inspection.

11:18:57 PM: Results logged to

11:18:57 PM: /opt/build/cache/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/yajl-ruby-1.1.0/gem_make.out

11:18:57 PM: An error occurred while installing yajl-ruby (1.1.0), and Bundler cannot

11:18:57 PM: continue.

11:18:57 PM: Make sure that gem install yajl-ruby -v '1.1.0' succeeds before bundling.

11:18:57 PM: Error during gem install

11:18:57 PM: Build was terminated: Build script returned non-zero exit code: 1

11:18:57 PM: Failing build: Failed to build site

11:18:57 PM: Finished processing build request in 30.509594942s

maybe we just need to upgrade the Jekyll version?

— Reply to this email directly, view it on GitHub https://github.com/reactjs/React.NET/issues/1283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHGCFV6DSNTXV7GANEBSF3U7GPEVANCNFSM5QLYAQWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>