Metabase0.38.0 compile failed

Hi, an error occurred in the backend in the running process after I compile the source code for Metabase 0.38.0. An error is as follows:


Something is wrong?

Hi @cecile
Have you tried compiling before? Which version/branch worked before?

Post the output of the following:

# OS and version
 sed -nE 's/^PRETTY_NAME="([^"]+)"$/\1/p' /etc/os-release
# Git branch and commit
 echo `git status | head -1 && git log -1 --format="commit %H"`
# Java version and architecture
 java -version
# Java variable configuration
 echo $JAVA_HOME
# Java path configuration
 echo $PATH | grep --color=never -oe "/usr/lib/jvm/[^:]*"
# Lein version
 lein --version
# NodeJS version
 nodejs --version
# Yarn version
 yarn --version
# Clojure version
 clojure --help | grep Version

@flamber I have compiled Metabase for 0.37.x and they’re all built successfully. But when I tried compiling Metabase 0.38.0, it compile failed. (I download source code from releases not branch)
#OS and version
Ubuntu 16.04.7 LTS
#Java version and architecture
image
#Java variable configuration
/usr/local/jdk1.8.0_191
#Lein version
image
#NodeJS version
v8.10.0
#Yarn version
1.22.10
#Clojure version
Version: 1.10.2.790

@cecile Try using an updated version of AdoptOpenJDK 8 instead: https://www.metabase.com/docs/latest/operations-guide/java-versions.html
For reference: Localization
Your Node version is very old too, and your Ubuntu will be EOL in a couple of months.
https://www.metabase.com/docs/latest/developers-guide.html

Thank you for your advice. Let me give it a try.

@flamber It still doesn’t work. An error is reported in all languages except English. An error is as follows:


#OS and version
Ubuntu 20.10
#Java version and architecture
image
#Java variable configuration
/usr/local/jdk8
#Lein version
image
#NodeJS version
v14.15.0
#Yarn version
1.22.10
#Clojure version
Version: 1.10.2.790

@cecile Post all the commands you use - do not use images, post the text.

@flamber Is it the command to install these tools?

@cecile All the commands you do. Install tools, do the build - everything.

@flamber
#install Clojure
curl -O https://download.clojure.org/install/linux-install-1.10.2.790.sh
chmod +x linux-install-1.10.2.790.sh
sudo ./linux-install-1.10.2.790.sh

#install JDK
download image from (https://adoptopenjdk.net/releases.html)
tar -zxvf OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz
gedit /etc/profile
add content:
export JAVA_HOME=/usr/local/jdk8
export PATH=.:$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
source /etc/profile

#install Node.js
download image from (http://nodejs.org/)
tar -zxvf node-v14.15.5-linux-x64.tar.xz
gedit /etc/profile
add content:
export NODE_HOME=/home/ubuntu/node-v14.15.5-linux-x64
export PATH=$PATH:$NODE_HOME/bin
source /etc/profile

#install yarn
npm install --global yarn

#install Leiningen
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein --no-check-certificate -P /usr/bin
cd /usr/bin
chmod a+x /usr/bin/lein
lein

#install GetText package
sudo apt install gettext

#run
cd metabase-0.38.0
1.frontend:
yarn install
yarn run build-hot
2.backend:
lein run

#build
cd metabase-0.38.0
./bin/build

@cecile
So when are you having problems? During run or build?
And you have no other conflicting versions of Java? And you get the right version, when running this:
java -version

@flamber I have problem during run. I have not tried build for Metabase0.38.0.
I have no other conflicting versions of Java and get the right version when running java -version.

.

@cecile Then try generating translations before running:
./bin/i18n/build-translation-resources

@flamber It’s ok to do that. During run, previous versions(0.37.x) generate translations automatically, but Metabase0.38.0 not. During build, it generate translations automatically.