Consensys / quorum-dev-quickstart

The Quorum Developer Quickstart utility can be used to rapidly generate local Quorum blockchain networks for development and demo purposes using Besu and GoQuorum
Apache License 2.0
135 stars 101 forks source link

java.io.IOException: Permission denied (failing validators on ubuntu 20.04) #131

Closed kimborgen closed 2 years ago

kimborgen commented 2 years ago

Description

let me know if I should rather post the issue on the besu github

npx quorum-dev-quickstart cannot start a working network on a new, clean vm with ubuntu 20.04LTS (works on 18.04LTS, see aditional info) Besu fails with several permissioned denied Possible reasons I can think of

Let me know if you require more info. Thanks in advance for the help!

Acceptance Criteria

Steps to Reproduce (Bug)

  1. npx quorum-dev-quickstart

Which Ethereum client would you like to run? Default: [1]

  1. Hyperledger Besu
  2. GoQuorum 1 Do you want to try out Codefi Orchestrate? [Y/n] n Do you want to try out Quorum Key Manager? [Y/n] n Do you wish to enable support for private transactions? [Y/n] n Do you wish to enable support for logging with Splunk or ELK (Elasticsearch, Logstash & Kibana)? Default: [1]
  3. None
  4. Splunk
  5. ELK

Do you wish to enable support for monitoring your network with Blockscout? [N/y] Y Where should we create the config files for this network? Please choose either an empty directory, or a path to a new directory that does not yet exist. Default: ./quorum-test-network

✅ Installation complete.

cd quorum-test-network

./run.sh

docker logs quorum-test-network_validator1_1

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens] The same happens on all validators, including rpcnode

docker logs quorum-test-network-validator1-1 cp: cannot create regular file '/config/genesis.json': Permission denied 2022-01-10 16:30:30,227 main ERROR Unable to create file /tmp/besu/besu-5f5ccc32ebf5.log java.io.IOException: Permission denied at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) at java.base/java.io.File.createNewFile(Unknown Source) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:721) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:704) at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:30,234 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@55f616cf[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@55f616cf[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:30,237 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:234) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:30,238 main ERROR Null object returned for RollingFile in Appenders. 2022-01-10 16:30:30,244 main ERROR Unable to locate appender "RollingFile" for logger config "root" 2022-01-10 16:30:30,345 main INFO Registered Log4j as the java.util.logging.LogManager. {"timestamp":"2022-01-10T16:30:32,745","container":"5f5ccc32ebf5","level":"INFO","thread":"main","class":"KeyPairUtil","message":"Generated new public key 0x03d136e018dbbf3c984ec530e894d0c93129322f8648e0af8f9a88084ee1e8feb3699cba186f7896431db62d969b15671fe7102f8f7d00bb432465e7c4b9c91f and stored it to /opt/besu/key","throwable":""} 2022-01-10 16:30:34,312 main ERROR Unable to create file /tmp/besu/besu-5f5ccc32ebf5.log java.io.IOException: Permission denied at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) at java.base/java.io.File.createNewFile(Unknown Source) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:721) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:704) at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:34,352 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@55f616cf[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@55f616cf[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:34,357 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:234) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:272) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) at org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:599) at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:585) at org.hyperledger.besu.Besu.setupLogging(Besu.java:71) at org.hyperledger.besu.Besu.main(Besu.java:37)

2022-01-10 16:30:34,360 main ERROR Null object returned for RollingFile in Appenders. 2022-01-10 16:30:34,367 main ERROR Unable to locate appender "RollingFile" for logger config "root" 2022-01-10 16:30:34,549 main INFO Registered Log4j as the java.util.logging.LogManager. 2022-01-10 16:30:37,401 main ERROR Unable to create file /tmp/besu/besu-5f5ccc32ebf5.log java.io.IOException: Permission denied at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) at java.base/java.io.File.createNewFile(Unknown Source) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:721) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.java:704) at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:113) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.config.Configurator.reconfigure(Configurator.java:278) at org.hyperledger.besu.cli.BesuCommand.configureLogging(BesuCommand.java:1469) at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1208) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:53) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:31) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1383) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1201) at org.hyperledger.besu.Besu.main(Besu.java:50)

