langstream icon indicating copy to clipboard operation
langstream copied to clipboard

Downloading files from GH with docker run doesn't work on Linux

Open cdbartholomew opened this issue 1 year ago • 0 comments

I installed langstream on Linux and tried to run a sample app. I am getting an error trying to access the secrets file.

My langstream version:

langstream -V
LangStream CLI 0.0.19 (f0d59d56)

The logs:

langstream docker run test -app https://github.com/LangStream/langstream/tree/main/examples/applications/webcrawler-source  -s https://github.com/LangStream/langstream/blob/main/examples/secrets/secrets.yaml
downloaded GitHub directory (3 s)
downloaded GitHub directory (3 s)
Tenant default
Application test
Application directory: /tmp/langstream1002535876525024455/examples/applications/webcrawler-source
Running all the agents in the application
Instance file: null
Secrets file: /tmp/langstream16642451826261127081/examples/secrets/secrets.yaml
Start broker: true
Start S3: true
Start Webservices true
Using default instance file that connects to the Kafka broker inside the docker container
Starting Broker
Starting Minio
Formatting 1st pool, 1 set(s), 1 drives per set.
WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable.
WARNING: Detected default credentials 'minioadmin:minioadmin', we recommend that you change these values with 'MINIO_ROOT_USER' and 'MINIO_ROOT_PASSWORD' environment variables
MinIO Object Storage Server
Copyright: 2015-2023 MinIO, Inc.
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>
Version: RELEASE.2023-09-07T02-05-02Z (go1.21.1 linux/amd64)

Status:         1 Online, 0 Offline. 
S3-API: http://172.17.0.2:9000  http://127.0.0.1:9000 
RootUser: minioadmin 
RootPass: minioadmin 

Console: http://172.17.0.2:36311 http://127.0.0.1:36311 
RootUser: minioadmin 
RootPass: minioadmin 

Command-line: https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart
   $ mc alias set myminio http://172.17.0.2:9000 minioadmin minioadmin

Documentation: https://min.io/docs/minio/linux/index.html
Warning: The standard parity is set to 0. This can lead to data loss.
21:56:28,615 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.4.7
21:56:28,647 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
21:56:28,653 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/app/lib/ai.langstream-langstream-runtime-impl-0.0.19.jar!/logback.xml]
21:56:28,654 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@75329a49 - Resource [logback.xml] occurs multiple times on the classpath.
21:56:28,654 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@75329a49 - Resource [logback.xml] occurs at [jar:file:/app/lib/ai.langstream-langstream-runtime-impl-0.0.19.jar!/logback.xml]
21:56:28,654 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@75329a49 - Resource [logback.xml] occurs at [jar:file:/app/tester/lib/ai.langstream-langstream-runtime-impl-0.0.19.jar!/logback.xml]
21:56:28,661 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@161479c6 - URL [jar:file:/app/lib/ai.langstream-langstream-runtime-impl-0.0.19.jar!/logback.xml] is not of type file
21:56:28,788 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [STDOUT]
21:56:28,788 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
21:56:28,840 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to INFO
21:56:28,841 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [STDOUT] to Logger[ROOT]
21:56:28,841 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@4313f5bc - End of configuration.
21:56:28,842 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7f010382 - Registering current configuration as safe fallback point

java.nio.file.AccessDeniedException: /code/secrets.yaml
	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:380)
	at java.base/java.nio.file.Files.newByteChannel(Files.java:432)
	at java.base/java.nio.file.Files.readAllBytes(Files.java:3288)
	at java.base/java.nio.file.Files.readString(Files.java:3366)
	at java.base/java.nio.file.Files.readString(Files.java:3325)
	at ai.langstream.runtime.tester.Main.main(Main.java:51)

cdbartholomew avatar Sep 15 '23 22:09 cdbartholomew