appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.76k stars 3.77k forks source link

[Bug]: Application with docker fails to start #17764

Closed DavidMealha closed 1 year ago

DavidMealha commented 2 years ago

Is there an existing issue for this?

Description

I have successfully ran appsmith locally with docker-compose. However, now I'm trying to run it inside my company infrastructure (running EKS) which uses the Docker image to run any application.

I have tried it with versions 1.8.5, 1.7.14 and 1.6.25.

According to the logs I can see some stderr logs in the editor but no error message.

Initialize .env file
Generating default configuration file
Load environment configuration
Checking environment configuration
Checking APPSMITH_MONGODB_URI
Detected local MongoDB
Initializing local database
Checking initialized database
Initializing Replica Set for local database
about to fork child process, waiting until server is ready for connections.
forked process: 29
child process started successfully, parent exiting
Waiting 10s for MongoDB to start
Creating MongoDB user
MongoDB shell version v4.4.13
connecting to: mongodb://127.0.0.1:27017/appsmith?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("feb6f882-553a-4eba-a55f-0ffd1b709c02") }
MongoDB server version: 4.4.13
**** Going to start Mongo seed ****
Error: Authentication failed.
Successfully added user: {
    "user" : "appsmith",
    "roles" : [
        {
            "role" : "root",
            "db" : "admin"
        },
        "readWrite"
    ]
}
[ undefined ]
Enabling Replica Set
{"t":{"$date":"2022-10-20T10:18:06.712+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-10-20T10:18:06.714+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2022-10-20T10:18:06.714+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
killing process with pid: 29
about to fork child process, waiting until server is ready for connections.
forked process: 78
child process started successfully, parent exiting
Waiting 10s for MongoDB to start with Replica Set
MongoDB shell version v4.4.13
connecting to: mongodb://localhost:27017/appsmith?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("3243f432-3490-4ec9-826c-fa5db1a694f3") }
MongoDB server version: 4.4.13
{
    "info2" : "no configuration specified. Using a default configuration for the set",
    "me" : "localhost:27017",
    "ok" : 1
}
{"t":{"$date":"2022-10-20T10:18:19.782+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2022-10-20T10:18:19.783+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2022-10-20T10:18:19.783+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
killing process with pid: 78
Mounting Let's encrypt directory
Redis is compatible with page size of 4096
Resource : unlimited
Generating Basic Authentication file
2022-10-20 10:18:23,690 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/backend.conf" during parsing
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/editor.conf" during parsing
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/mongodb.conf" during parsing
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/redis.conf" during parsing
2022-10-20 10:18:23,691 INFO Included extra file "/etc/supervisor/conf.d/rts.conf" during parsing
2022-10-20 10:18:23,695 INFO RPC interface 'supervisor' initialized
2022-10-20 10:18:23,695 CRIT Server 'inet_http_server' running without any HTTP authentication checking
2022-10-20 10:18:23,695 INFO RPC interface 'supervisor' initialized
2022-10-20 10:18:23,695 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-10-20 10:18:23,695 INFO supervisord started with pid 1
2022-10-20 10:18:24,697 INFO spawned: 'stdout' with pid 164
2022-10-20 10:18:24,699 INFO spawned: 'redis' with pid 165
2022-10-20 10:18:24,700 INFO spawned: 'mongodb' with pid 166
2022-10-20 10:18:24,702 INFO spawned: 'backend' with pid 167
2022-10-20 10:18:24,703 INFO spawned: 'rts' with pid 168
2022-10-20 10:18:24,704 INFO spawned: 'editor' with pid 169
2022-10-20 10:18:24,706 INFO spawned: 'cron' with pid 170
2022-10-20 10:18:24,858 INFO success: redis entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-10-20 10:18:24,859 INFO success: rts entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-10-20 10:18:24,859 INFO success: editor entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-10-20 10:18:24,859 INFO success: cron entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-10-20 10:18:26,055 INFO success: stdout entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
backend stdout | Load environment configuration
backend stdout | 
rts stdout | Load environment configuration
rts stdout | 
editor stdout | Load environment configuration
editor stdout | 
mongodb stdout | {"t":{"$date":"2022-10-20T10:18:24.959Z"},"s":"I",  "c":"CONTROL",  "id":20697,   "ctx":"main","msg":"Renamed existing log file","attr":{"oldLogPath":"/appsmith-stacks/data/mongodb/log","newLogPath":"/appsmith-stacks/data/mongodb/log.2022-10-20T10-18-24"}}
mongodb stdout | 
redis stdout | 165:C 20 Oct 2022 10:18:26.055 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis stdout | 165:C 20 Oct 2022 10:18:26.055 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=165, just started
redis stdout | 165:C 20 Oct 2022 10:18:26.055 # Configuration loaded
redis stdout | 
redis stdout | 165:M 20 Oct 2022 10:18:26.055 * monotonic clock: POSIX clock_gettime
redis stdout | 
redis stdout | 165:M 20 Oct 2022 10:18:26.055 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
redis stdout | 
redis stdout | 165:M 20 Oct 2022 10:18:26.056 * Running mode=standalone, port=6379.
redis stdout | 165:M 20 Oct 2022 10:18:26.056 # Server initialized
redis stdout | 
redis stdout | 165:M 20 Oct 2022 10:18:26.056 * Ready to accept connections
redis stdout | 
editor stdout | mkdir: created directory '/appsmith-stacks/git-storage'
editor stdout | 
editor stderr | + http_conf=/opt/appsmith/templates/nginx-app-http.conf.template.sh
editor stderr | + https_conf=/opt/appsmith/templates/nginx-app-https.conf.template.sh
editor stderr | + ssl_conf_path=/appsmith-stacks/data/certificate/conf
editor stderr | + APP_TEMPLATE=/opt/appsmith/templates/nginx-app-http.conf.template.sh
editor stderr | + mkdir -pv /appsmith-stacks/data/certificate/conf
editor stderr | 
editor stdout | mkdir: created directory '/appsmith-stacks/data/certificate'
editor stdout | mkdir: created directory '/appsmith-stacks/data/certificate/conf'
editor stdout | 
editor stderr | + cat
editor stderr | 
editor stderr | + cat
editor stderr | 
editor stderr | + [[ -n '' ]]
editor stderr | + bash /opt/appsmith/templates/nginx-app-http.conf.template.sh ''
editor stderr | 
editor stderr | + index_html_served=/opt/appsmith/editor/index.html
editor stderr | + index_html_original=/opt/appsmith/index.html.original
editor stderr | + [[ ! -f /opt/appsmith/index.html.original ]]
editor stderr | 
editor stderr | + cp -v /opt/appsmith/editor/index.html /opt/appsmith/index.html.original
editor stderr | 
editor stdout | '/opt/appsmith/editor/index.html' -> '/opt/appsmith/index.html.original'
editor stdout | 
editor stderr | + node -e '
editor stderr | const fs = require("fs")
editor stderr | const content = fs.readFileSync("/opt/appsmith/index.html.original", "utf8").replace(
editor stderr |     /\b__(APPSMITH_[A-Z0-9_]+)__\b/g,
editor stderr |     (placeholder, name) => (process.env[name] || "")
editor stderr | )
editor stderr | fs.writeFileSync("/opt/appsmith/editor/index.html", content)
editor stderr | '
editor stderr | 
editor stderr | + exec nginx -g 'daemon off;error_log stderr info;'
editor stderr | 
backend stdout | SLF4J: Class path contains multiple SLF4J bindings.
backend stdout | 
backend stdout | SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
backend stdout | 
backend stdout | 
backend stdout | SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/slf4j-log4j12-1.7.33.jar!/org/slf4j/impl/StaticLoggerBinder.class]
backend stdout | SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
backend stdout | 
backend stdout | SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
backend stdout | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: using the "epoll" event method
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: nginx/1.18.0 (Ubuntu)
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: OS: Linux 5.4.209-116.367.amzn2.x86_64
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: getrlimit(RLIMIT_NOFILE): 1048576:1048576
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker processes
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 270
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 271
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 272
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 273
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 274
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 275
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 276
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 277
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 278
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 279
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 280
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 281
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 282
editor stderr | 
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 283
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 284
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 285
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 286
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 287
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 288
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 289
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 290
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 291
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 292
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 293
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 294
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 295
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 296
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 297
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 298
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 299
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 300
editor stderr | 2022/10/20 10:18:33 [notice] 169#169: start worker process 301
editor stderr | 
rts stdout | (node:168) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
rts stdout | (Use `node --trace-warnings ...` to show where the warning was created)
rts stdout | 
rts stdout | RTS version v1.6.18 running at http://localhost:8091
rts stdout | 
2022-10-20 10:18:34,871 INFO success: mongodb entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
2022-10-20 10:18:34,871 INFO success: backend entered RUNNING state, process has stayed up for > than 10 seconds (startsecs)
rts stdout | Watching MongoDB
rts stdout | 
backend stdout |  - Starting ServerApplication vv1.6.18 using Java 11.0.14.1 on admin-appsmith-6dcf94cd4b-rwkhs with PID 167 (/opt/appsmith/backend/server.jar started by root in /opt/appsmith/backend)
backend stdout | 
backend stdout |  - Running with Spring Boot v2.5.9, Spring v5.3.15
backend stdout |  - No active profile set, falling back to default profiles: default
backend stdout | 
editor stdout | 10.101.229.252 - - [20/Oct/2022:10:18:39 +0000] "GET /health HTTP/1.1" 200 9385 "-" "kube-probe/1.21+"
editor stdout | 
backend stdout |  - Multiple Spring Data modules found, entering strict repository configuration mode!
backend stdout | 
backend stdout |  - Bootstrapping Spring Data Reactive MongoDB repositories in DEFAULT mode.
backend stdout | 
backend stdout |  - Finished Spring Data repository scanning in 1199 ms. Found 53 Reactive MongoDB repository interfaces.
backend stdout | 
backend stdout |  - Multiple Spring Data modules found, entering strict repository configuration mode!
backend stdout | 
backend stdout |  - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.AssetRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.NewActionRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.GitDeployKeysRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.PageRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ActionRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.CommentThreadRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.UsagePulseRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.NewPageRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.PasswordResetTokenRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ApplicationRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ProviderRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.NotificationRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.PermissionRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.OrganizationRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.LayoutRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.DatasourceRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.GroupRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ApiTemplateRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.PluginRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.CollectionRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.LayoutRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.AssetRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.DatasourceRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ActionRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.UsagePulseRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ProviderRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ApiTemplateRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.NewPageRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.UserRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.PasswordResetTokenRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.OrganizationRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.NotificationRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.NewActionRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.UserDataRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.CommentThreadRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.PluginRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ConfigRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.CommentRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ActionCollectionRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ApplicationRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.PageRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.GroupRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.ThemeRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.PermissionRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 
backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.InviteUserRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
backend stdout | 

From my understanding there isn't any exception being raised, or atleast being logged but after these logs the pod restarts with a failure.

Steps To Reproduce

  1. Publish docker image to a container registry
  2. Run the application based on the image

Public Sample App

No response

Version

Self-Hosted 1.8.5

sharat87 commented 2 years ago

Hey @DavidMealha, thanks for reaching out. Can you provide some additional details here please?

  1. You mention that you are running on EKS. Are you using the official Helm Charts at helm.appsmith.com for this, or some other method of deployment?
  2. The logs you shared seem incomplete. If the pod died after this, that's very strange. I'd think there should be some more logs about shutting down at least. Can you double-check to see if some lines weren't truncated when pasting here?
  3. In the steps to reproduce, you mention Publish docker image to a container registry. Can you elaborate? Are we publishing the Appsmith image on an internal registry first before deploying? Any particular reason for this?

Thank you for your patience with this.

DavidMealha commented 2 years ago

Hello @sharat87, thank you for looking into it, I will try to answer your questions the best I can.

  1. We are running on EKS but we have a standard pipeline for deployment which relies on the Dockerfile that lives inside the git repository, so we don't use the helm chart.

  2. I have looked into it and there aren't any more logs, the pod fails after the last logs saying:

    backend stdout |  - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.appsmith.server.repositories.ce.InviteUserRepositoryCE. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  3. We are publishing to our container registry because it's the way the pipeline is setup, relates with 1.

sharat87 commented 2 years ago

@DavidMealha, hey, sorry, just seeing this.

Understood. That looks like a strange point for the container to stop working. Is it possible to share the Dockerfile and how the pipeline works, so I can try to reproduce the same thing on my end and troubleshoot please? Feel free to email the details to support-team@appsmith.com, if you'd prefer not to share them publicly here.

Nikhil-Nandagopal commented 2 years ago

@DavidMealha were you able to get your issue resolved? I'm closing this for now but please do re-open it if you are still having trouble

DavidMealha commented 2 years ago

Hey @sharat87 @Nikhil-Nandagopal, I must have missed the last messsage. I haven't isn't fixed no.

The Dockerfile is really simple, which might be the reason for it to stop?

FROM index.docker.io/appsmith/appsmith-ce:v1.8.5

So the CI/CD pipeline steps are these, beware that I don't have much knowledge around K8s and the rollout of pods:

DavidMealha commented 2 years ago

Hey again @Nikhil-Nandagopal @sharat87, I have tried to troubleshoot a bit more the cause and it seems that it's failing with an out of memory error (exit 137). However the deployment memory usage doesn't reach near the limit, as you can see in the screenshot below.

Screenshot 2022-11-22 at 11 21 27

sharat87 commented 1 year ago

@DavidMealha, sorry for the delay on this issue. Can you confirm if you have any other applications also running in your cluster, on the same node? Can you share the specs of this node, like it's CPU count, memory etc. please?

sharat87 commented 1 year ago

Closing since it's been dormant for months. Happy to reopen when we have more information. Thanks!