2022-01-10 16:30:37,443 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@38600b[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] java.lang.IllegalStateException: ManagerFactory [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@609db43b] unable to create manager for [/tmp/besu/besu-5f5ccc32ebf5.log] with data [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@38600b[pattern=/temp/besu/besu-5f5ccc32ebf5.log, append=true, bufferedIO=true, bufferSize=8192, policy=CompositeTriggeringPolicy(policies=[SizeBasedTriggeringPolicy(size=10485760)]), strategy=DefaultRolloverStrategy(min=1, max=7, useMax=true), advertiseURI=null, layout={"timestamp":"%d{ISO8601}","container":"5f5ccc32ebf5","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n, filePermissions=null, fileOwner=null]] at org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:115) at org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) at org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:217) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:146) at org.apache.logging.log4j.core.appender.RollingFileAppender$Builder.build(RollingFileAppender.java:62) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:122) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.config.Configurator.reconfigure(Configurator.java:278) at org.hyperledger.besu.cli.BesuCommand.configureLogging(BesuCommand.java:1469) at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1208) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:53) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:31) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1383) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1201) at org.hyperledger.besu.Besu.main(Besu.java:50)

2022-01-10 16:30:37,450 main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.findFactoryMethod(PluginBuilder.java:234) at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:134) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1000) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:940) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:932) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:551) at org.hyperledger.besu.cli.logging.XmlExtensionConfiguration.doConfigure(XmlExtensionConfiguration.java:40) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:241) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:287) at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:627) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:700) at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:717) at org.apache.logging.log4j.core.config.Configurator.reconfigure(Configurator.java:278) at org.hyperledger.besu.cli.BesuCommand.configureLogging(BesuCommand.java:1469) at org.hyperledger.besu.cli.BesuCommand.run(BesuCommand.java:1208) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2346) at picocli.CommandLine$RunLast.handle(CommandLine.java:2311) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:53) at org.hyperledger.besu.cli.util.ConfigOptionSearchAndRunHandler.handle(ConfigOptionSearchAndRunHandler.java:31) at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:2172) at picocli.CommandLine.parseWithHandlers(CommandLine.java:2550) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1383) at org.hyperledger.besu.cli.BesuCommand.parse(BesuCommand.java:1201) at org.hyperledger.besu.Besu.main(Besu.java:50)

2022-01-10 16:30:37,472 main ERROR Null object returned for RollingFile in Appenders. 2022-01-10 16:30:37,487 main ERROR Unable to locate appender "RollingFile" for logger config "root" Setting logging level to INFO ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8Unable to load genesis file. java.io.FileNotFoundException: /config/genesis.json (No such file or directory)

To display full help: besu [COMMAND] --help

Frequency: [What percentage of the time does it occur?] everytime

Versions (Add all that apply)

Server: Docker Engine - Community Engine: Version: 20.10.12 API version: 1.41 (minimum version 1.12) Go version: go1.16.12 Git commit: 459d0df Built: Mon Dec 13 11:43:42 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.12 GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d runc: Version: 1.0.2 GitCommit: v1.0.2-0-g52b36a2 docker-init: Version: 0.19.0 GitCommit: de40ad0

  • Cloud VM, type, size: [Amazon Web Services I3-large] on-prem 4 vCPU, 8gb ram, 64Gb storage

Additional Information

I tried this on the VM I was using now, then I tried on a completly fresh instance/vm of ubuntu 20.04 (installed node, npm, docker, docker-compose), but it gave the same error.

Interestingly enough, I also tried on an existing VM for an old different project, and it started without hickups, maybe docker requires extra configuration that I did not do on the new instances? Or some new version of something produces the error?

Versions (Add all that apply) [for the working vm]

Server: Docker Engine - Community Engine: Version: 19.03.13 API version: 1.40 (minimum version 1.12) Go version: go1.13.15 Git commit: 4484c46d9d Built: Wed Sep 16 17:01:06 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.3.7 GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175 runc: Version: 1.0.0-rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker-init: Version: 0.18.0 GitCommit: fec3683

  • Cloud VM, type, size: [Amazon Web Services I3-large] on-prem 4 vCPU, 4gb ram, 20gb storage ish
