helpdesk icon indicating copy to clipboard operation
helpdesk copied to clipboard

Chinese jenkins site incorrect site redirection

Open krisstern opened this issue 7 months ago • 4 comments
trafficstars

Service(s)

jenkins.io, Helpdesk

Summary

I just tried manually entering the link https://www.jenkins.io/zh/ into the browser URL / search bar, but was re-directed to https://www.jenkins.io/zh//zh/ instead. It works only after I removed the extra /zh/ in the URL / search bar.

Reproduction steps

As described in Summary above.

krisstern avatar Apr 08 '25 00:04 krisstern

I started to create a netlify preview for main and the PR of the chinese site, but it fail as netlify doesn't provide the docker command, so a make cn-all fail:

12:01:18 PM: build-image version: 69179d37c92919bcf501ca9a8de95762ede3ffc5 (noble)
12:01:18 PM: buildbot version: 648e870c693a8227febba2139caf43dd78353ae3
12:01:18 PM: Fetching cached dependencies
12:01:18 PM: Failed to fetch cache, continuing with build
12:01:19 PM: Starting to prepare the repo for build
12:01:19 PM: No cached dependencies found. Cloning fresh repo
12:01:19 PM: git clone --filter=blob:none https://github.com/jenkins-infra/cn.jenkins.io
12:01:19 PM: Preparing Git Reference refs/heads/master
12:01:23 PM: Custom publish path detected. Proceeding with the specified path: 'data/_site'
12:01:24 PM: Starting to install dependencies
12:01:24 PM: Python version set to 3.13.2
12:01:25 PM: Ruby version set to 2.7.2
12:01:25 PM: Using Bundler version 1.17.3 from Gemfile.lock
12:01:36 PM: Successfully installed bundler-1.17.3
12:01:36 PM: 1 gem installed
12:01:36 PM: Started restoring cached ruby gems
12:01:36 PM: Finished restoring cached ruby gems
12:01:36 PM: Installing gem bundle
12:01:38 PM: Fetching gem metadata from https://rubygems.org/.........
12:01:38 PM: Fetching Ascii85 1.0.3
12:01:38 PM: Installing Ascii85 1.0.3
12:01:38 PM: Fetching concurrent-ruby 1.1.6
12:01:38 PM: Installing concurrent-ruby 1.1.6
12:01:38 PM: Fetching i18n 1.5.3
12:01:38 PM: Installing i18n 1.5.3
12:01:38 PM: Fetching minitest 5.14.1
12:01:39 PM: Installing minitest 5.14.1
12:01:39 PM: Fetching thread_safe 0.3.6
12:01:39 PM: Installing thread_safe 0.3.6
12:01:39 PM: Fetching tzinfo 1.2.10
12:01:39 PM: Installing tzinfo 1.2.10
12:01:39 PM: Fetching zeitwerk 2.3.0
12:01:39 PM: Installing zeitwerk 2.3.0
12:01:39 PM: Fetching activesupport 6.0.3.1
12:01:39 PM: Installing activesupport 6.0.3.1
12:01:39 PM: Fetching public_suffix 4.0.6
12:01:39 PM: Installing public_suffix 4.0.6
12:01:39 PM: Fetching addressable 2.8.0
12:01:39 PM: Installing addressable 2.8.0
12:01:39 PM: Fetching afm 0.2.2
12:01:39 PM: Installing afm 0.2.2
12:01:39 PM: Fetching ansi 1.5.0
12:01:39 PM: Installing ansi 1.5.0
12:01:39 PM: Fetching asciidoctor 1.5.8
12:01:39 PM: Installing asciidoctor 1.5.8
12:01:39 PM: Fetching coderay 1.1.2
12:01:39 PM: Installing coderay 1.1.2
12:01:40 PM: Fetching colorize 0.8.1
12:01:40 PM: Installing colorize 0.8.1
12:01:40 PM: Fetching asciidoctor-jenkins-extensions 0.5.0
12:01:40 PM: Installing asciidoctor-jenkins-extensions 0.5.0
12:01:40 PM: Fetching pdf-core 0.7.0
12:01:40 PM: Installing pdf-core 0.7.0
12:01:40 PM: Fetching ttfunk 1.5.1
12:01:40 PM: Installing ttfunk 1.5.1
12:01:40 PM: Fetching prawn 2.2.2
12:01:40 PM: Installing prawn 2.2.2
12:01:40 PM: Fetching prawn-icon 1.3.0
12:01:40 PM: Installing prawn-icon 1.3.0
12:01:40 PM: Fetching css_parser 1.6.0
12:01:40 PM: Installing css_parser 1.6.0
12:01:40 PM: Fetching prawn-svg 0.26.0
12:01:40 PM: Installing prawn-svg 0.26.0
12:01:40 PM: Fetching prawn-table 0.2.2
12:01:40 PM: Installing prawn-table 0.2.2
12:01:40 PM: Fetching hashery 2.1.2
12:01:41 PM: Installing hashery 2.1.2
12:01:41 PM: Fetching ruby-rc4 0.1.5
12:01:41 PM: Installing ruby-rc4 0.1.5
12:01:41 PM: Fetching pdf-reader 1.4.1
12:01:41 PM: Installing pdf-reader 1.4.1
12:01:41 PM: Fetching prawn-templates 0.0.5
12:01:41 PM: Installing prawn-templates 0.0.5
12:01:41 PM: Fetching safe_yaml 1.0.4
12:01:41 PM: Installing safe_yaml 1.0.4
12:01:41 PM: Fetching polyglot 0.3.5
12:01:41 PM: Installing polyglot 0.3.5
12:01:41 PM: Fetching treetop 1.5.3
12:01:41 PM: Installing treetop 1.5.3
12:01:41 PM: Fetching asciidoctor-pdf 1.5.0.alpha.15
12:01:41 PM: Installing asciidoctor-pdf 1.5.0.alpha.15
12:01:41 PM: Fetching ast 2.4.0
12:01:42 PM: Installing ast 2.4.0
12:01:42 PM: Fetching rchardet 1.8.0
12:01:42 PM: Installing rchardet 1.8.0
12:01:42 PM: Fetching git 1.13.0
12:01:42 PM: Installing git 1.13.0
12:01:42 PM: Fetching formatador 0.2.5
12:01:42 PM: Installing formatador 0.2.5
12:01:42 PM: Fetching rb-fsevent 0.10.3
12:01:42 PM: Installing rb-fsevent 0.10.3
12:01:42 PM: Fetching ffi 1.10.0
12:01:42 PM: Installing ffi 1.10.0 with native extensions
12:01:48 PM: Fetching rb-inotify 0.10.0
12:01:48 PM: Installing rb-inotify 0.10.0
12:01:48 PM: Fetching ruby_dep 1.5.0
12:01:48 PM: Installing ruby_dep 1.5.0
12:01:48 PM: Fetching listen 3.1.5
12:01:48 PM: Installing listen 3.1.5
12:01:48 PM: Fetching lumberjack 1.0.13
12:01:48 PM: Installing lumberjack 1.0.13
12:01:48 PM: Fetching nenv 0.3.0
12:01:48 PM: Installing nenv 0.3.0
12:01:48 PM: Fetching shellany 0.0.1
12:01:48 PM: Installing shellany 0.0.1
12:01:48 PM: Fetching notiffany 0.1.1
12:01:48 PM: Installing notiffany 0.1.1
12:01:48 PM: Fetching method_source 0.9.2
12:01:48 PM: Installing method_source 0.9.2
12:01:48 PM: Fetching pry 0.12.2
12:01:48 PM: Installing pry 0.12.2
12:01:49 PM: Fetching thor 0.20.3
12:01:49 PM: Installing thor 0.20.3
12:01:49 PM: Fetching guard 2.15.0
12:01:49 PM: Installing guard 2.15.0
12:01:49 PM: Fetching eventmachine 1.2.7
12:01:49 PM: Installing eventmachine 1.2.7 with native extensions
12:02:00 PM: Fetching http_parser.rb 0.6.0
12:02:00 PM: Installing http_parser.rb 0.6.0 with native extensions
12:02:01 PM: Fetching em-websocket 0.5.1
12:02:01 PM: Installing em-websocket 0.5.1
12:02:01 PM: Fetching guard-compat 1.2.1
12:02:01 PM: Installing guard-compat 1.2.1
12:02:01 PM: Fetching multi_json 1.13.1
12:02:01 PM: Installing multi_json 1.13.1
12:02:01 PM: Fetching guard-livereload 2.5.2
12:02:01 PM: Installing guard-livereload 2.5.2
12:02:01 PM: Fetching tilt 2.0.9
12:02:01 PM: Installing tilt 2.0.9
12:02:01 PM: Fetching haml 4.0.7
12:02:01 PM: Installing haml 4.0.7
12:02:02 PM: Fetching little-plugger 1.1.4
12:02:02 PM: Installing little-plugger 1.1.4
12:02:02 PM: Fetching logging 2.2.2
12:02:02 PM: Installing logging 2.2.2
12:02:02 PM: Fetching mime-types 2.99.3
12:02:02 PM: Installing mime-types 2.99.3
12:02:02 PM: Fetching ruby-ll 2.1.2
12:02:02 PM: Installing ruby-ll 2.1.2 with native extensions
12:02:02 PM: Fetching oga 1.3.1
12:02:03 PM: Installing oga 1.3.1 with native extensions
12:02:03 PM: Fetching parallel 1.13.0
12:02:03 PM: Installing parallel 1.13.0
12:02:03 PM: Fetching rack 1.6.12
12:02:03 PM: Installing rack 1.6.12
12:02:03 PM: Fetching unf_ext 0.0.7.5
12:02:04 PM: Installing unf_ext 0.0.7.5 with native extensions
12:02:05 PM: Fetching unf 0.1.4
12:02:05 PM: Installing unf 0.1.4
12:02:05 PM: Fetching domain_name 0.5.20180417
12:02:05 PM: Installing domain_name 0.5.20180417
12:02:05 PM: Fetching http-cookie 1.0.3
12:02:05 PM: Installing http-cookie 1.0.3
12:02:05 PM: Fetching netrc 0.11.0
12:02:05 PM: Installing netrc 0.11.0
12:02:05 PM: Fetching rest-client 1.8.0
12:02:05 PM: Installing rest-client 1.8.0
12:02:05 PM: Fetching awestruct 0.5.7
12:02:05 PM: Installing awestruct 0.5.7
12:02:05 PM: Fetching naturally 2.1.0
12:02:05 PM: Installing naturally 2.1.0
12:02:05 PM: Fetching awestruct-ibeams 0.4.1
12:02:06 PM: Installing awestruct-ibeams 0.4.1
12:02:06 PM: Using bundler 1.17.3
12:02:06 PM: Fetching multipart-post 2.0.0
12:02:06 PM: Installing multipart-post 2.0.0
12:02:06 PM: Fetching faraday 0.9.2
12:02:06 PM: Installing faraday 0.9.2
12:02:06 PM: Fetching faraday_middleware 0.9.2
12:02:06 PM: Installing faraday_middleware 0.9.2
12:02:06 PM: Fetching highline 2.0.1
12:02:06 PM: Installing highline 2.0.1
12:02:06 PM: Fetching trollop 1.16.2
12:02:06 PM: Installing trollop 1.16.2
12:02:06 PM: Fetching haml-i18n-extractor 0.5.9
12:02:06 PM: Installing haml-i18n-extractor 0.5.9
12:02:06 PM: Fetching rexml 3.2.5
12:02:06 PM: Installing rexml 3.2.5
12:02:06 PM: Fetching kramdown 2.3.1
12:02:06 PM: Installing kramdown 2.3.1
12:02:06 PM: Fetching liquid 3.0.6
12:02:06 PM: Installing liquid 3.0.6
12:02:06 PM: Fetching rubyzip 1.3.0
12:02:06 PM: Installing rubyzip 1.3.0
12:02:07 PM: Bundle complete! 16 Gemfile dependencies, 83 gems now installed.
12:02:07 PM: Bundled gems are installed into `/opt/build/cache/bundle`
12:02:07 PM: Post-install message from i18n:
12:02:07 PM: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
12:02:07 PM: But that may break your application.
12:02:07 PM: Please check your Rails app for 'config.i18n.fallbacks = true'.
12:02:07 PM: If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
12:02:07 PM: If not, fallbacks will be broken in your app by I18n 1.1.x.
12:02:07 PM: For more info see:
12:02:07 PM: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
12:02:07 PM: Post-install message from pdf-reader:
12:02:07 PM:   ********************************************
12:02:07 PM:   v1.0.0 of PDF::Reader introduced a new page-based API. There are extensive
12:02:07 PM:   examples showing how to use it in the README and examples directory.
12:02:07 PM:   For detailed documentation, check the rdocs for the PDF::Reader,
12:02:07 PM:   PDF::Reader::Page and PDF::Reader::ObjectHash classes.
12:02:07 PM:   The old API is marked as deprecated but will continue to work with no
12:02:07 PM:   visible warnings for now.
12:02:07 PM:   ********************************************
12:02:07 PM: Post-install message from haml:
12:02:07 PM: HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
12:02:07 PM: your application:
12:02:07 PM: * Support for Ruby 1.8.6 dropped
12:02:07 PM: * Support for Rails 2 dropped
12:02:07 PM: * Sass filter now always outputs <style> tags
12:02:07 PM: * Data attributes are now hyphenated, not underscored
12:02:07 PM: * html2haml utility moved to the html2haml gem
12:02:07 PM: * Textile and Maruku filters moved to the haml-contrib gem
12:02:07 PM: For more info see:
12:02:07 PM: http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
12:02:07 PM: Gem bundle installed
12:02:07 PM: mise [email protected]         install
12:02:07 PM: mise [email protected]         download go1.19.linux-amd64.tar.gz
12:02:08 PM: mise [email protected]         checksum go1.19.linux-amd64.tar.gz
12:02:08 PM: mise [email protected]         extract go1.19.linux-amd64.tar.gz
12:02:09 PM: mise [email protected]         go version
12:02:09 PM: mise [email protected]         go version go1.19 linux/amd64
12:02:09 PM: mise [email protected]       ✓ installed
12:02:09 PM: Go version set to 1.19
12:02:10 PM: Using PHP version 8.3
12:02:11 PM: v22.14.0 is already installed.
12:02:12 PM: Now using node v22.14.0 (npm v10.9.2)
12:02:12 PM: Enabling Node.js Corepack
12:02:12 PM: Started restoring cached build plugins
12:02:12 PM: Finished restoring cached build plugins
12:02:12 PM: Started restoring cached corepack dependencies
12:02:12 PM: Finished restoring cached corepack dependencies
12:02:12 PM: No npm workspaces detected
12:02:12 PM: Started restoring cached node modules
12:02:12 PM: Finished restoring cached node modules
12:02:12 PM: Installing npm packages using npm version 10.9.2
12:02:12 PM: npm warn old lockfile
12:02:12 PM: npm warn old lockfile The package-lock.json file was created with an old version of npm,
12:02:12 PM: npm warn old lockfile so supplemental metadata must be fetched from the registry.
12:02:12 PM: npm warn old lockfile
12:02:12 PM: npm warn old lockfile This is a one-time fix-up, please be patient...
12:02:12 PM: npm warn old lockfile
12:02:13 PM: added 5 packages, and audited 6 packages in 964ms
12:02:13 PM: found 0 vulnerabilities
12:02:13 PM: npm packages installed
12:02:13 PM: Successfully installed dependencies
12:02:13 PM: Starting build script
12:02:15 PM: Detected 0 framework(s)
12:02:15 PM: Section completed: initializing
12:02:16 PM: ​
12:02:16 PM: Netlify Build                                                 
12:02:16 PM: ────────────────────────────────────────────────────────────────
12:02:16 PM: ​
12:02:16 PM: ❯ Version
12:02:16 PM:   @netlify/build 31.0.2
12:02:16 PM: ​
12:02:16 PM: ❯ Flags
12:02:16 PM:   accountId: 61c2573bd194b08bfd91bfd5
12:02:16 PM:   baseRelDir: true
12:02:16 PM:   buildId: 67fcdcbe02f2440989493d94
12:02:16 PM:   deployId: 67fcdcbe02f2440989493d96
12:02:16 PM: ​
12:02:16 PM: ❯ Current directory
12:02:16 PM:   /opt/build/repo
12:02:16 PM: ​
12:02:16 PM: ❯ Config file
12:02:16 PM:   No config file was defined: using default values.
12:02:16 PM: ​
12:02:16 PM: ❯ Context
12:02:16 PM:   production
12:02:16 PM: ​
12:02:16 PM: Build command from Netlify app                                
12:02:16 PM: ────────────────────────────────────────────────────────────────
12:02:16 PM: ​
12:02:16 PM: $ make cn-all
12:02:16 PM: chmod u+x ./scripts/groovy ./scripts/ruby ./scripts/fetch-examples ./scripts/node ./scripts/asciidoctor-pdf ./scripts/awestruct ./scripts/user-site-deploy.sh ./scripts/release.rss.groovy ./scripts/fetch-external-resources
12:02:16 PM: mkdir -p build/_site
12:02:16 PM: ./scripts/ruby pull
12:02:16 PM: ./scripts/docker-env: line 5: docker: command not found
12:02:16 PM: ./scripts/docker-env: line 12: exec: docker: cannot execute: Is a directory
12:02:16 PM: make: *** [Makefile:74: build/ruby] Error 126
12:02:16 PM: ​
12:02:16 PM: "build.command" failed                                        
12:02:16 PM: ────────────────────────────────────────────────────────────────
12:02:16 PM: ​
12:02:16 PM:   Error message
12:02:16 PM:   Command failed with exit code 2: make cn-all (https://ntl.fyi/exit-code-2)
12:02:16 PM: ​
12:02:16 PM:   Error location
12:02:16 PM:   In Build command from Netlify app:
12:02:16 PM:   make cn-all
12:02:16 PM: ​
12:02:16 PM:   Resolved config
12:02:16 PM:   build:
12:02:16 PM:     command: make cn-all
12:02:16 PM:     commandOrigin: ui
12:02:16 PM:     publish: /opt/build/repo/data/_site
12:02:16 PM:     publishOrigin: ui
12:02:16 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:02:17 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:02:17 PM: Failing build: Failed to build site
12:02:17 PM: Finished processing build request in 58.432s

could the build avoid the docker usage ?

smerle33 avatar Apr 14 '25 12:04 smerle33

I assume it needs changes to the scripts like https://github.com/jenkins-infra/jenkins.io/blob/master/scripts/ruby#L3-L12

timja avatar Apr 14 '25 13:04 timja

Delayed to next week when @smerle33 is back from holidays

dduportal avatar May 02 '25 12:05 dduportal

This issue is back to triage until june as the infra team does not have bandwidth to treat it in May

dduportal avatar May 06 '25 13:05 dduportal