2026-05-03 06:16:38,287 - main - INFO - === Logging system initialized ===
2026-05-03 06:16:38,288 - main - INFO - Log file: logs/app_20260503_061638.log
2026-05-03 06:16:38,288 - main - INFO - Log level: INFO
2026-05-03 06:16:38,288 - main - INFO - Timestamp: 20260503_061638
2026-05-03 06:16:38,371 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 06:16:38,416 - main - INFO - Included router: routers.admin_users.router
2026-05-03 06:16:38,459 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 06:16:39,432 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 06:16:39,456 - main - INFO - Included router: routers.aihub.router
2026-05-03 06:16:39,504 - main - INFO - Included router: routers.api_hub.router
2026-05-03 06:16:39,520 - main - INFO - Included router: routers.audit_log.router
2026-05-03 06:16:39,531 - main - INFO - Included router: routers.auth.router
2026-05-03 06:16:39,551 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 06:16:39,599 - main - INFO - Included router: routers.carts.router
2026-05-03 06:16:39,654 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 06:16:39,700 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 06:16:39,907 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 06:16:39,926 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 06:16:39,985 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 06:16:40,043 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 06:16:40,092 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 06:16:40,125 - main - INFO - Included router: routers.contact.router
2026-05-03 06:16:40,169 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 06:16:40,243 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 06:16:40,246 - main - INFO - Included router: routers.health.router
2026-05-03 06:16:40,293 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 06:16:40,341 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 06:16:40,366 - main - INFO - Included router: routers.local_auth.router
2026-05-03 06:16:40,410 - main - INFO - Included router: routers.mfa.router
2026-05-03 06:16:40,462 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 06:16:40,517 - main - INFO - Included router: routers.notifications.router
2026-05-03 06:16:40,522 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 06:16:40,823 - main - INFO - Included router: routers.oauth.router
2026-05-03 06:16:40,876 - main - INFO - Included router: routers.order_items.router
2026-05-03 06:16:40,935 - main - INFO - Included router: routers.orders.router
2026-05-03 06:16:40,943 - main - INFO - Included router: routers.password_reset.router
2026-05-03 06:16:40,997 - main - INFO - Included router: routers.plans.router
2026-05-03 06:16:41,047 - main - INFO - Included router: routers.product_categories.router
2026-05-03 06:16:41,093 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 06:16:41,158 - main - INFO - Included router: routers.products.router
2026-05-03 06:16:41,186 - main - INFO - Included router: routers.role_management.router
2026-05-03 06:16:41,237 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 06:16:41,261 - main - INFO - Included router: routers.settings.router
2026-05-03 06:16:41,306 - main - INFO - Included router: routers.site_settings.router
2026-05-03 06:16:41,348 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 06:16:41,387 - main - INFO - Included router: routers.storage.router
2026-05-03 06:16:41,699 - main - INFO - Included router: routers.support_chat.router
2026-05-03 06:16:41,748 - main - INFO - Included router: routers.support_departments.router
2026-05-03 06:16:41,796 - main - INFO - Included router: routers.support_seats.router
2026-05-03 06:16:41,805 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 06:16:41,850 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 06:16:41,893 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 06:16:42,063 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 06:16:42,114 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 06:16:42,129 - main - INFO - Included router: routers.user.router
2026-05-03 06:16:42,174 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 06:16:42,218 - main - INFO - Included router: routers.user_roles.router
2026-05-03 06:16:42,322 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 06:16:42,334 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 06:16:42,355 - main - INFO - Included router: routers.whmcs.router
2026-05-03 06:16:42,428 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 06:16:42,766 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 06:16:42,768 - main - INFO - === Application startup initiated ===
2026-05-03 06:16:42,768 - services.database - INFO - Ignore creating tables
2026-05-03 06:16:42,768 - services.mock_data - INFO - Ignore initialize data
2026-05-03 06:16:42,768 - services.auth - INFO - Ignore initialize admin
2026-05-03 06:16:42,768 - main - INFO - === Application startup completed successfully ===
2026-05-03 06:16:53,039 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 06:16:53,040 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 06:16:53,055 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:16:53,060 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:53,060 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 06:16:53,060 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 06:16:53,060 - core.database - INFO - Starting database initialization...
2026-05-03 06:16:53,060 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 06:16:53,060 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 06:16:53,061 - core.database - INFO - Creating async database engine...
2026-05-03 06:16:53,062 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 06:16:53,121 - core.database - INFO - Database engine created successfully
2026-05-03 06:16:53,121 - core.database - INFO - Creating async session maker...
2026-05-03 06:16:53,121 - core.database - INFO - Async session maker created successfully
2026-05-03 06:16:53,121 - core.database - INFO - Database connection initialized successfully
2026-05-03 06:16:53,121 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 06:16:53,121 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 06:16:53,128 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:53,128 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 06:16:53,138 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:53,138 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0009s
2026-05-03 06:16:53,139 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:16:53,144 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:16:53,144 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:16:53,144 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:16:53,333 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:16:53,364 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:16:53,365 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 06:16:53,365 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 06:16:53,457 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 06:16:53,468 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f07892a0a90>
2026-05-03 06:16:53,469 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f078921f3c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 06:16:53,478 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f07892a0730>
2026-05-03 06:16:53,479 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 06:16:53,479 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 06:16:53,479 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 06:16:53,480 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 06:16:53,480 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 06:16:53,640 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 13:16:53 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'3a835ed24e941b35ea362bf774e5fdae'), (b'X-Trace-Id', b'02b62ecabfbe4612b8dd8e81505c606b'), (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'9f5f8af23b4fc4e6-LAX')])
2026-05-03 06:16:53,642 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-03 06:16:53,642 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 06:16:53,643 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 06:16:53,643 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 06:16:53,643 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 06:16:53,644 - httpcore.connection - DEBUG - close.started
2026-05-03 06:16:53,645 - httpcore.connection - DEBUG - close.complete
2026-05-03 06:16:54,499 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.3708s
2026-05-03 06:16:54,617 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:16:54,619 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4747s
2026-05-03 06:16:54,624 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:16:54,625 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.4875s
2026-05-03 06:16:57,635 - core.database - INFO - Tables initialized successfully
2026-05-03 06:16:57,636 - core.database - DEBUG - [DB_OP] Create tables completed in 4.5149s
2026-05-03 06:16:57,700 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 06:16:57,700 - core.database - DEBUG - [DB_OP] Database session created successfully in 4.6404s
2026-05-03 06:16:57,701 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:16:58,612 - core.database - DEBUG - [DB_OP] Database session cleanup after 5.5521s
2026-05-03 06:17:11,074 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:17:11,075 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 06:17:11,515 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4408s
2026-05-03 06:17:37,713 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:17:37,722 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:17:37,722 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:17:37,723 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:17:37,754 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:17:37,755 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 06:17:37,755 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:17:37,759 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:17:37,760 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:17:37,761 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:17:37,761 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 06:17:37,761 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:17:37,983 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:17:37,988 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:17:38,016 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 06:17:38,023 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f0788f64df0>
2026-05-03 06:17:38,023 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f0788f447c0> server_hostname='atoms.dev' timeout=120.0
2026-05-03 06:17:38,032 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f0788f64b50>
2026-05-03 06:17:38,033 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 06:17:38,033 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 06:17:38,033 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 06:17:38,033 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 06:17:38,034 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 06:17:38,082 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3222s
2026-05-03 06:17:38,143 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:17:38,144 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3829s
2026-05-03 06:17:38,193 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 13:17:38 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'522609c7f8f19256a873bc6f86e3da4a'), (b'X-Trace-Id', b'f4dfef4cbec946b38684a5df7bf5dad2'), (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'9f5f8c08b964d498-LAX')])
2026-05-03 06:17:38,195 - httpx - INFO - HTTP Request: GET https://atoms.dev/api/v1/infra/client/oss/buckets/user-avatars/objects "HTTP/1.1 200 OK"
2026-05-03 06:17:38,195 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 06:17:38,196 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 06:17:38,196 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 06:17:38,197 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 06:17:38,197 - httpcore.connection - DEBUG - close.started
2026-05-03 06:17:38,197 - httpcore.connection - DEBUG - close.complete
2026-05-03 06:17:38,338 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:17:38,339 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.5847s
2026-05-03 06:17:38,623 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.9007s
2026-05-03 06:17:40,030 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 06:17:40,295 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 06:17:40,295 - services.database - INFO - Database connections closed
2026-05-03 06:17:40,296 - services.database - DEBUG - [DB_OP] Database close completed in 0.2657s