joshuafernandes commented 2 years ago

Hi @kimborgen can you run docker images or docker ps and post the output here please? Im not sure what user you're running on Ubuntu, but you do need to add permissions for that user to be in the docker group. https://docs.docker.com/engine/install/linux-postinstall/

Could you confirm that you have done the above please? I am unable to reproduce this behaviour on my machine which also runs 20.04LTS

kimborgen commented 2 years ago
docker ps
CONTAINER ID   IMAGE                                                COMMAND                    CREATED         STATUS                          PORTS                                         NAMES
7d1e4ae6bf07   consensys/quorum-ethsigner:21.3.2                    "/opt/ethsigner/bin/…"     3 minutes ago   Up 3 minutes                    0.0.0.0:18545->8545/tcp, :::18545->8545/tcp   quorum-test-network_ethsignerProxy_1
64126e2bac27   quorum-dev-quickstart/block-explorer-light:develop   "/docker-entrypoint.…"     3 minutes ago   Up 3 minutes                    0.0.0.0:25000->80/tcp, :::25000->80/tcp       quorum-test-network_explorer_1
63d65c3ace9b   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   3 minutes ago   Restarting (1) 1 second ago                                                   quorum-test-network_validator2_1
3f31b76e1d98   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   3 minutes ago   Restarting (1) 58 seconds ago                                                 rpcnode
a9d07ef9a79f   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   3 minutes ago   Restarting (1) 3 seconds ago                                                  quorum-test-network_validator3_1
1ed202993081   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   3 minutes ago   Restarting (1) 58 seconds ago                                                 quorum-test-network_validator4_1
1217e98dacb3   grafana/grafana                                      "/run.sh"                  3 minutes ago   Up 3 minutes                    0.0.0.0:3000->3000/tcp, :::3000->3000/tcp     quorum-test-network_grafana_1
88cd5d56cc27   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   3 minutes ago   Up 2 minutes (unhealthy)        8545-8547/tcp, 30303/tcp                      quorum-test-network_validator1_1
a82a3057414d   prom/prometheus                                      "/bin/prometheus --c…"     3 minutes ago   Up 3 minutes                    0.0.0.0:9090->9090/tcp, :::9090->9090/tcp     quorum-test-network_prometheus_1
0bfb1cff49c1   postgres:13.4-alpine                                 "docker-entrypoint.s…"     3 minutes ago   Up 3 minutes (healthy)          0.0.0.0:49155->5432/tcp, :::49155->5432/tcp   blockscoutpostgres

docker images
REPOSITORY                                   TAG           IMAGE ID       CREATED        SIZE
quorum-dev-quickstart/block-explorer-light   develop       38fd979a4759   2 hours ago    27.4MB
nginx                                        alpine        cc44224bfe20   12 days ago    23.4MB
prom/prometheus                              latest        a3d385fc29f9   3 weeks ago    201MB
grafana/grafana                              latest        9b957e098315   4 weeks ago    275MB
consensys/blockscout                         v4.0.0-beta   3f44d5bee05f   4 weeks ago    2.59GB
hyperledger/besu                             21.10.2       9ecdc484ffcc   8 weeks ago    357MB
postgres                                     13.4-alpine   682810fa689e   2 months ago   192MB
hello-world                                  latest        feb5d9fea6a5   3 months ago   13.3kB
consensys/quorum-ethsigner                   21.3.2        24b9c0382a9b   7 months ago   259MB

I confirm I executed the steps in postinstall

cat /etc/group
....
kim:x:1001:
docker:x:998:kim

I played around, for example tried to use rootless docker, no luck.

Fresh VM ubuntu 20.04LTS procedure

I tried a new fresh VM

>Login as root
apt-get update && apt-get upgrade
adduser kim
usermod -aG sudo kim
>add ssh keys for kim, login as kim trough vscode ssh

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
node -v
v16.13.2
npm -v
8.1.2

