2026-05-02 08:23:13,515 - main - INFO - === Logging system initialized ===
2026-05-02 08:23:13,515 - main - INFO - Log file: logs/app_20260502_082313.log
2026-05-02 08:23:13,515 - main - INFO - Log level: INFO
2026-05-02 08:23:13,515 - main - INFO - Timestamp: 20260502_082313
2026-05-02 08:23:13,585 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-02 08:23:13,630 - main - INFO - Included router: routers.agent_availability.router
2026-05-02 08:23:14,546 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-02 08:23:14,569 - main - INFO - Included router: routers.aihub.router
2026-05-02 08:23:14,583 - main - INFO - Included router: routers.auth.router
2026-05-02 08:23:14,633 - main - INFO - Included router: routers.carts.router
2026-05-02 08:23:14,689 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-02 08:23:14,730 - main - INFO - Included router: routers.chat_attachments.router
2026-05-02 08:23:14,805 - main - INFO - Included router: routers.chat_branding.router
2026-05-02 08:23:14,833 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-02 08:23:15,320 - main - INFO - Included router: routers.chat_conversations.router
2026-05-02 08:23:15,376 - main - INFO - Included router: routers.chat_messages.router
2026-05-02 08:23:15,428 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-02 08:23:15,466 - main - INFO - Included router: routers.contact.router
2026-05-02 08:23:15,530 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-02 08:23:15,616 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-02 08:23:15,623 - main - INFO - Included router: routers.health.router
2026-05-02 08:23:15,676 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-02 08:23:15,742 - main - INFO - Included router: routers.kb_articles.router
2026-05-02 08:23:15,794 - main - INFO - Included router: routers.notification_preferences.router
2026-05-02 08:23:15,848 - main - INFO - Included router: routers.notifications.router
2026-05-02 08:23:15,853 - main - INFO - Included router: routers.notifications_extras.router
2026-05-02 08:23:15,966 - main - INFO - Included router: routers.oauth.router
2026-05-02 08:23:16,017 - main - INFO - Included router: routers.order_items.router
2026-05-02 08:23:16,229 - main - INFO - Included router: routers.orders.router
2026-05-02 08:23:16,284 - main - INFO - Included router: routers.plans.router
2026-05-02 08:23:16,337 - main - INFO - Included router: routers.product_categories.router
2026-05-02 08:23:16,391 - main - INFO - Included router: routers.product_reviews.router
2026-05-02 08:23:16,451 - main - INFO - Included router: routers.products.router
2026-05-02 08:23:16,478 - main - INFO - Included router: routers.role_management.router
2026-05-02 08:23:16,522 - main - INFO - Included router: routers.service_testimonials.router
2026-05-02 08:23:16,541 - main - INFO - Included router: routers.settings.router
2026-05-02 08:23:16,582 - main - INFO - Included router: routers.site_settings.router
2026-05-02 08:23:16,636 - main - INFO - Included router: routers.smtp_settings.router
2026-05-02 08:23:16,673 - main - INFO - Included router: routers.storage.router
2026-05-02 08:23:16,788 - main - INFO - Included router: routers.support_chat.router
2026-05-02 08:23:16,828 - main - INFO - Included router: routers.support_departments.router
2026-05-02 08:23:17,036 - main - INFO - Included router: routers.support_seats.router
2026-05-02 08:23:17,048 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-02 08:23:17,088 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-02 08:23:17,129 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-02 08:23:17,136 - main - INFO - Included router: routers.user.router
2026-05-02 08:23:17,180 - main - INFO - Included router: routers.user_profiles.router
2026-05-02 08:23:17,215 - main - INFO - Included router: routers.user_roles.router
2026-05-02 08:23:17,233 - main - INFO - Included router: routers.whmcs.router
2026-05-02 08:23:17,289 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-02 08:23:17,324 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-02 08:23:17,326 - main - INFO - === Application startup initiated ===
2026-05-02 08:23:17,326 - services.database - INFO - Ignore creating tables
2026-05-02 08:23:17,326 - services.mock_data - INFO - Ignore initialize data
2026-05-02 08:23:17,326 - services.auth - INFO - Ignore initialize admin
2026-05-02 08:23:17,327 - main - INFO - === Application startup completed successfully ===
2026-05-02 08:23:26,620 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-02 08:23:26,621 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-02 08:23:26,641 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:26,645 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:26,645 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-02 08:23:26,645 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-02 08:23:26,645 - core.database - INFO - Starting database initialization...
2026-05-02 08:23:26,646 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-02 08:23:26,646 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-02 08:23:26,647 - core.database - INFO - Creating async database engine...
2026-05-02 08:23:26,647 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-02 08:23:26,709 - core.database - INFO - Database engine created successfully
2026-05-02 08:23:26,709 - core.database - INFO - Creating async session maker...
2026-05-02 08:23:26,709 - core.database - INFO - Async session maker created successfully
2026-05-02 08:23:26,709 - core.database - INFO - Database connection initialized successfully
2026-05-02 08:23:26,710 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-02 08:23:26,710 - core.database - INFO - 🔧 Starting table creation...
2026-05-02 08:23:26,714 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:26,717 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:26,718 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:23:26,718 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:23:26,721 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:26,721 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-02 08:23:26,722 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:23:26,900 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:26,901 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-02 08:23:26,901 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-02 08:23:27,070 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-02 08:23:27,078 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fb412fbe890>
2026-05-02 08:23:27,079 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fb410e6a5c0> server_hostname='atoms.dev' timeout=120.0
2026-05-02 08:23:27,088 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fb410df2b30>
2026-05-02 08:23:27,089 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-02 08:23:27,089 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-02 08:23:27,089 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-02 08:23:27,090 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-02 08:23:27,090 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-02 08:23:27,271 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sat, 02 May 2026 15:23:27 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Access-Control-Allow-Headers', b'Origin, Content-Type, Accept, Authorization'), (b'Access-Control-Allow-Methods', b'GET, POST, PUT, DELETE, OPTIONS'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Max-Age', b'86400'), (b'X-Request-Id', b'abc62731dac15afab831b17eba5b9ada'), (b'X-Trace-Id', b'5b2f43ca4d514d138a3abbdc5284f2a7'), (b'Content-Security-Policy', b"frame-ancestors 'self' https://atoms.dev"), (b'Strict-Transport-Security', b'max-age=63072000; includeSubDomains; preload'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'Referrer-Policy', b'strict-origin-when-cross-origin'), (b'cf-cache-status', b'DYNAMIC'), (b'Content-Encoding', b'gzip'), (b'Server', b'cloudflare'), (b'CF-RAY', b'9f5806f658241e1d-LAX')])
2026-05-02 08:23:27,272 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-02 08:23:27,272 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-02 08:23:27,273 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-02 08:23:27,273 - httpcore.http11 - DEBUG - response_closed.started
2026-05-02 08:23:27,273 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-02 08:23:27,273 - httpcore.connection - DEBUG - close.started
2026-05-02 08:23:27,274 - httpcore.connection - DEBUG - close.complete
2026-05-02 08:23:28,074 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:28,075 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:23:28,278 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:23:28,278 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5573s
2026-05-02 08:23:28,279 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:23:28,279 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.5619s
2026-05-02 08:23:28,686 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6118s
2026-05-02 08:23:30,204 - core.database - INFO - Tables initialized successfully
2026-05-02 08:23:30,204 - core.database - DEBUG - [DB_OP] Create tables completed in 3.4946s
2026-05-02 08:23:30,268 - core.database - INFO - Lazy database initialization completed successfully
2026-05-02 08:23:30,268 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.6235s
2026-05-02 08:23:30,711 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.0661s
2026-05-02 08:23:33,589 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:33,605 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:33,605 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:23:33,607 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:33,608 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:33,609 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:23:33,610 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:23:33,612 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:23:33,613 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 08:23:33,613 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:23:33,930 - core.auth - DEBUG - Authentication token validated for user hash: 4f820a44
2026-05-02 08:23:33,954 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-02 08:23:33,968 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fb410c70af0>
2026-05-02 08:23:33,968 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7fb410c32840> server_hostname='atoms.dev' timeout=120.0
2026-05-02 08:23:33,975 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7fb410c70850>
2026-05-02 08:23:33,976 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-02 08:23:33,976 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-02 08:23:33,977 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-02 08:23:33,977 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-02 08:23:33,977 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-02 08:23:34,049 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4443s
2026-05-02 08:23:34,116 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sat, 02 May 2026 15:23:34 GMT'), (b'Content-Type', b'application/json; charset=utf-8'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Access-Control-Allow-Headers', b'Origin, Content-Type, Accept, Authorization'), (b'Access-Control-Allow-Methods', b'GET, POST, PUT, DELETE, OPTIONS'), (b'Access-Control-Allow-Origin', b'*'), (b'Access-Control-Max-Age', b'86400'), (b'X-Request-Id', b'37704eb72e528dcf4afb08d4a16b106e'), (b'X-Trace-Id', b'f322f93c2eb14c958ef0684be2f61e11'), (b'Content-Security-Policy', b"frame-ancestors 'self' https://atoms.dev"), (b'Strict-Transport-Security', b'max-age=63072000; includeSubDomains; preload'), (b'X-Content-Type-Options', b'nosniff'), (b'X-XSS-Protection', b'1; mode=block'), (b'Referrer-Policy', b'strict-origin-when-cross-origin'), (b'cf-cache-status', b'DYNAMIC'), (b'Content-Encoding', b'gzip'), (b'Server', b'cloudflare'), (b'CF-RAY', b'9f5807215f5511f1-LAX')])
2026-05-02 08:23:34,117 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-02 08:23:34,117 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-02 08:23:34,117 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-02 08:23:34,117 - httpcore.http11 - DEBUG - response_closed.started
2026-05-02 08:23:34,117 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-02 08:23:34,118 - httpcore.connection - DEBUG - close.started
2026-05-02 08:23:34,119 - httpcore.connection - DEBUG - close.complete
2026-05-02 08:23:34,183 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:23:34,184 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5714s
2026-05-02 08:23:34,184 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:23:34,185 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5763s
2026-05-02 08:24:45,015 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:24:45,016 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0008s
2026-05-02 08:24:45,018 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-02 08:24:45,019 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:24:45,019 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-02 08:24:45,020 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:24:45,021 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:24:45,022 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:24:45,022 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:24:45,334 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3185s
2026-05-02 08:24:45,400 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:24:45,401 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3819s
2026-05-02 08:24:45,403 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:24:45,403 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3822s
2026-05-02 08:25:04,000 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:25:04,000 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:25:04,319 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3190s
2026-05-02 08:25:46,139 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:25:46,139 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 08:25:46,455 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3165s
2026-05-02 08:26:30,570 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:26:30,571 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-02 08:26:30,892 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3219s
2026-05-02 08:26:37,139 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:26:37,140 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-02 08:26:37,523 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3833s
2026-05-02 08:26:46,156 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:26:46,157 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 08:26:46,475 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3189s
2026-05-02 08:27:46,383 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:27:46,383 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-02 08:27:46,704 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3209s
2026-05-02 08:28:21,120 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:28:21,121 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-02 08:28:21,439 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3189s
2026-05-02 08:28:31,682 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:28:31,682 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 08:28:31,684 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-02 08:28:31,685 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:28:31,685 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-02 08:28:31,686 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:28:31,687 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:28:31,688 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-02 08:28:31,689 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-02 08:28:32,001 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3196s
2026-05-02 08:28:32,067 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:28:32,068 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3829s
2026-05-02 08:28:32,205 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-02 08:28:32,207 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5193s
2026-05-02 08:29:22,080 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-02 08:29:22,080 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-02 08:29:22,529 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4496s
2026-05-02 08:29:33,846 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-02 08:29:34,111 - core.database - INFO - Database connection closed and engine disposed
2026-05-02 08:29:34,111 - services.database - INFO - Database connections closed
2026-05-02 08:29:34,111 - services.database - DEBUG - [DB_OP] Database close completed in 0.2659s
