Giter VIP home page Giter VIP logo

Comments (14)

carlsverre avatar carlsverre commented on June 6, 2024

Works fine for me. Are you certain you copied the license in correctly? The only way I can reproduce the issue with sail is by copying the license incorrectly. Make sure you surround the license with quotes and include any trailing = characters. Sometimes those can get truncated when you copy/paste.

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

When trying to use this again, i've verified my license is correct and i can use it when i use one of your docker commandline versions: but when i try using it in sail via docker compose i get this:

2023-01-24 01:04:34 Starting SingleStore nodes...
2023-01-24 01:04:41 {}
2023-01-24 01:04:41 Configuring SingleStore nodes...
2023-01-24 01:04:42 Starting SingleStore nodes...
2023-01-24 01:04:48 {}
2023-01-24 01:04:48 Configuring SingleStore nodes...
2023-01-24 01:04:49 Starting SingleStore nodes...
2023-01-24 01:04:41 
2023-01-24 01:04:41 real        0m7.314s
2023-01-24 01:04:41 user        0m1.574s
2023-01-24 01:04:41 sys 0m0.720s
2023-01-24 01:04:41 Error 1888: Unable to reload license file: The provided license is invalid
2023-01-24 01:04:48 
2023-01-24 01:04:48 real        0m5.751s
2023-01-24 01:04:48 user        0m0.327s
2023-01-24 01:04:48 sys 0m0.237s
2023-01-24 01:04:49 Error 1888: Unable to reload license file: The provided license is invalid
2023-01-24 01:04:55 {}
2023-01-24 01:04:55 
2023-01-24 01:04:55 real        0m5.968s
2023-01-24 01:04:55 user        0m0.557s
2023-01-24 01:04:55 sys 0m0.163s
2023-01-24 01:04:56 Configuring SingleStore nodes...
2023-01-24 01:04:56 Error 1888: Unable to reload license file: The provided license is invalid

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024
version: '3'
services:
    laravel.test:
        build:
            context: ./vendor/laravel/sail/runtimes/8.2
            dockerfile: Dockerfile
            args:
                WWWGROUP: '${WWWGROUP}'
        image: sail-8.2/app
        extra_hosts:
            - 'host.docker.internal:host-gateway'
        ports:
            - '${APP_PORT:-80}:80'
            - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
        environment:
            WWWUSER: '${WWWUSER}'
            LARAVEL_SAIL: 1
            XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
            XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
        volumes:
            - '.:/var/www/html'
        networks:
            - sail
        depends_on:
            - singlestore
            - redis
            - minio
            - mailhog
    singlestore:
        image: ghcr.io/singlestore-labs/singlestoredb-dev:latest
        volumes:
            - 'sail-singlestore:/data'
        restart: always
        environment:
            - SINGLESTORE_LICENSE='${SINGLESTORE_LICENSE}'
            - ROOT_PASSWORD='${DB_PASSWORD}'
        ports:
            - '${FORWARD_SINGLESTORE_PORT:-3306}:3306'
            - '${FORWARD_SINGLESTORE_UI_PORT:-8080}:8080'
            - '${FORWARD_SINGLESTORE_API_PORT:-9000}:9000'
        networks:
            - sail
    redis:
        image: 'redis:alpine'
        ports:
            - '${FORWARD_REDIS_PORT:-6379}:6379'
        volumes:
            - 'sail-redis:/data'
        networks:
            - sail
        healthcheck:
            test: [ "CMD", "redis-cli", "ping" ]
            retries: 3
            timeout: 5s
    minio:
        image: 'minio/minio:latest'
        ports:
            - '${FORWARD_MINIO_PORT:-9001}:9000'
            - '${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900'
        environment:
            MINIO_ROOT_USER: 'sail'
            MINIO_ROOT_PASSWORD: 'password'
        volumes:
            - 'sail-minio:/data/minio'
        networks:
            - sail
        command: minio server /data/minio --console-address ":8900"
        healthcheck:
            test:
                [
                    "CMD",
                    "curl",
                    "-f",
                    "http://localhost:9000/minio/health/live"
                ]
            retries: 3
            timeout: 5s
    mailhog:
        image: 'mailhog/mailhog:latest'
        ports:
            - '${FORWARD_MAILHOG_PORT:-1025}:1025'
            - '${FORWARD_MAILHOG_DASHBOARD_PORT:-8025}:8025'
        networks:
            - sail
networks:
    sail:
        driver: bridge
volumes:
    sail-redis:
        driver: local
    sail-minio:
        driver: local
    sail-singlestore:
        driver: local

I've moved my license key to my .env file but when i run it via command line i receive this with the same license key:

command:

docker run -d --name singlestoredb-dev -e SINGLESTORE_LICENSE="BDI0YzI5OTA2YWQ1NzQ0Mzc5NTBjMDE4NDVhYmFhMmEwAAAAAAAAAAAEAAAAAAAAACgwNAIYaxuADk+Lzmms+3LDi2yj5BWwog5LTyp5AhhcruL4bXIHiDQmTlkE62mbCrwAjoZR/GEAAA==" -e ROOT_PASSWORD="password" -p 3306:3306 -p 8080:8080 -p 9000:9000 ghcr.io/singlestore-labs/singlestoredb-dev:latest

output:

2023-01-24 01:08:58 Starting SingleStore nodes...
2023-01-24 01:09:03 {}
2023-01-24 01:09:04 Configuring SingleStore nodes...
2023-01-24 01:09:04 {}
2023-01-24 01:09:04 {}
2023-01-24 01:09:04 ==> /logs/master/tracelogs/memsql.log <==
2023-01-24 01:09:04 05317281 2023-01-24 06:09:04.111  ERROR: ProcessNetworkEvents Thread 115062 (ntid 249, conn id -1): IsOK: Heartbeat connection error reading heartbeat response header to 127.0.0.1:3307 (2 = End of file)
2023-01-24 01:09:04 05377828 2023-01-24 06:09:04.172   INFO: Thread 115120 (ntid 123, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT node_id FROM INFORMATION_SCHEMA.lmv_nodes' submitted 151 milliseconds ago, queued for 29 milliseconds, compiled asynchronously in 122 milliseconds
2023-01-24 01:09:04 05381571 2023-01-24 06:09:04.175   INFO: Thread 115120 (ntid 123, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT @@memsql_version' submitted 120 milliseconds ago, queued for 13 milliseconds, compiled asynchronously in 107 milliseconds
2023-01-24 01:09:04 05467426 2023-01-24 06:09:04.261  ERROR: ProcessNetworkEvents Thread 115062 (ntid 249, conn id -1): IsOK: Heartbeat connection error reading heartbeat response header to 127.0.0.1:3307 (2 = End of file)
2023-01-24 01:09:04 05567978 2023-01-24 06:09:04.362   INFO: Thread 100000 (ntid 263, conn id 5): SetLicenseV4: Build Hash = 24c29906ad574437950c01845abaa2a0
2023-01-24 01:09:04 05568007 2023-01-24 06:09:04.362   INFO: Thread 100000 (ntid 263, conn id 5): SetLicenseV4: Expiration = unlimited
2023-01-24 01:09:04 05568014 2023-01-24 06:09:04.362   INFO: Thread 100000 (ntid 263, conn id 5): SetLicenseV4: Capacity = 4 units
2023-01-24 01:09:04 05568020 2023-01-24 06:09:04.362   INFO: Thread 100000 (ntid 263, conn id 5): SetLicenseV4: Options = 40 (Free edition)
2023-01-24 01:09:04 05617432 2023-01-24 06:09:04.411  ERROR: ProcessNetworkEvents Thread 115062 (ntid 249, conn id -1): IsOK: Heartbeat connection error reading heartbeat response header to 127.0.0.1:3307 (2 = End of file)
2023-01-24 01:09:04 05648695 2023-01-24 06:09:04.442   INFO: Thread 100000 (ntid 454, conn id 7): RegisterAsyncLLVMCompile: Query information_schema.'SELECT HOST FROM information_schema.USERS where USER=^ AND IS_DELETED=@' submitted for asynchronous compilation
2023-01-24 01:09:04 
2023-01-24 01:09:04 ==> /logs/leaf/tracelogs/memsql.log <==
2023-01-24 01:09:04 05553922 2023-01-24 06:09:04.338   INFO: Thread 115120 (ntid 100, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT node_id FROM INFORMATION_SCHEMA.lmv_nodes' submitted 148 milliseconds ago, queued for 10 milliseconds, compiled asynchronously in 138 milliseconds
2023-01-24 01:09:04 05557792 2023-01-24 06:09:04.342   INFO: Thread 115120 (ntid 100, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT @@memsql_version' submitted 140 milliseconds ago, queued for 11 milliseconds, compiled asynchronously in 129 milliseconds
2023-01-24 01:09:04 05584337 2023-01-24 06:09:04.368   INFO: Replaying logs for db `cluster`: filename `logs/cluster_log_v1_0`: offset 0x1a0fa: Thread 115092 (ntid 161, conn id -1): SetLicenseV4: Build Hash = 24c29906ad574437950c01845abaa2a0
2023-01-24 01:09:04 05584362 2023-01-24 06:09:04.368   INFO: Replaying logs for db `cluster`: filename `logs/cluster_log_v1_0`: offset 0x1a0fa: Thread 115092 (ntid 161, conn id -1): SetLicenseV4: Expiration = unlimited
2023-01-24 01:09:04 05584369 2023-01-24 06:09:04.368   INFO: Replaying logs for db `cluster`: filename `logs/cluster_log_v1_0`: offset 0x1a0fa: Thread 115092 (ntid 161, conn id -1): SetLicenseV4: Capacity = 4 units
2023-01-24 01:09:04 05584375 2023-01-24 06:09:04.368   INFO: Replaying logs for db `cluster`: filename `logs/cluster_log_v1_0`: offset 0x1a0fa: Thread 115092 (ntid 161, conn id -1): SetLicenseV4: Options = 40 (Free edition)
2023-01-24 01:09:04 05662354 2023-01-24 06:09:04.446   INFO: Thread 115120 (ntid 100, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT AVAILABILITY_GROUP FROM information_schema.LEAVES
2023-01-24 01:09:04 JOIN information_schema.LMV_NODES
2023-01-24 01:09:04 ON information_schema.LEAVES.NODE_ID=information_schema.LMV_NODES.NODE_ID' submitted 232 milliseconds ago, queued for 20 milliseconds, compiled asynchronously in 212 milliseconds
2023-01-24 01:09:04 05670888 2023-01-24 06:09:04.455   INFO: Thread 100000 (ntid 259, conn id 15): RegisterAsyncLLVMCompile: Query information_schema.'SELECT HOST FROM information_schema.USERS where USER=^ AND IS_DELETED=@' submitted for asynchronous compilation
2023-01-24 01:09:04 
2023-01-24 01:09:04 ==> /var/lib/singlestoredb-studio/studio.log <==
2023-01-24 01:09:05 
2023-01-24 01:09:05 ==> /logs/master/tracelogs/memsql.log <==
2023-01-24 01:09:05 05767504 2023-01-24 06:09:04.561  ERROR: ProcessNetworkEvents Thread 115062 (ntid 249, conn id -1): IsOK: Heartbeat connection error reading heartbeat response header to 127.0.0.1:3307 (2 = End of file)
2023-01-24 01:09:05 05854054 2023-01-24 06:09:04.648   INFO: Thread 115120 (ntid 123, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT HOST FROM information_schema.USERS where USER=^ AND IS_DELETED=@' submitted 214 milliseconds ago, queued for 10 milliseconds, compiled asynchronously in 204 milliseconds
2023-01-24 01:09:05 
2023-01-24 01:09:05 ==> /logs/leaf/tracelogs/memsql.log <==
2023-01-24 01:09:05 05725764 2023-01-24 06:09:04.510   INFO: Safe Restart Thread: Thread 115062 (ntid 192, conn id -1): SafeRestartThreadFn: Done setting up cluster synchronization, starting up clustering operations.
2023-01-24 01:09:05 05725798 2023-01-24 06:09:04.510   INFO: Safe Restart Thread: Thread 115062 (ntid 192, conn id -1): ReconcileRefDbsWithMetadata: Reconciling reference databases with metadata.
2023-01-24 01:09:05 05725830 2023-01-24 06:09:04.510   INFO: Safe Restart Thread: Thread 115062 (ntid 192, conn id -1): ReconcileRefDbsWithMetadata: Done reconciling reference databases with metadata.
2023-01-24 01:09:05 05725983 2023-01-24 06:09:04.510   INFO: REPL_MGMT_TRACE_SNAPSHOT(1): {"T":"global","ID":1,"CCL":27,"SCL":27,"SS":"Success","SNI":2,"LRL":27,"LRT":4,"CGT":3}
2023-01-24 01:09:05 05726058 2023-01-24 06:09:04.510   INFO: Safe Restart Thread: Thread 115062 (ntid 192, conn id -1): WaitForLSNWithTimeout: Sync ReplicationManagement success sync to lsn 0x1b. ReplicationManagement thread at 0x1b.
2023-01-24 01:09:05 05726081 2023-01-24 06:09:04.510   INFO: Safe Restart Thread: Thread 115062 (ntid 192, conn id -1): SafeRestartThreadFn: Safe Restart completed.
2023-01-24 01:09:05 05875987 2023-01-24 06:09:04.660   INFO: Thread 115120 (ntid 100, conn id -1): OnAsyncCompileCompleted: Query information_schema.'SELECT HOST FROM information_schema.USERS where USER=^ AND IS_DELETED=@' submitted 214 milliseconds ago, queued for 11 milliseconds, compiled asynchronously in 203 milliseconds
2023-01-24 01:09:05 
2023-01-24 01:09:05 ==> /var/lib/singlestoredb-studio/studio.log <==
2023-01-24 01:09:05 2023/01/24 06:09:04 env.go:90 Log Opened
2023-01-24 01:09:05 2023/01/24 06:09:04 server.go:74 Listening on 0.0.0.0:8080
2023-01-24 01:09:05 2023/01/24 06:09:04 server.go:93 HTTPS configuration was not detected, serving with HTTP
2023-01-24 01:09:03 
2023-01-24 01:09:03 real0m5.750s
2023-01-24 01:09:03 user0m0.268s
2023-01-24 01:09:03 sys0m0.180s
2023-01-24 01:09:08 
2023-01-24 01:09:08 ==> /logs/master/tracelogs/memsql.log <==
2023-01-24 01:09:08 09651268 2023-01-24 06:09:08.445   INFO: Thread 100000 (ntid 454, conn id 9): RegisterAsyncLLVMCompile: Query information_schema.'select 1' submitted for asynchronous compilation
2023-01-24 01:09:09 09757569 2023-01-24 06:09:08.551   INFO: Thread 115120 (ntid 123, conn id -1): OnAsyncCompileCompleted: Query information_schema.'select 1' submitted 114 milliseconds ago, queued for 10 milliseconds, compiled asynchronously in 104 milliseconds
2023-01-24 01:09:09 
2023-01-24 01:09:09 ==> /logs/leaf/tracelogs/memsql.log <==
2023-01-24 01:09:09 09794986 2023-01-24 06:09:08.579   INFO: Thread 100000 (ntid 259, conn id 19): RegisterAsyncLLVMCompile: Query information_schema.'select 1' submitted for asynchronous compilation
2023-01-24 01:09:09 09901464 2023-01-24 06:09:08.685   INFO: Thread 115120 (ntid 100, conn id -1): OnAsyncCompileCompleted: Query information_schema.'select 1' submitted 115 milliseconds ago, queued for 11 milliseconds, compiled asynchronously in 104 milliseconds

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

This is now confirmed happening with 2 different license keys, the one i created for my personal use and our companies production key which i'd need for setting this up for my companies developers.

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024
╭─ bash  code  羽129ms⠀                                                                                                                                                                              default@us-west-2  WSL at    24,12:13 
╰─ff composer create-project laravel/laravel singlestore-test
Warning: This development build of Composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Creating a "laravel/laravel" project at "./singlestore-test"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.5.1)
  - Downloading laravel/laravel (v9.5.1)
  - Installing laravel/laravel (v9.5.1): Extracting archive
Created project in /home/necrogami/code/singlestore-test
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 106 installs, 0 updates, 0 removals
  - Locking brick/math (0.10.2)
  - Locking dflydev/dot-access-data (v3.0.2)
  - Locking doctrine/inflector (2.0.6)
  - Locking doctrine/instantiator (2.0.0)
  - Locking doctrine/lexer (3.0.0)
  - Locking dragonmantank/cron-expression (v3.3.2)
  - Locking egulias/email-validator (4.0.1)
  - Locking fakerphp/faker (v1.21.0)
  - Locking filp/whoops (2.14.6)
  - Locking fruitcake/php-cors (v1.2.0)
  - Locking graham-campbell/result-type (v1.1.0)
  - Locking guzzlehttp/guzzle (7.5.0)
  - Locking guzzlehttp/promises (1.5.2)
  - Locking guzzlehttp/psr7 (2.4.3)
  - Locking hamcrest/hamcrest-php (v2.0.1)
  - Locking laravel/framework (v9.48.0)
  - Locking laravel/pint (v1.4.0)
  - Locking laravel/sail (v1.18.1)
  - Locking laravel/sanctum (v3.2.1)
  - Locking laravel/serializable-closure (v1.2.2)
  - Locking laravel/tinker (v2.8.0)
  - Locking league/commonmark (2.3.8)
  - Locking league/config (v1.2.0)
  - Locking league/flysystem (3.12.2)
  - Locking league/mime-type-detection (1.11.0)
  - Locking mockery/mockery (1.5.1)
  - Locking monolog/monolog (2.8.0)
  - Locking myclabs/deep-copy (1.11.0)
  - Locking nesbot/carbon (2.65.0)
  - Locking nette/schema (v1.2.3)
  - Locking nette/utils (v3.2.9)
  - Locking nikic/php-parser (v4.15.3)
  - Locking nunomaduro/collision (v6.4.0)
  - Locking nunomaduro/termwind (v1.15.0)
  - Locking phar-io/manifest (2.0.3)
  - Locking phar-io/version (3.2.1)
  - Locking phpoption/phpoption (1.9.0)
  - Locking phpunit/php-code-coverage (9.2.23)
  - Locking phpunit/php-file-iterator (3.0.6)
  - Locking phpunit/php-invoker (3.1.1)
  - Locking phpunit/php-text-template (2.0.4)
  - Locking phpunit/php-timer (5.0.3)
  - Locking phpunit/phpunit (9.5.28)
  - Locking psr/container (2.0.2)
  - Locking psr/event-dispatcher (1.0.0)
  - Locking psr/http-client (1.0.1)
  - Locking psr/http-factory (1.0.1)
  - Locking psr/http-message (1.0.1)
  - Locking psr/log (3.0.0)
  - Locking psr/simple-cache (3.0.0)
  - Locking psy/psysh (v0.11.11)
  - Locking ralouphie/getallheaders (3.0.3)
  - Locking ramsey/collection (2.0.0)
  - Locking ramsey/uuid (4.7.3)
  - Locking sebastian/cli-parser (1.0.1)
  - Locking sebastian/code-unit (1.0.8)
  - Locking sebastian/code-unit-reverse-lookup (2.0.3)
  - Locking sebastian/comparator (4.0.8)
  - Locking sebastian/complexity (2.0.2)
  - Locking sebastian/diff (4.0.4)
  - Locking sebastian/environment (5.1.4)
  - Locking sebastian/exporter (4.0.5)
  - Locking sebastian/global-state (5.0.5)
  - Locking sebastian/lines-of-code (1.0.3)
  - Locking sebastian/object-enumerator (4.0.4)
  - Locking sebastian/object-reflector (2.0.4)
  - Locking sebastian/recursion-context (4.0.4)
  - Locking sebastian/resource-operations (3.0.3)
  - Locking sebastian/type (3.2.0)
  - Locking sebastian/version (3.0.2)
  - Locking spatie/backtrace (1.2.1)
  - Locking spatie/flare-client-php (1.3.5)
  - Locking spatie/ignition (1.4.3)
  - Locking spatie/laravel-ignition (1.6.4)
  - Locking symfony/console (v6.2.5)
  - Locking symfony/css-selector (v6.2.5)
  - Locking symfony/deprecation-contracts (v3.2.0)
  - Locking symfony/error-handler (v6.2.5)
  - Locking symfony/event-dispatcher (v6.2.5)
  - Locking symfony/event-dispatcher-contracts (v3.2.0)
  - Locking symfony/finder (v6.2.5)
  - Locking symfony/http-foundation (v6.2.5)
  - Locking symfony/http-kernel (v6.2.5)
  - Locking symfony/mailer (v6.2.5)
  - Locking symfony/mime (v6.2.5)
  - Locking symfony/polyfill-ctype (v1.27.0)
  - Locking symfony/polyfill-intl-grapheme (v1.27.0)
  - Locking symfony/polyfill-intl-idn (v1.27.0)
  - Locking symfony/polyfill-intl-normalizer (v1.27.0)
  - Locking symfony/polyfill-mbstring (v1.27.0)
  - Locking symfony/polyfill-php72 (v1.27.0)
  - Locking symfony/polyfill-php80 (v1.27.0)
  - Locking symfony/polyfill-uuid (v1.27.0)
  - Locking symfony/process (v6.2.5)
  - Locking symfony/routing (v6.2.5)
  - Locking symfony/service-contracts (v3.2.0)
  - Locking symfony/string (v6.2.5)
  - Locking symfony/translation (v6.2.5)
  - Locking symfony/translation-contracts (v3.2.0)
  - Locking symfony/uid (v6.2.5)
  - Locking symfony/var-dumper (v6.2.5)
  - Locking theseer/tokenizer (1.2.1)
  - Locking tijsverkoyen/css-to-inline-styles (2.2.6)
  - Locking vlucas/phpdotenv (v5.5.0)
  - Locking voku/portable-ascii (2.0.1)
  - Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 106 installs, 0 updates, 0 removals
  - Downloading doctrine/inflector (2.0.6)
  - Downloading doctrine/lexer (3.0.0)
  - Downloading symfony/polyfill-ctype (v1.27.0)
  - Downloading symfony/deprecation-contracts (v3.2.0)
  - Downloading fakerphp/faker (v1.21.0)
  - Downloading symfony/polyfill-mbstring (v1.27.0)
  - Downloading symfony/http-foundation (v6.2.5)
  - Downloading guzzlehttp/psr7 (2.4.3)
  - Downloading laravel/pint (v1.4.0)
  - Downloading symfony/polyfill-php80 (v1.27.0)
  - Downloading vlucas/phpdotenv (v5.5.0)
  - Downloading symfony/css-selector (v6.2.5)
  - Downloading tijsverkoyen/css-to-inline-styles (2.2.6)
  - Downloading symfony/var-dumper (v6.2.5)
  - Downloading symfony/polyfill-uuid (v1.27.0)
  - Downloading symfony/uid (v6.2.5)
  - Downloading symfony/routing (v6.2.5)
  - Downloading symfony/process (v6.2.5)
  - Downloading symfony/polyfill-php72 (v1.27.0)
  - Downloading symfony/polyfill-intl-normalizer (v1.27.0)
  - Downloading symfony/polyfill-intl-idn (v1.27.0)
  - Downloading symfony/mime (v6.2.5)
  - Downloading symfony/service-contracts (v3.2.0)
  - Downloading symfony/event-dispatcher-contracts (v3.2.0)
  - Downloading symfony/event-dispatcher (v6.2.5)
  - Downloading egulias/email-validator (4.0.1)
  - Downloading symfony/mailer (v6.2.5)
  - Downloading symfony/error-handler (v6.2.5)
  - Downloading symfony/http-kernel (v6.2.5)
  - Downloading symfony/finder (v6.2.5)
  - Downloading symfony/polyfill-intl-grapheme (v1.27.0)
  - Downloading symfony/string (v6.2.5)
  - Downloading symfony/console (v6.2.5)
  - Downloading ramsey/collection (2.0.0)
  - Downloading ramsey/uuid (4.7.3)
  - Downloading nunomaduro/termwind (v1.15.0)
  - Downloading symfony/translation-contracts (v3.2.0)
  - Downloading symfony/translation (v6.2.5)
  - Downloading nesbot/carbon (2.65.0)
  - Downloading league/flysystem (3.12.2)
  - Downloading nette/utils (v3.2.9)
  - Downloading nette/schema (v1.2.3)
  - Downloading dflydev/dot-access-data (v3.0.2)
  - Downloading league/config (v1.2.0)
  - Downloading league/commonmark (2.3.8)
  - Downloading laravel/framework (v9.48.0)
  - Downloading laravel/sail (v1.18.1)
  - Downloading laravel/sanctum (v3.2.1)
  - Downloading nikic/php-parser (v4.15.3)
  - Downloading psy/psysh (v0.11.11)
  - Downloading laravel/tinker (v2.8.0)
  - Downloading filp/whoops (2.14.6)
  - Downloading nunomaduro/collision (v6.4.0)
  - Downloading phpunit/php-code-coverage (9.2.23)
  - Downloading doctrine/instantiator (2.0.0)
  - Downloading phpunit/phpunit (9.5.28)
  - Downloading spatie/flare-client-php (1.3.5)
  - Downloading spatie/ignition (1.4.3)
  - Downloading spatie/laravel-ignition (1.6.4)
  - Installing doctrine/inflector (2.0.6): Extracting archive
  - Installing doctrine/lexer (3.0.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  - Installing webmozart/assert (1.11.0): Extracting archive
  - Installing dragonmantank/cron-expression (v3.3.2): Extracting archive
  - Installing symfony/deprecation-contracts (v3.2.0): Extracting archive
  - Installing psr/container (2.0.2): Extracting archive
  - Installing fakerphp/faker (v1.21.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  - Installing symfony/http-foundation (v6.2.5): Extracting archive
  - Installing fruitcake/php-cors (v1.2.0): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing psr/http-client (1.0.1): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing psr/http-factory (1.0.1): Extracting archive
  - Installing guzzlehttp/psr7 (2.4.3): Extracting archive
  - Installing guzzlehttp/promises (1.5.2): Extracting archive
  - Installing guzzlehttp/guzzle (7.5.0): Extracting archive
  - Installing laravel/pint (v1.4.0): Extracting archive
  - Installing voku/portable-ascii (2.0.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  - Installing phpoption/phpoption (1.9.0): Extracting archive
  - Installing graham-campbell/result-type (v1.1.0): Extracting archive
  - Installing vlucas/phpdotenv (v5.5.0): Extracting archive
  - Installing symfony/css-selector (v6.2.5): Extracting archive
  - Installing tijsverkoyen/css-to-inline-styles (2.2.6): Extracting archive
  - Installing symfony/var-dumper (v6.2.5): Extracting archive
  - Installing symfony/polyfill-uuid (v1.27.0): Extracting archive
  - Installing symfony/uid (v6.2.5): Extracting archive
  - Installing symfony/routing (v6.2.5): Extracting archive
  - Installing symfony/process (v6.2.5): Extracting archive
  - Installing symfony/polyfill-php72 (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.27.0): Extracting archive
  - Installing symfony/mime (v6.2.5): Extracting archive
  - Installing symfony/service-contracts (v3.2.0): Extracting archive
  - Installing psr/event-dispatcher (1.0.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v3.2.0): Extracting archive
  - Installing symfony/event-dispatcher (v6.2.5): Extracting archive
  - Installing psr/log (3.0.0): Extracting archive
  - Installing egulias/email-validator (4.0.1): Extracting archive
  - Installing symfony/mailer (v6.2.5): Extracting archive
  - Installing symfony/error-handler (v6.2.5): Extracting archive
  - Installing symfony/http-kernel (v6.2.5): Extracting archive
  - Installing symfony/finder (v6.2.5): Extracting archive
  - Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  - Installing symfony/string (v6.2.5): Extracting archive
  - Installing symfony/console (v6.2.5): Extracting archive
  - Installing ramsey/collection (2.0.0): Extracting archive
  - Installing brick/math (0.10.2): Extracting archive
  - Installing ramsey/uuid (4.7.3): Extracting archive
  - Installing psr/simple-cache (3.0.0): Extracting archive
  - Installing nunomaduro/termwind (v1.15.0): Extracting archive
  - Installing symfony/translation-contracts (v3.2.0): Extracting archive
  - Installing symfony/translation (v6.2.5): Extracting archive
  - Installing nesbot/carbon (2.65.0): Extracting archive
  - Installing monolog/monolog (2.8.0): Extracting archive
  - Installing league/mime-type-detection (1.11.0): Extracting archive
  - Installing league/flysystem (3.12.2): Extracting archive
  - Installing nette/utils (v3.2.9): Extracting archive
  - Installing nette/schema (v1.2.3): Extracting archive
  - Installing dflydev/dot-access-data (v3.0.2): Extracting archive
  - Installing league/config (v1.2.0): Extracting archive
  - Installing league/commonmark (2.3.8): Extracting archive
  - Installing laravel/serializable-closure (v1.2.2): Extracting archive
  - Installing laravel/framework (v9.48.0): Extracting archive
  - Installing laravel/sail (v1.18.1): Extracting archive
  - Installing laravel/sanctum (v3.2.1): Extracting archive
  - Installing nikic/php-parser (v4.15.3): Extracting archive
  - Installing psy/psysh (v0.11.11): Extracting archive
  - Installing laravel/tinker (v2.8.0): Extracting archive
  - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
  - Installing mockery/mockery (1.5.1): Extracting archive
  - Installing filp/whoops (2.14.6): Extracting archive
  - Installing nunomaduro/collision (v6.4.0): Extracting archive
  - Installing sebastian/version (3.0.2): Extracting archive
  - Installing sebastian/type (3.2.0): Extracting archive
  - Installing sebastian/resource-operations (3.0.3): Extracting archive
  - Installing sebastian/recursion-context (4.0.4): Extracting archive
  - Installing sebastian/object-reflector (2.0.4): Extracting archive
  - Installing sebastian/object-enumerator (4.0.4): Extracting archive
  - Installing sebastian/global-state (5.0.5): Extracting archive
  - Installing sebastian/exporter (4.0.5): Extracting archive
  - Installing sebastian/environment (5.1.4): Extracting archive
  - Installing sebastian/diff (4.0.4): Extracting archive
  - Installing sebastian/comparator (4.0.8): Extracting archive
  - Installing sebastian/code-unit (1.0.8): Extracting archive
  - Installing sebastian/cli-parser (1.0.1): Extracting archive
  - Installing phpunit/php-timer (5.0.3): Extracting archive
  - Installing phpunit/php-text-template (2.0.4): Extracting archive
  - Installing phpunit/php-invoker (3.1.1): Extracting archive
  - Installing phpunit/php-file-iterator (3.0.6): Extracting archive
  - Installing theseer/tokenizer (1.2.1): Extracting archive
  - Installing sebastian/lines-of-code (1.0.3): Extracting archive
  - Installing sebastian/complexity (2.0.2): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (2.0.3): Extracting archive
  - Installing phpunit/php-code-coverage (9.2.23): Extracting archive
  - Installing phar-io/version (3.2.1): Extracting archive
  - Installing phar-io/manifest (2.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.11.0): Extracting archive
  - Installing doctrine/instantiator (2.0.0): Extracting archive
  - Installing phpunit/phpunit (9.5.28): Extracting archive
  - Installing spatie/backtrace (1.2.1): Extracting archive
  - Installing spatie/flare-client-php (1.3.5): Extracting archive
  - Installing spatie/ignition (1.4.3): Extracting archive
  - Installing spatie/laravel-ignition (1.6.4): Extracting archive
52 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  laravel/sail ................................................................................................................................ DONE
  laravel/sanctum ............................................................................................................................. DONE
  laravel/tinker .............................................................................................................................. DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/collision ........................................................................................................................ DONE
  nunomaduro/termwind ......................................................................................................................... DONE
  spatie/laravel-ignition ..................................................................................................................... DONE

80 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].

No security vulnerability advisories found
> @php artisan key:generate --ansi

   INFO  Application key set successfully.

╭─ bash  code  羽9s 811ms⠀                                                                                                                                                                           default@us-west-2  WSL at    24,12:13 
╰─ff cd singlestore-test
╭─ bash  singlestore-test  羽4ms⠀                                                                                                                                                                default@us-west-2  WSL at    24,12:13 
╰─ff composer require laravel/sail
Warning: This development build of Composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Using version ^1.18 for laravel/sail
laravel/sail is currently present in the require-dev key and you ran the command without the --dev flag, which will move it to the require key.
Do you want to move this requirement? [no]? yes
./composer.json has been updated
Running composer update laravel/sail
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  laravel/sail ................................................................................................................................ DONE
  laravel/sanctum ............................................................................................................................. DONE
  laravel/tinker .............................................................................................................................. DONE
  nesbot/carbon ............................................................................................................................... DONE
  nunomaduro/collision ........................................................................................................................ DONE
  nunomaduro/termwind ......................................................................................................................... DONE
  spatie/laravel-ignition ..................................................................................................................... DONE

80 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].

No security vulnerability advisories found
╭─ bash  singlestore-test  羽12s 23ms⠀                                                                                                                                                           default@us-west-2  WSL at    24,12:14 
╰─ff php artisan sail:install

 Which services would you like to install? [mysql]:
  [0] mysql
  [1] pgsql
  [2] mariadb
  [3] redis
  [4] memcached
  [5] meilisearch
  [6] minio
  [7] mailhog
  [8] selenium
 > 0,3,6,7

Sail scaffolding installed successfully.
╭─ bash  singlestore-test  羽11s 332ms⠀                                                                                                                                                          default@us-west-2  WSL at    24,12:15 
╰─ff code .

In vs code i moved over the above docker-compose.yml, and set a SINGLESTORE_LICENSE="" as copied from the portal.

╰─ff sail up -d
[+] Running 0/1
 ⠿ laravel.test Warning                                                                                                                                                                                                                                0.4s
[+] Building 116.2s (17/17) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                   0.0s
 => => transferring dockerfile: 2.74kB                                                                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                                                                                        1.5s
 => [auth] library/ubuntu:pull token for registry-1.docker.io                                                                                                                                                                                          0.0s
 => [internal] load build context                                                                                                                                                                                                                      0.0s
 => => transferring context: 875B                                                                                                                                                                                                                      0.0s
 => [ 1/11] FROM docker.io/library/ubuntu:22.04@sha256:27cb6e6ccef575a4698b66f5de06c7ecd61589132d5a91d098f7f3f9285415a9                                                                                                                                0.0s
 => CACHED [ 2/11] WORKDIR /var/www/html                                                                                                                                                                                                               0.0s
 => [ 3/11] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone                                                                                                                                                             0.4s
 => [ 4/11] RUN apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils     && curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec  108.6s
 => [ 5/11] RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.2                                                                                                                                                                                      0.6s
 => [ 6/11] RUN groupadd --force -g 1000 sail                                                                                                                                                                                                          0.7s
 => [ 7/11] RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1337 sail                                                                                                                                                                             0.7s
 => [ 8/11] COPY start-container /usr/local/bin/start-container                                                                                                                                                                                        0.1s
 => [ 9/11] COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf                                                                                                                                                                              0.1s
 => [10/11] COPY php.ini /etc/php/8.2/cli/conf.d/99-sail.ini                                                                                                                                                                                           0.1s
 => [11/11] RUN chmod +x /usr/local/bin/start-container                                                                                                                                                                                                0.5s
 => exporting to image                                                                                                                                                                                                                                 3.1s
 => => exporting layers                                                                                                                                                                                                                                3.1s
 => => writing image sha256:7c372cfa58747f8c33c0bad91de4c8ddc1812051e52423e7691b4c3a58dbcafe                                                                                                                                                           0.0s
 => => naming to sail-8.2/app                                                                                                                                                                                                                          0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
[+] Running 9/9
 ⠿ Network singlestore-test_sail               Created                                                                                                                                                                                                 0.0s
 ⠿ Volume "singlestore-test_sail-singlestore"  Created                                                                                                                                                                                                 0.0s
 ⠿ Volume "singlestore-test_sail-redis"        Created                                                                                                                                                                                                 0.0s
 ⠿ Volume "singlestore-test_sail-minio"        Created                                                                                                                                                                                                 0.0s
 ⠿ Container singlestore-test-mailhog-1        Started                                                                                                                                                                                                 1.8s
 ⠿ Container singlestore-test-singlestore-1    Started                                                                                                                                                                                                 2.0s
 ⠿ Container singlestore-test-minio-1          Started                                                                                                                                                                                                 2.0s
 ⠿ Container singlestore-test-redis-1          Started                                                                                                                                                                                                 1.5s
 ⠿ Container singlestore-test-laravel.test-1   Started

Now the container is started but when i open the logs for singlestore dev container ...

image

from singlestoredb-dev-image.

carlsverre avatar carlsverre commented on June 6, 2024

This is curious indeed. I won't be able to test this out until next week. I am curious if you can reproduce this on a brand new absolutely minimal laravel app?

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

So here's the test i am doing, aditya asked about my license key so i went into a fresh new email address and created a fresh new license key that had never been used before.

I created a blank folder, moved over the docker-compose.yml, and .env as well as the php8.2 docker folder for the laravel host image. I modified the .env to the correct license key from the "Step 2 Setup" Install on docker page of the account creation from singlestore. After doing that, i'm still receiving the exact same error, the only change from the above is the change to the new license key for my [email protected] email account. No php code at all in the folder i can provide a zip if requested.

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

Upon further testing, commenting out everything except, the singlestore container, the network and the volume the error still occurs.

from singlestoredb-dev-image.

carlsverre avatar carlsverre commented on June 6, 2024

The only thing that I can think of is that the docker volume ('sail-singlestore:/data') is initialized with a bad license. Can you remove the volume and see if the error reproduces?

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

I completely removed the volume mapping, still failed.

I went a step further and deleted the image too. Also failing.

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024
╰─ff docker-compose up
[+] Running 26/26
 ⠿ singlestore Pulled                                                                                             13.1s
   ⠿ 9589bd88d106 Pull complete                                                                                    4.0s
   ⠿ f69f2370a39a Pull complete                                                                                    5.7s
   ⠿ 5342c9e73bd5 Pull complete                                                                                    5.8s
   ⠿ e4045804e157 Pull complete                                                                                    6.7s
   ⠿ c108f713fc82 Pull complete                                                                                    6.7s
   ⠿ 26632a8c2a60 Pull complete                                                                                    6.8s
   ⠿ 29b767c0476b Pull complete                                                                                    6.8s
   ⠿ 55db4d7800e8 Pull complete                                                                                    6.9s
   ⠿ 3d8204abdf66 Pull complete                                                                                    7.0s
   ⠿ 4f4fb700ef54 Pull complete                                                                                    7.0s
   ⠿ a33f2c1c6905 Pull complete                                                                                    7.1s
   ⠿ 8f796d3c82d3 Pull complete                                                                                    7.1s
   ⠿ 98817fed88db Pull complete                                                                                    7.2s
   ⠿ ebd78f40eaa7 Pull complete                                                                                    7.2s
   ⠿ 87aeabc26640 Pull complete                                                                                    7.3s
   ⠿ 031b216183cb Pull complete                                                                                    7.4s
   ⠿ c91aad9b2f5c Pull complete                                                                                    7.4s
   ⠿ ed4dbb8064a6 Pull complete                                                                                   10.4s
   ⠿ ce274ee5997d Pull complete                                                                                   10.4s
   ⠿ a025fc6c1d83 Pull complete                                                                                   11.4s
   ⠿ 049df2ee3c2d Pull complete                                                                                   11.5s
   ⠿ 362f58546f44 Pull complete                                                                                   11.6s
   ⠿ 86c984be3f65 Pull complete                                                                                   11.6s
   ⠿ 686884e98937 Pull complete                                                                                   11.7s
   ⠿ 6512c5b55ba9 Pull complete                                                                                   11.7s
[+] Running 2/2
 ⠿ Network ss-test_sail             Created                                                                        0.0s
 ⠿ Container ss-test-singlestore-1  Created                                                                        0.6s
Attaching to ss-test-singlestore-1
ss-test-singlestore-1  | Starting SingleStore nodes...
ss-test-singlestore-1  | {}
ss-test-singlestore-1  |
ss-test-singlestore-1  | real   0m5.774s
ss-test-singlestore-1  | user   0m0.203s
ss-test-singlestore-1  | sys    0m0.095s
ss-test-singlestore-1  | Configuring SingleStore nodes...
ss-test-singlestore-1  | Error 1888: Unable to reload license file: The provided license is invalid
ss-test-singlestore-1 exited with code 1
ss-test-singlestore-1  | {}
ss-test-singlestore-1  |
ss-test-singlestore-1  | real   0m5.892s
ss-test-singlestore-1  | user   0m0.234s
ss-test-singlestore-1  | sys    0m0.064s
ss-test-singlestore-1  | Configuring SingleStore nodes...
ss-test-singlestore-1  | Error 1888: Unable to reload license file: The provided license is invalid
ss-test-singlestore-1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
[+] Running 1/1
 ⠿ Container ss-test-singlestore-1  Stopped                                                                        6.4s
canceled

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

Current docker compose from last test

version: '3'
services:
  singlestore:
    image: ghcr.io/singlestore-labs/singlestoredb-dev:latest
    restart: always
    environment:
      - SINGLESTORE_LICENSE='${SINGLESTORE_LICENSE}'
      - ROOT_PASSWORD='${DB_PASSWORD}'
    ports:
      - '${FORWARD_SINGLESTORE_PORT:-3306}:3306'
      - '${FORWARD_SINGLESTORE_UI_PORT:-8080}:8080'
      - '${FORWARD_SINGLESTORE_API_PORT:-9000}:9000'

from singlestoredb-dev-image.

carlsverre avatar carlsverre commented on June 6, 2024

Ok I was able to reproduce the issue. Apparently docker compose keeps single quotes in the variable. I.e. it was using the license key 'your license' rather than just your license. Interesting this issue also happens to the password which is being set to 'your password' rather than your password. To fix both issues, simply remove the single quotes in your docker compose file which wrap the license key and the password:

      - SINGLESTORE_LICENSE=${SINGLESTORE_LICENSE}
      - ROOT_PASSWORD=${DB_PASSWORD}

from singlestoredb-dev-image.

necrogami avatar necrogami commented on June 6, 2024

Can confirm i got this to work doing that. Such an esoteric problem.

from singlestoredb-dev-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.