https://docs.docker.com/engine/install/ubuntu/
sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

 sudo apt-get install docker-ce docker-ce-cli containerd.io

https://docs.docker.com/engine/install/linux-postinstall/
sudo groupadd docker
groupadd: group 'docker' already exists
sudo usermod -aG docker kim
sudo reboot now
docker run hello-world
this works!
 sudo systemctl enable docker.service

 sudo systemctl enable containerd.service

https://docs.docker.com/compose/install/
 sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
 sudo chmod +x /usr/local/bin/docker-compose
docker-compose version 
1.29.2, build 5becea4c

https://consensys.net/quorum/products/guides/getting-started-with-consensys-quorum/
npx quorum-dev-quickstart
cd quorum-test-network/
./run.sh 
*************************************
Quorum Dev Quickstart
*************************************
Start network
--------------------
Starting network...
validator1 uses an image, skipping
validator2 uses an image, skipping
validator3 uses an image, skipping
validator4 uses an image, skipping
rpcnode uses an image, skipping
ethsignerProxy uses an image, skipping
blockscoutpostgres uses an image, skipping
blockscout uses an image, skipping
prometheus uses an image, skipping
grafana uses an image, skipping
Building explorer
Sending build context to Docker daemon  3.478MB
Step 1/4 : FROM nginx:alpine
alpine: Pulling from library/nginx
59bf1c3509f3: Pull complete 
f3322597df46: Pull complete 
d09cf91cabdc: Pull complete 
3a97535ac2ef: Pull complete 
919ade35f869: Pull complete 
40e5d2fe5bcd: Pull complete 
Digest: sha256:eb05700fe7baa6890b74278e39b66b2ed1326831f9ec3ed4bdc6361a4ac2f333
Status: Downloaded newer image for nginx:alpine
 ---> cc44224bfe20
Step 2/4 : COPY dist /usr/share/nginx/html
 ---> c41c18c3f6f7
