2026-05-03 06:48:54,123 - main - INFO - === Logging system initialized ===
2026-05-03 06:48:54,124 - main - INFO - Log file: logs/app_20260503_064854.log
2026-05-03 06:48:54,124 - main - INFO - Log level: INFO
2026-05-03 06:48:54,124 - main - INFO - Timestamp: 20260503_064854
2026-05-03 06:48:54,202 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 06:48:54,250 - main - INFO - Included router: routers.admin_users.router
2026-05-03 06:48:54,308 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 06:48:55,234 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 06:48:55,262 - main - INFO - Included router: routers.aihub.router
2026-05-03 06:48:55,316 - main - INFO - Included router: routers.api_hub.router
2026-05-03 06:48:55,335 - main - INFO - Included router: routers.audit_log.router
2026-05-03 06:48:55,351 - main - INFO - Included router: routers.auth.router
2026-05-03 06:48:55,376 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 06:48:55,429 - main - INFO - Included router: routers.carts.router
2026-05-03 06:48:55,485 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 06:48:55,536 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 06:48:55,750 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 06:48:55,783 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 06:48:55,838 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 06:48:55,886 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 06:48:55,933 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 06:48:55,960 - main - INFO - Included router: routers.contact.router
2026-05-03 06:48:56,007 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 06:48:56,104 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 06:48:56,108 - main - INFO - Included router: routers.health.router
2026-05-03 06:48:56,168 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 06:48:56,231 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 06:48:56,257 - main - INFO - Included router: routers.local_auth.router
2026-05-03 06:48:56,294 - main - INFO - Included router: routers.mfa.router
2026-05-03 06:48:56,349 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 06:48:56,402 - main - INFO - Included router: routers.notifications.router
2026-05-03 06:48:56,413 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 06:48:56,753 - main - INFO - Included router: routers.oauth.router
2026-05-03 06:48:56,817 - main - INFO - Included router: routers.order_items.router
2026-05-03 06:48:56,888 - main - INFO - Included router: routers.orders.router
2026-05-03 06:48:56,895 - main - INFO - Included router: routers.password_reset.router
2026-05-03 06:48:56,947 - main - INFO - Included router: routers.plans.router
2026-05-03 06:48:56,997 - main - INFO - Included router: routers.product_categories.router
2026-05-03 06:48:57,053 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 06:48:57,118 - main - INFO - Included router: routers.products.router
2026-05-03 06:48:57,152 - main - INFO - Included router: routers.role_management.router
2026-05-03 06:48:57,209 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 06:48:57,233 - main - INFO - Included router: routers.settings.router
2026-05-03 06:48:57,271 - main - INFO - Included router: routers.site_settings.router
2026-05-03 06:48:57,311 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 06:48:57,351 - main - INFO - Included router: routers.storage.router
2026-05-03 06:48:57,744 - main - INFO - Included router: routers.support_chat.router
2026-05-03 06:48:57,811 - main - INFO - Included router: routers.support_departments.router
2026-05-03 06:48:57,880 - main - INFO - Included router: routers.support_seats.router
2026-05-03 06:48:57,891 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 06:48:57,937 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 06:48:57,978 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 06:48:58,166 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-03 06:48:58,257 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-03 06:48:58,269 - main - INFO - Included router: routers.user.router
2026-05-03 06:48:58,321 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 06:48:58,368 - main - INFO - Included router: routers.user_roles.router
2026-05-03 06:48:58,506 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 06:48:58,520 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 06:48:58,543 - main - INFO - Included router: routers.whmcs.router
2026-05-03 06:48:58,628 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 06:48:58,851 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 06:48:58,853 - main - INFO - === Application startup initiated ===
2026-05-03 06:48:58,853 - services.database - INFO - Ignore creating tables
2026-05-03 06:48:58,853 - services.mock_data - INFO - Ignore initialize data
2026-05-03 06:48:58,853 - services.auth - INFO - Ignore initialize admin
2026-05-03 06:48:58,854 - main - INFO - === Application startup completed successfully ===
2026-05-03 06:49:07,038 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:07,038 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 06:49:07,038 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 06:49:07,038 - core.database - INFO - Starting database initialization...
2026-05-03 06:49:07,038 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 06:49:07,038 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 06:49:07,039 - core.database - INFO - Creating async database engine...
2026-05-03 06:49:07,039 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 06:49:07,090 - core.database - INFO - Database engine created successfully
2026-05-03 06:49:07,090 - core.database - INFO - Creating async session maker...
2026-05-03 06:49:07,090 - core.database - INFO - Async session maker created successfully
2026-05-03 06:49:07,090 - core.database - INFO - Database connection initialized successfully
2026-05-03 06:49:07,090 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 06:49:07,090 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 06:49:09,046 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:09,046 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 06:49:09,046 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 06:49:09,047 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 06:49:09,059 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:09,065 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:09,066 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:49:09,066 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:49:09,069 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:09,069 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 06:49:09,070 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 06:49:09,180 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:09,478 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:09,485 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:09,485 - core.config - DEBUG - Read dynamic attribute oss_service_url from environment variable OSS_SERVICE_URL
2026-05-03 06:49:09,486 - core.config - DEBUG - Read dynamic attribute oss_api_key from environment variable OSS_API_KEY
2026-05-03 06:49:09,562 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 06:49:09,609 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f829b3fe800>
2026-05-03 06:49:09,609 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f82992aef40> server_hostname='atoms.dev' timeout=120.0
2026-05-03 06:49:09,618 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f829b3fe950>
2026-05-03 06:49:09,619 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 06:49:09,619 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 06:49:09,619 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 06:49:09,620 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 06:49:09,620 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 06:49:09,793 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 13:49:09 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'ffee7132c2e48836f9483f9325c09391'), (b'X-Trace-Id', b'2a04f3dfff4c46248f42573080aa19da'), (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'9f5fba372b27cb9f-LAX')])
2026-05-03 06:49:09,795 - 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:49:09,795 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 06:49:09,797 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 06:49:09,797 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 06:49:09,798 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 06:49:09,798 - httpcore.connection - DEBUG - close.started
2026-05-03 06:49:09,804 - httpcore.connection - DEBUG - close.complete
2026-05-03 06:49:09,930 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:49:09,931 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8662s
2026-05-03 06:49:09,935 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 06:49:09,936 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8667s
2026-05-03 06:49:10,258 - core.database - DEBUG - [DB_OP] Database session cleanup after 1.2128s
2026-05-03 06:49:11,571 - core.database - INFO - Tables initialized successfully
2026-05-03 06:49:11,572 - core.database - DEBUG - [DB_OP] Create tables completed in 4.4814s
2026-05-03 06:49:11,635 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 06:49:11,636 - core.database - DEBUG - [DB_OP] Database session created successfully in 4.5982s
2026-05-03 06:49:12,088 - core.database - DEBUG - [DB_OP] Database session cleanup after 5.0502s
2026-05-03 06:49:12,365 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:12,366 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0007s
2026-05-03 06:49:12,812 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4466s
2026-05-03 06:49:17,135 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:17,139 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:49:17,140 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0006s
2026-05-03 06:49:17,141 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:17,428 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:49:17,458 - httpcore.connection - DEBUG - connect_tcp.started host='atoms.dev' port=443 local_address=None timeout=120.0 socket_options=None
2026-05-03 06:49:17,471 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f829b469780>
2026-05-03 06:49:17,471 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f8299128940> server_hostname='atoms.dev' timeout=120.0
2026-05-03 06:49:17,480 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f829b469a80>
2026-05-03 06:49:17,480 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 06:49:17,481 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 06:49:17,481 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 06:49:17,482 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 06:49:17,482 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 06:49:17,606 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 13:49:17 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'2f4215a6e1bc45946c547a0387615505'), (b'X-Trace-Id', b'c464e17f62cc4afd916b4d80ee61ceef'), (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'9f5fba684933d254-LAX')])
2026-05-03 06:49:17,606 - 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:49:17,607 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 06:49:17,607 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 06:49:17,607 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 06:49:17,608 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 06:49:17,608 - httpcore.connection - DEBUG - close.started
2026-05-03 06:49:17,608 - httpcore.connection - DEBUG - close.complete
2026-05-03 06:49:17,889 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7495s
2026-05-03 06:50:06,107 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:50:06,109 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0011s
2026-05-03 06:50:06,552 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4448s
2026-05-03 06:50:09,069 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:50:09,069 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 06:50:09,070 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 06:50:09,071 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 06:50:09,071 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 06:50:09,403 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3316s
2026-05-03 06:50:09,904 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8353s
2026-05-03 06:50:14,441 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 06:50:14,708 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 06:50:14,708 - services.database - INFO - Database connections closed
2026-05-03 06:50:14,708 - services.database - DEBUG - [DB_OP] Database close completed in 0.2669s
