You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "yugneuron (via GitHub)" <gi...@apache.org> on 2023/10/06 10:33:16 UTC

Re: [I] Login page loops indefinitely [superset]

yugneuron commented on issue #24579:
URL: https://github.com/apache/superset/issues/24579#issuecomment-1750376808

   Hi all,
   I have installed superset using official docker-compose installation on my local machine(Installed version 3.0.0). And since the official installation doesn't backup the superset metadata, it is recommended either to change the SQLALCHEMY_DATABASE_URI to a managed database or backup the data regularly yourself. The former didn't work for me (problem was the same i.e. I can access the superset login page but after entering the username and password (admin, admin) it results in invalid login. So, after consulting with my senior he told me to use bind mounting method so as to manage the data ourselves. Therefore, I have made the following changes in the non-dev yml file:
   x-superset-image: &superset-image apachesuperset.docker.scarf.sh/apache/superset:3.0.0
   x-superset-depends-on: &superset-depends-on
     - db
     - redis
   x-superset-volumes:
     &superset-volumes # /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
     - ./docker:/app/docker
     # - superset_home:/app/superset_home
     # Changes made by me for bind mount
     - type: bind
       source: ./data
       target: /app/superset_home
   
   After these changes superset was running smoothly.
   Now, I have to deploy it on a ubuntu vm , so I have transferred the superset directory to the vm and upon running the container the superset_init is not initializing (Error is below). Can someone please help what I am doing wrong?
   FYI: I have updated the SECRET_KEY in superset_config.py file.
   
   WARN[0000] The "CYPRESS_CONFIG" variable is not set. Defaulting to a blank string. 
   WARN[0000] The "CYPRESS_CONFIG" variable is not set. Defaulting to a blank string. 
   superset_app          | Skipping local overrides
   superset_app          | Starting web app...
   superset_app          | [2023-10-06 10:21:41 +0000] [7] [INFO] Starting gunicorn 20.1.0
   superset_app          | [2023-10-06 10:21:41 +0000] [7] [INFO] Listening at: http://0.0.0.0:8088 (7)
   superset_app          | [2023-10-06 10:21:41 +0000] [7] [INFO] Using worker: gthread
   superset_app          | [2023-10-06 10:21:41 +0000] [8] [INFO] Booting worker with pid: 8
   superset_app          | logging was configured successfully
   superset_app          | 2023-10-06 10:21:48,705:INFO:superset.utils.logging_configurator:logging was configured successfully
   superset_app          | 2023-10-06 10:21:48,713:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
   superset_app          | /usr/local/lib/python3.9/site-packages/flask_limiter/extension.py:293: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
   superset_app          |   warnings.warn(
   superset_worker_beat  | Skipping local overrides
   superset_worker_beat  | Starting Celery beat...
   superset_worker_beat  | logging was configured successfully
   superset_worker_beat  | 2023-10-06 10:21:48,502:INFO:superset.utils.logging_configurator:logging was configured successfully
   superset_worker_beat  | 2023-10-06 10:21:48,506:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
   superset_worker_beat  | /usr/local/lib/python3.9/site-packages/flask_limiter/extension.py:293: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
   superset_worker_beat  |   warnings.warn(
   superset_worker       | Skipping local overrides
   superset_worker       | Starting Celery worker...
   superset_worker       | logging was configured successfully
   superset_worker       | 2023-10-06 10:21:48,243:INFO:superset.utils.logging_configurator:logging was configured successfully
   superset_worker       | 2023-10-06 10:21:48,252:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
   superset_worker       | /usr/local/lib/python3.9/site-packages/flask_limiter/extension.py:293: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
   superset_worker       |   warnings.warn(
   superset_cache        | 1:C 06 Oct 2023 10:21:38.278 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
   superset_cache        | 1:C 06 Oct 2023 10:21:38.278 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
   superset_cache        | 1:C 06 Oct 2023 10:21:38.278 * Redis version=7.2.1, bits=64, commit=00000000, modified=0, pid=1, just started
   superset_cache        | 1:C 06 Oct 2023 10:21:38.278 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
   superset_cache        | 1:M 06 Oct 2023 10:21:38.279 * Increased maximum number of open files to 10032 (it was originally set to 1024).
   superset_cache        | 1:M 06 Oct 2023 10:21:38.279 * monotonic clock: POSIX clock_gettime
   superset_cache        | 1:M 06 Oct 2023 10:21:38.279 * Running mode=standalone, port=6379.
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * Server initialized
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * Loading RDB produced by version 7.2.1
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * RDB age 214 seconds
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * RDB memory usage when created 0.83 Mb
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * Done loading RDB, keys loaded: 0, keys expired: 0.
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * DB loaded from disk: 0.000 seconds
   superset_cache        | 1:M 06 Oct 2023 10:21:38.280 * Ready to accept connections tcp
   superset_init         | Skipping local overrides
   superset_init         | Unknown Operation!!!
   superset_init         | 
   superset_init         | ######################################################################
   superset_init         | 
   superset_init         | 
   superset_init         | Init Step 1/4 [Starting] -- Applying DB migrations
   superset_init         | 
   superset_init         | 
   superset_init         | ######################################################################
   superset_init         | 
   superset_db           | 
   superset_db           | PostgreSQL Database directory appears to contain a database; Skipping initialization
   superset_db           | 
   superset_db           | 2023-10-06 10:21:38.432 UTC [1] LOG:  starting PostgreSQL 15.4 (Debian 15.4-2.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
   superset_db           | 2023-10-06 10:21:38.432 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
   superset_db           | 2023-10-06 10:21:38.432 UTC [1] LOG:  listening on IPv6 address "::", port 5432
   superset_db           | 2023-10-06 10:21:38.442 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
   superset_db           | 2023-10-06 10:21:38.453 UTC [28] LOG:  database system was shut down at 2023-10-06 10:18:04 UTC
   superset_db           | 2023-10-06 10:21:38.468 UTC [1] LOG:  database system is ready to accept connections
   superset_init         | logging was configured successfully
   superset_init         | 2023-10-06 10:21:53,193:INFO:superset.utils.logging_configurator:logging was configured successfully
   superset_init         | 2023-10-06 10:21:53,239:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
   superset_init         | /usr/local/lib/python3.9/site-packages/flask_limiter/extension.py:293: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend.
   superset_init         |   warnings.warn(
   superset_worker       | /usr/local/lib/python3.9/site-packages/celery/platforms.py:840: SecurityWarning: You're running the worker with superuser privileges: this is
   superset_worker       | absolutely not recommended!
   superset_worker       | 
   superset_worker       | Please specify a different user using the --uid option.
   superset_worker       | 
   superset_worker       | User information: uid=0 euid=0 gid=0 egid=0
   superset_worker       | 
   superset_worker       |   warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
   superset_worker       | Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py]
   superset_worker       |  
   superset_worker       |  -------------- celery@49c1ddada9e2 v5.2.2 (dawn-chorus)
   superset_worker       | --- ***** ----- 
   superset_worker       | -- ******* ---- Linux-5.15.0-1047-azure-x86_64-with-glibc2.36 2023-10-06 10:21:56
   superset_worker       | - *** --- * --- 
   superset_worker       | - ** ---------- [config]
   superset_worker       | - ** ---------- .> app:         __main__:0x7f6a250f7f70
   superset_worker       | - ** ---------- .> transport:   redis://redis:6379/0
   superset_worker       | - ** ---------- .> results:     redis://redis:6379/1
   superset_worker       | - *** --- * --- .> concurrency: 2 (prefork)
   superset_worker       | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
   superset_worker       | --- ***** ----- 
   superset_worker       |  -------------- [queues]
   superset_worker       |                 .> celery           exchange=celery(direct) key=celery
   superset_worker       |                 
   superset_worker       | 
   superset_worker       | [tasks]
   superset_worker       |   . cache-warmup
   superset_worker       |   . cache_chart_thumbnail
   superset_worker       |   . cache_dashboard_thumbnail
   superset_worker       |   . fetch_url
   superset_worker       |   . load_chart_data_into_cache
   superset_worker       |   . load_explore_json_into_cache
   superset_worker       |   . reports.execute
   superset_worker       |   . reports.prune_log
   superset_worker       |   . reports.scheduler
   superset_worker       |   . sql_lab.get_sql_results
   superset_worker       | 
   superset_worker_beat  | [2023-10-06 10:21:56,231: INFO/MainProcess] beat: Starting...
   superset_init         | WARNI [alembic.env] SQLite Database support for metadata databases will         be removed in a future version of Superset.
   superset_init         | INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
   superset_init         | INFO  [alembic.runtime.migration] Will assume transactional DDL.
   superset_init         | ERROR [flask_migrate] Error: Can't locate revision identified by '4b85906e5b91'
   superset_init         | Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py]
   superset_init exited with code 1
   superset_app          | Loaded your LOCAL configuration at [/app/docker/pythonpath_dev/superset_config.py]
   superset_app          | 127.0.0.1 - - [06/Oct/2023:10:22:10 +0000] "GET /health HTTP/1.1" 200 2 "-" "curl/7.88.1"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org