Frontend for metabase not working

I am trying to run Metabase on my localhost. Everything seems to build successfully when I run the generated metabase.jar file. But when I access the localhost:3000 all I get is a blank screen. I need some help.

Hi @makwasi
That’s difficult to tell, since you’re not providing a lot of information - no information from logs or console.
What happens if you run one of the official builds instead of your own, can you then access it (meaning, is it a problem in your browser)?
Please post the output of the following, and also include any errors from logs or browser console:

# 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

Thanks for the quick response. When I run the official builds they run very well am using Chrome browser.
Windows 10
# Git branch and commit
$ echo git status | head -1 && git log -1 --format="commit %H"
On branch dev commit 034022eb959c0d7957155e22a2cce427cd21d9cd
# Java version and architecture
java version “11.0.8” 2020-07-14 LTS
Java™ SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
Java HotSpot™ 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)

# Java variable configuration
C:\Program Files\Java\jdk-11.0.8\bin
# Lein version
Leiningen 2.9.4 on Java 11.0.8 Java HotSpot(TM) 64-Bit Server VM
# NodeJS version
v12.18.4
# Yarn version
1.22.5

this is what i get when i start the metabase.jar file that i built

PS C:\Users\crism\OneDrive\Desktop\metabase\target\uberjar> java -jar metabase.jar
11-01 01:18:40 e[1mDEBUG plugins.classloadere[0m :: Using NEWLY CREATED classloader as shared context classloader: clojure.lang.DynamicClassLoader@1de9b505
11-01 01:18:40 e[1mDEBUG plugins.classloadere[0m :: Setting current thread context classloader to shared classloader clojure.lang.DynamicClassLoader@1de9b505…
11-01 01:18:41 e[1mINFO metabase.utile[0m :: Loading Kenga Analytics…
11-01 01:18:41 e[1mINFO metabase.utile[0m :: Maximum memory available to JVM: 1.9 GB
11-01 01:18:44 e[1mINFO util.encryptione[0m :: Saved credentials encryption is DISABLED for this Kenga Analytics instance.
For more information, see https://metabase.com/docs/latest/operations-guide/encrypting-database-details-at-rest.html
11-01 01:18:47 e[1mINFO metabase.drivere[0m :: Registered abstract driver :sql
11-01 01:18:51 e[1mINFO metabase.coree[0m :: Starting Kenga Analytics in STANDALONE mode
11-01 01:18:51 e[1mINFO metabase.servere[0m :: Launching Embedded Jetty Webserver with config:
{:port 3000}

11-01 01:18:51 e[1mINFO metabase.coree[0m :: Starting Kenga Analytics version null (null null) …
11-01 01:18:51 e[1mINFO metabase.coree[0m :: System info:
{“java.runtime.name” “Java™ SE Runtime Environment”,
“java.runtime.version” “11.0.8+10-LTS”,
“java.vendor” “Oracle Corporation”,
“java.vendor.url” “https://openjdk.java.net/”,
“java.version” “11.0.8”,
“java.vm.name” “Java HotSpot™ 64-Bit Server VM”,
“java.vm.version” “11.0.8+10-LTS”,
“os.name” “Windows 10”,
“os.version” “10.0”,
“user.language” “en”,
“user.timezone” “Africa/Nairobi”}

11-01 01:18:51 e[1mINFO metabase.pluginse[0m :: Loading plugins in C:\Users\crism\OneDrive\Desktop\metabase\target\uberjar\plugins…
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Registered abstract driver :sql-jdbc (parents: [:sql])
Load driver :sql-jdbc took 14.1 ms
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Registered driver :h2 (parents: [:sql-jdbc])
Load driver :h2 took 112.6 ms
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Registered driver :mysql (parents: [:sql-jdbc])
Load driver :mysql took 53.5 ms
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Registered driver :postgres (parents: [:sql-jdbc])
Load driver :postgres took 32.5 ms
11-01 01:18:52 e[1mINFO metabase.coree[0m :: Setting up and migrating Kenga Analytics DB. Please sit tight, this may take a minute…
11-01 01:18:52 e[1mWARN metabase.dbe[0m :: WARNING: Using Kenga Analytics with an H2 application database is not recommended for production deployments. For production deployments, we highly recommend using Postgres, MySQL, or MariaDB instead. If you decide to continue to use H2, please be sure to back up the database file regularly. For more information, seehttps://metabase.com/docs/latest/operations-guide/migrating-from-h2.html
11-01 01:18:52 e[1mINFO metabase.dbe[0m :: Verifying h2 Database Connection …
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Initializing driver :sql…
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Initializing driver :sql-jdbc…
11-01 01:18:52 e[1mINFO metabase.drivere[0m :: Initializing driver :h2…
11-01 01:18:52 e[1mINFO metabase.dbe[0m :: Verify Database Connection …
11-01 01:18:52 e[1mINFO metabase.dbe[0m :: Running Database Migrations…
11-01 01:18:52 e[1mINFO metabase.dbe[0m :: Setting up Liquibase…
11-01 01:18:53 e[1mINFO metabase.dbe[0m :: Liquibase is ready.
11-01 01:18:53 e[1mINFO metabase.dbe[0m :: Checking if Database has unrun migrations…
11-01 01:18:55 e[1mINFO metabase.dbe[0m :: Database Migrations Current …
11-01 01:18:55 e[1mINFO db.migrationse[0m :: Running all necessary data migrations, this may take a minute.
11-01 01:18:55 e[1mINFO db.migrationse[0m :: Finished running data migrations.
Database setup took 3.1 s
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.activity-feed
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.dependencies
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.driver-notifications
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.last-login
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.metabot-lifecycle
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.notifications
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.revision
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.sync-database
11-01 01:18:55 e[1mINFO metabase.eventse[0m :: Starting events listener: metabase.events.view-log
11-01 01:18:55 e[1mINFO metabase.taske[0m :: Initializing task SyncDatabases
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task CheckForNewVersions
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task SendAnonymousUsageStats
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task SendAbandomentEmails
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task SendPulses
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task SendFollowUpEmails
11-01 01:18:56 e[1mINFO metabase.taske[0m :: Initializing task TaskHistoryCleanup
11-01 01:18:56 e[1mINFO metabase.coree[0m :: Looks like this is a new installation … preparing setup wizard
11-01 01:18:56 e[1mINFO metabase.coree[0m :: Please use the following URL to setup your Kenga Analytics installation:

http://localhost:3000/setup/

11-01 01:18:56 e[1mINFO metabase.coree[0m :: Kenga Analytics Initialization COMPLETE

This is from the broswer console(The browser still shows a blank screen)

This is what appears on the console when i try refreshing

11-02 11:32:16 e[1mWARN routes.indexe[0m :: Locale ‘en’ not found.

@makwasi Try building the tag v0.37.0.2 without any modifications - if that works, then you know the problem is one of your own changes.

1 Like

Update I managed to solve the issue. It was one concerning inline scripts in chrome so I installed a CSP extension to bypass the problem. I hope this is the right thing to do.
Thanks, @flamber for your support.