Step 3/4 : RUN sed -i 's@NODE_ENV:"production",BASE_URL:"/"@NODE_URL:"/rpcnode/jsonrpc",CONNECTION_TYPE:"json_rpc"@g' /usr/share/nginx/html/js/*.js
 ---> Running in d998daf0469f
Removing intermediate container d998daf0469f
 ---> adfff9344d1c
Step 4/4 : COPY default.nginx /etc/nginx/conf.d/default.conf
 ---> 44032759b8b9
Successfully built 44032759b8b9
Successfully tagged quorum-dev-quickstart/block-explorer-light:develop
Creating network "quorum-dev-quickstart" with driver "bridge"
Creating volume "quorum-test-network_public-keys" with default driver
Creating volume "quorum-test-network_prometheus" with default driver
Creating volume "quorum-test-network_grafana" with default driver
Creating volume "quorum-test-network_member1tessera" with default driver
Creating volume "quorum-test-network_member2tessera" with default driver
Creating volume "quorum-test-network_member3tessera" with default driver
Creating volume "quorum-test-network_splunk" with default driver
Creating volume "quorum-test-network_ethlogger" with default driver
Creating volume "quorum-test-network_blockscoutpostgres" with default driver
Pulling validator1 (hyperledger/besu:21.10.2)...
21.10.2: Pulling from hyperledger/besu
b380bbd43752: Pull complete
72345ef1bcc1: Pull complete
aef2a1a17dd6: Pull complete
a8d0ebedf112: Pull complete
f97e3e7f4f41: Pull complete
c4b8780c0143: Pull complete
Digest: sha256:d8610ffb3c6e74775efa2c4c77cbbc08b8ad8f325c5349e909cfebfdc495916a
Status: Downloaded newer image for hyperledger/besu:21.10.2
Pulling ethsignerProxy (consensys/quorum-ethsigner:21.3.2)...
21.3.2: Pulling from consensys/quorum-ethsigner
bb79b6b2107f: Pull complete
00028440d132: Pull complete
ebd07266fb43: Pull complete
4194f179c57f: Pull complete
05e45957a5c7: Pull complete
Digest: sha256:275537e35ac2ab86307fe7d675d1b58720db2b66f15a9dd3490d2b30dfa66e86
Status: Downloaded newer image for consensys/quorum-ethsigner:21.3.2
Pulling blockscoutpostgres (postgres:13.4-alpine)...
13.4-alpine: Pulling from library/postgres
a0d0a0d46f8b: Pull complete
5034a66b99e6: Pull complete
82e9eb77798b: Pull complete
314b9347faf5: Pull complete
2625be9fae82: Pull complete
5ec8358e2a99: Pull complete
2e9ccfc29d86: Pull complete
4b103693500d: Pull complete
Digest: sha256:c170270dc9ba94f491375e366fa2cf46d0bc0027e4a69d70e6e9d1454ba748dc
Status: Downloaded newer image for postgres:13.4-alpine
Pulling blockscout (consensys/blockscout:v4.0.0-beta)...
v4.0.0-beta: Pulling from consensys/blockscout
5843afab3874: Pull complete
05def8f4010c: Pull complete
b858a3b25d5c: Pull complete
0e6c7faf5700: Pull complete
c022a15714b8: Pull complete
6ac9113bbbcc: Pull complete
1fee81bb1628: Pull complete
a6aa9d69b686: Pull complete
9c4b183cabe2: Pull complete
d91ccef805e8: Pull complete
86ef509cb9ca: Pull complete
551e5a25eb32: Pull complete
0b256fb2c625: Pull complete
f3a185863c04: Pull complete
9e1170b5a077: Pull complete
b51bd5ee35fc: Pull complete
efd9e12311e9: Pull complete
aa21a7f2421d: Pull complete
e051ca082751: Pull complete
f204d1b9b42a: Pull complete
975b8d950c7b: Pull complete
87d6996eec8f: Pull complete
44b7846256ff: Pull complete
1b4c7da6a6ea: Pull complete
Digest: sha256:cff353603f1af7dc118243f8277632c60611b569d3f707cd2599316489b0e94f
Status: Downloaded newer image for consensys/blockscout:v4.0.0-beta
Pulling prometheus (prom/prometheus:)...
latest: Pulling from prom/prometheus
3cb635b06aa2: Pull complete
34f699df6fe0: Pull complete
33d6c9635e0f: Pull complete
f2af7323bed8: Pull complete
c16675a6a294: Pull complete
827843f6afe6: Pull complete
3d272942eeaf: Pull complete
7e785cfa34da: Pull complete
05e324559e3b: Pull complete
170620261a59: Pull complete
ec35f5996032: Pull complete
5509173eb708: Pull complete
Digest: sha256:cb9817249c346d6cfadebe383ed3b3cd4c540f623db40c4ca00da2ada45259bb
Status: Downloaded newer image for prom/prometheus:latest
Pulling grafana (grafana/grafana:)...
latest: Pulling from grafana/grafana
97518928ae5f: Pull complete
5b58818b7f48: Pull complete
d9a64d9fd162: Pull complete
4e368e1b924c: Pull complete
867f7fdd92d9: Pull complete
387c55415012: Pull complete
07f94c8f51cd: Pull complete
ce8cf00ff6aa: Pull complete
e44858b5f948: Pull complete
4000fdbdd2a3: Pull complete
Digest: sha256:18d94ae734accd66bccf22daed7bdb20c6b99aa0f2c687eea3ce4275fe275062
Status: Downloaded newer image for grafana/grafana:latest
Creating quorum-test-network_grafana_1    ... done
Creating blockscoutpostgres               ... done
Creating quorum-test-network_prometheus_1 ... done
Creating quorum-test-network_validator1_1 ... done
Creating blockscout                       ... done
Creating quorum-test-network_validator2_1 ... done
Creating quorum-test-network_validator3_1 ... done
Creating quorum-test-network_validator4_1 ... done
Creating rpcnode                          ... done
Creating quorum-test-network_explorer_1       ... done
Creating quorum-test-network_ethsignerProxy_1 ... done
*************************************
Quorum Dev Quickstart 
*************************************
----------------------------------
List endpoints and services
----------------------------------
JSON-RPC HTTP service endpoint                 : http://localhost:8545
JSON-RPC WebSocket service endpoint            : ws://localhost:8546
Web block explorer address                     : http://localhost:25000/
Blockscout address                             : http://localhost:26000/
Prometheus address                             : http://localhost:9090/graph
Grafana address                                : http://localhost:3000/d/XE4V0WGZz/besu-overview?orgId=1&refresh=10s&from=now-30m&to=now&var-system=All

For more information on the endpoints and services, refer to README.md in the installation directory.
****************************************************************

docker ps
CONTAINER ID   IMAGE                                                COMMAND                    CREATED              STATUS                             PORTS                                         NAMES
3ededa5c8831   consensys/quorum-ethsigner:21.3.2                    "/opt/ethsigner/bin/…"     About a minute ago   Up About a minute                  0.0.0.0:18545->8545/tcp, :::18545->8545/tcp   quorum-test-network_ethsignerProxy_1
95debf34cfbc   quorum-dev-quickstart/block-explorer-light:develop   "/docker-entrypoint.…"     About a minute ago   Up About a minute                  0.0.0.0:25000->80/tcp, :::25000->80/tcp       quorum-test-network_explorer_1
17a476a670db   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   About a minute ago   Restarting (1) 5 seconds ago                                                     rpcnode
b921d2b63215   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   About a minute ago   Restarting (1) 7 seconds ago                                                     quorum-test-network_validator3_1
69ce73cd73d0   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   About a minute ago   Restarting (1) 19 seconds ago                                                    quorum-test-network_validator4_1
ccd9e928a390   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   About a minute ago   Restarting (1) 6 seconds ago                                                     quorum-test-network_validator2_1
12b69fc6c327   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   2 minutes ago        Up 12 seconds (health: starting)   8545-8547/tcp, 30303/tcp                      quorum-test-network_validator1_1
1cd14054033c   prom/prometheus                                      "/bin/prometheus --c…"     2 minutes ago        Up About a minute                  0.0.0.0:9090->9090/tcp, :::9090->9090/tcp     quorum-test-network_prometheus_1
c39d7f89c919   postgres:13.4-alpine                                 "docker-entrypoint.s…"     2 minutes ago        Up About a minute (healthy)        0.0.0.0:49153->5432/tcp, :::49153->5432/tcp   blockscoutpostgres
eecedf374bc5   grafana/grafana                                      "/run.sh"                  2 minutes ago        Up About a minute                  0.0.0.0:3000->3000/tcp, :::3000->3000/tcp     quorum-test-network_grafana_1

docker images
REPOSITORY                                   TAG           IMAGE ID       CREATED         SIZE
quorum-dev-quickstart/block-explorer-light   develop       44032759b8b9   4 minutes ago   27.4MB
nginx                                        alpine        cc44224bfe20   12 days ago     23.5MB
prom/prometheus                              latest        a3d385fc29f9   3 weeks ago     201MB
grafana/grafana                              latest        9b957e098315   4 weeks ago     275MB
consensys/blockscout                         v4.0.0-beta   3f44d5bee05f   4 weeks ago     2.59GB
hyperledger/besu                             21.10.2       9ecdc484ffcc   8 weeks ago     357MB
postgres                                     13.4-alpine   682810fa689e   2 months ago    192MB
hello-world                                  latest        feb5d9fea6a5   3 months ago    13.3kB
consensys/quorum-ethsigner                   21.3.2        24b9c0382a9b   7 months ago    259MB

./remove.sh

Gives the same error as above

I also tried

fresh 18.04 LTS vm

Then I tried a fresh 18.04 vm, with the same procedure as above, and it worked!

docker ps
CONTAINER ID   IMAGE                                                COMMAND                    CREATED          STATUS                    PORTS                                                                                NAMES
0a4a17c1ed8a   consensys/quorum-ethsigner:21.3.2                    "/opt/ethsigner/bin/…"     21 minutes ago   Up 21 minutes             0.0.0.0:18545->8545/tcp, :::18545->8545/tcp                                          quorum-test-network_ethsignerProxy_1
4a28f902fd6c   quorum-dev-quickstart/block-explorer-light:develop   "/docker-entrypoint.…"     21 minutes ago   Up 21 minutes             0.0.0.0:25000->80/tcp, :::25000->80/tcp                                              quorum-test-network_explorer_1
66bcb11076d8   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   21 minutes ago   Up 21 minutes (healthy)   8547/tcp, 0.0.0.0:8545-8546->8545-8546/tcp, :::8545-8546->8545-8546/tcp, 30303/tcp   rpcnode
e35cbfa39945   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   21 minutes ago   Up 21 minutes (healthy)   8545-8547/tcp, 30303/tcp                                                             quorum-test-network_validator4_1
9998aa2acda7   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   21 minutes ago   Up 21 minutes (healthy)   8545-8547/tcp, 30303/tcp                                                             quorum-test-network_validator3_1
0897aa550b74   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   21 minutes ago   Up 21 minutes (healthy)   8545-8547/tcp, 30303/tcp                                                             quorum-test-network_validator2_1
390e16c17b23   consensys/blockscout:v4.0.0-beta                     "/bin/sh -c 'cd /opt…"     21 minutes ago   Up 21 minutes             0.0.0.0:26000->4000/tcp, :::26000->4000/tcp                                          blockscout
c1eba2608a43   hyperledger/besu:21.10.2                             "/bin/bash -c '\ncp \"…"   21 minutes ago   Up 21 minutes (healthy)   8545-8547/tcp, 30303/tcp                                                             quorum-test-network_validator1_1
7fb858652c5a   prom/prometheus                                      "/bin/prometheus --c…"     21 minutes ago   Up 21 minutes             0.0.0.0:9090->9090/tcp, :::9090->9090/tcp                                            quorum-test-network_prometheus_1
a3f5efa7dfb0   postgres:13.4-alpine                                 "docker-entrypoint.s…"     21 minutes ago   Up 21 minutes (healthy)   0.0.0.0:49153->5432/tcp, :::49153->5432/tcp                                          blockscoutpostgres
0240332a6c74   grafana/grafana                                      "/run.sh"                  21 minutes ago   Up 21 minutes             0.0.0.0:3000->3000/tcp, :::3000->3000/tcp                                            quorum-test-network_grafana_1

docker images
REPOSITORY                                   TAG           IMAGE ID       CREATED          SIZE
quorum-dev-quickstart/block-explorer-light   develop       7dd9d739c757   23 minutes ago   27.4MB
nginx                                        alpine        cc44224bfe20   12 days ago      23.5MB
prom/prometheus                              latest        a3d385fc29f9   3 weeks ago      201MB
grafana/grafana                              latest        9b957e098315   4 weeks ago      275MB
consensys/blockscout                         v4.0.0-beta   3f44d5bee05f   4 weeks ago      2.59GB
hyperledger/besu                             21.10.2       9ecdc484ffcc   8 weeks ago      357MB
postgres                                     13.4-alpine   682810fa689e   2 months ago     192MB
hello-world                                  latest        feb5d9fea6a5   3 months ago     13.3kB
consensys/quorum-ethsigner                   21.3.2        24b9c0382a9b   7 months ago     259MB

I will be happy to debug this further

gomezgoiri commented 2 years ago

Hi there,

I got the same error and I think it is related to the fact that the user I execute npx quorum-dev-quickstart with is not the user with uid 1000 (which is the one used by default in the docker image). A quick and ugly fix is to make the user with uid 1000 the owner of the config folder generated.

joshuafernandes commented 2 years ago

Thanks for this @kimborgen @gomezgoiri I'll add a section on troubleshooting to the docs relating to this issue. This specific issue appears to be with the user's setup needs the docker group specifically added and ideally there needs to be a uid 1000. We can add

  image: some:img
  user: $(id -u):$(id -g) 

but there is no guarantee that a user's setup has their userid as 1000. This appears to be the case most of the time, but not sure why on a clean 20.04 setup your user kim appears to be uid 1001. Would also discourage the use of root to run things

joshuafernandes commented 2 years ago

Addressed in #134