2026-05-03 03:47:36,567 - main - INFO - === Logging system initialized ===
2026-05-03 03:47:36,567 - main - INFO - Log file: logs/app_20260503_034736.log
2026-05-03 03:47:36,568 - main - INFO - Log level: INFO
2026-05-03 03:47:36,568 - main - INFO - Timestamp: 20260503_034736
2026-05-03 03:47:36,633 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 03:47:36,670 - main - INFO - Included router: routers.admin_users.router
2026-05-03 03:47:36,714 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 03:47:37,471 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 03:47:37,489 - main - INFO - Included router: routers.aihub.router
2026-05-03 03:47:37,588 - main - INFO - Included router: routers.api_hub.router
2026-05-03 03:47:37,601 - main - INFO - Included router: routers.audit_log.router
2026-05-03 03:47:37,614 - main - INFO - Included router: routers.auth.router
2026-05-03 03:47:37,631 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 03:47:37,672 - main - INFO - Included router: routers.carts.router
2026-05-03 03:47:37,719 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 03:47:37,762 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 03:47:37,898 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 03:47:37,931 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 03:47:37,981 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 03:47:38,024 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 03:47:38,078 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 03:47:38,097 - main - INFO - Included router: routers.contact.router
2026-05-03 03:47:38,134 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 03:47:38,173 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 03:47:38,175 - main - INFO - Included router: routers.health.router
2026-05-03 03:47:38,215 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 03:47:38,254 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 03:47:38,267 - main - INFO - Included router: routers.local_auth.router
2026-05-03 03:47:38,309 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 03:47:38,357 - main - INFO - Included router: routers.notifications.router
2026-05-03 03:47:38,364 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 03:47:38,449 - main - INFO - Included router: routers.oauth.router
2026-05-03 03:47:38,590 - main - INFO - Included router: routers.order_items.router
2026-05-03 03:47:38,639 - main - INFO - Included router: routers.orders.router
2026-05-03 03:47:38,645 - main - INFO - Included router: routers.password_reset.router
2026-05-03 03:47:38,688 - main - INFO - Included router: routers.plans.router
2026-05-03 03:47:38,726 - main - INFO - Included router: routers.product_categories.router
2026-05-03 03:47:38,767 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 03:47:38,815 - main - INFO - Included router: routers.products.router
2026-05-03 03:47:38,835 - main - INFO - Included router: routers.role_management.router
2026-05-03 03:47:38,873 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 03:47:38,891 - main - INFO - Included router: routers.settings.router
2026-05-03 03:47:38,922 - main - INFO - Included router: routers.site_settings.router
2026-05-03 03:47:38,951 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 03:47:38,984 - main - INFO - Included router: routers.storage.router
2026-05-03 03:47:39,227 - main - INFO - Included router: routers.support_chat.router
2026-05-03 03:47:39,282 - main - INFO - Included router: routers.support_departments.router
2026-05-03 03:47:39,324 - main - INFO - Included router: routers.support_seats.router
2026-05-03 03:47:39,332 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 03:47:39,369 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 03:47:39,406 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 03:47:39,416 - main - INFO - Included router: routers.user.router
2026-05-03 03:47:39,454 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 03:47:39,489 - main - INFO - Included router: routers.user_roles.router
2026-05-03 03:47:39,579 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 03:47:39,589 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 03:47:39,608 - main - INFO - Included router: routers.whmcs.router
2026-05-03 03:47:39,667 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 03:47:39,712 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 03:47:39,714 - main - INFO - === Application startup initiated ===
2026-05-03 03:47:39,714 - services.database - INFO - Ignore creating tables
2026-05-03 03:47:39,714 - services.mock_data - INFO - Ignore initialize data
2026-05-03 03:47:39,714 - services.auth - INFO - Ignore initialize admin
2026-05-03 03:47:39,714 - main - INFO - === Application startup completed successfully ===
2026-05-03 03:48:02,034 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:48:02,034 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 03:48:02,034 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 03:48:02,034 - core.database - INFO - Starting database initialization...
2026-05-03 03:48:02,034 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 03:48:02,034 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 03:48:02,035 - core.database - INFO - Creating async database engine...
2026-05-03 03:48:02,035 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 03:48:02,087 - core.database - INFO - Database engine created successfully
2026-05-03 03:48:02,088 - core.database - INFO - Creating async session maker...
2026-05-03 03:48:02,088 - core.database - INFO - Async session maker created successfully
2026-05-03 03:48:02,088 - core.database - INFO - Database connection initialized successfully
2026-05-03 03:48:02,088 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 03:48:02,088 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 03:48:05,803 - core.database - INFO - Tables initialized successfully
2026-05-03 03:48:05,804 - core.database - DEBUG - [DB_OP] Create tables completed in 3.7158s
2026-05-03 03:48:05,867 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 03:48:05,867 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.8336s
2026-05-03 03:48:06,339 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.3048s
2026-05-03 03:48:06,610 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:48:06,610 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 03:48:06,927 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3168s
2026-05-03 03:48:10,009 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 03:48:10,010 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 03:48:10,049 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:48:10,049 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:48:10,049 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:48:10,431 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3825s
2026-05-03 03:49:02,214 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:02,214 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 03:49:02,532 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3177s
2026-05-03 03:49:22,428 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:22,429 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 03:49:22,765 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3367s
2026-05-03 03:49:41,461 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:49:41,561 - httpcore.connection - DEBUG - connect_tcp.started host='client.doiteasy.net' port=443 local_address=None timeout=15.0 socket_options=None
2026-05-03 03:49:41,564 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:49:41,564 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:41,565 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 03:49:41,566 - httpcore.connection - DEBUG - connect_tcp.started host='api.ipify.org' port=443 local_address=None timeout=5.0 socket_options=None
2026-05-03 03:49:41,567 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:41,568 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0003s
2026-05-03 03:49:41,590 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:49:41,594 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:41,594 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0004s
2026-05-03 03:49:41,594 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:49:41,597 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:49:41,597 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:49:41,597 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:49:41,599 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7feb825cdd50>
2026-05-03 03:49:41,599 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7feb8272a340> server_hostname='api.ipify.org' timeout=5.0
2026-05-03 03:49:41,606 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7feb825cc250>
2026-05-03 03:49:41,606 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 03:49:41,606 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:49:41,607 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 03:49:41,607 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:49:41,607 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 03:49:41,672 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 10:49:41 GMT'), (b'Content-Type', b'application/json'), (b'Content-Length', b'23'), (b'Connection', b'keep-alive'), (b'Server', b'cloudflare'), (b'Vary', b'Origin'), (b'cf-cache-status', b'DYNAMIC'), (b'CF-RAY', b'9f5eb3530cfa7ddc-LAX')])
2026-05-03 03:49:41,673 - httpx - INFO - HTTP Request: GET https://api.ipify.org?format=json "HTTP/1.1 200 OK"
2026-05-03 03:49:41,673 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 03:49:41,673 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:49:41,673 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:49:41,674 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:49:41,674 - httpcore.connection - DEBUG - close.started
2026-05-03 03:49:41,674 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:49:41,899 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7feb825cc4c0>
2026-05-03 03:49:41,899 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7feb826bf740> server_hostname='client.doiteasy.net' timeout=15.0
2026-05-03 03:49:41,987 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4230s
2026-05-03 03:49:42,070 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7feb8276eaa0>
2026-05-03 03:49:42,070 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2026-05-03 03:49:42,071 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:49:42,071 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'POST']>
2026-05-03 03:49:42,072 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:49:42,072 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2026-05-03 03:49:42,350 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7825s
2026-05-03 03:49:42,377 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 403, b'Forbidden', [(b'Server', b'nginx'), (b'Date', b'Sun, 03 May 2026 10:49:42 GMT'), (b'Content-Type', b'application/json'), (b'Transfer-Encoding', b'chunked'), (b'Connection', b'keep-alive'), (b'Expires', b'Thu, 19 Nov 1981 08:52:00 GMT'), (b'Cache-Control', b'no-store, no-cache, must-revalidate'), (b'Pragma', b'no-cache'), (b'Set-Cookie', b'WHMCShaXcqDDHD9SP=3f93f3c08f12f75f36bb8b46bfe3e0f7; path=/; secure; HttpOnly'), (b'X-Content-Type-Options', b'nosniff'), (b'X-Frame-Options', b'SAMEORIGIN'), (b'Referrer-Policy', b'strict-origin-when-cross-origin'), (b'X-XSS-Protection', b'1; mode=block')])
2026-05-03 03:49:42,378 - httpx - INFO - HTTP Request: POST https://client.doiteasy.net/includes/api.php "HTTP/1.1 403 Forbidden"
2026-05-03 03:49:42,379 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2026-05-03 03:49:42,379 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:49:42,379 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:49:42,379 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:49:42,379 - httpcore.connection - DEBUG - close.started
2026-05-03 03:49:42,380 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:49:42,455 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:49:42,456 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8622s
2026-05-03 03:49:42,464 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:49:42,464 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.8671s
2026-05-03 03:50:01,541 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:50:01,542 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 03:50:01,617 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:50:01,617 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0005s
2026-05-03 03:50:01,619 - dependencies.auth - DEBUG - Authentication required for request GET /api/v1/auth/me
2026-05-03 03:50:01,620 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:50:01,621 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:50:01,621 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:50:01,625 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:50:01,625 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:50:01,625 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:50:02,000 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.3829s
2026-05-03 03:50:02,062 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:50:02,063 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4425s
2026-05-03 03:50:02,065 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:50:02,065 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4407s
2026-05-03 03:50:02,509 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.9680s
2026-05-03 03:50:29,408 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 03:50:29,673 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 03:50:29,674 - services.database - INFO - Database connections closed
2026-05-03 03:50:29,674 - services.database - DEBUG - [DB_OP] Database close completed in 0.2657s
