2026-05-03 03:50:37,244 - main - INFO - === Logging system initialized ===
2026-05-03 03:50:37,244 - main - INFO - Log file: logs/app_20260503_035037.log
2026-05-03 03:50:37,244 - main - INFO - Log level: INFO
2026-05-03 03:50:37,244 - main - INFO - Timestamp: 20260503_035037
2026-05-03 03:50:37,308 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-03 03:50:37,345 - main - INFO - Included router: routers.admin_users.router
2026-05-03 03:50:37,381 - main - INFO - Included router: routers.agent_availability.router
2026-05-03 03:50:38,157 - main - INFO - Included router: routers.ai_ticket_summary.router
2026-05-03 03:50:38,175 - main - INFO - Included router: routers.aihub.router
2026-05-03 03:50:38,196 - main - INFO - Included router: routers.api_hub.router
2026-05-03 03:50:38,210 - main - INFO - Included router: routers.audit_log.router
2026-05-03 03:50:38,219 - main - INFO - Included router: routers.auth.router
2026-05-03 03:50:38,234 - main - INFO - Included router: routers.cache_settings.router
2026-05-03 03:50:38,273 - main - INFO - Included router: routers.carts.router
2026-05-03 03:50:38,320 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-03 03:50:38,359 - main - INFO - Included router: routers.chat_attachments.router
2026-05-03 03:50:38,612 - main - INFO - Included router: routers.chat_branding.router
2026-05-03 03:50:38,626 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-03 03:50:38,675 - main - INFO - Included router: routers.chat_conversations.router
2026-05-03 03:50:38,718 - main - INFO - Included router: routers.chat_messages.router
2026-05-03 03:50:38,758 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-03 03:50:38,777 - main - INFO - Included router: routers.contact.router
2026-05-03 03:50:38,816 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-03 03:50:38,858 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-03 03:50:38,859 - main - INFO - Included router: routers.health.router
2026-05-03 03:50:38,900 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-03 03:50:38,945 - main - INFO - Included router: routers.kb_articles.router
2026-05-03 03:50:38,958 - main - INFO - Included router: routers.local_auth.router
2026-05-03 03:50:39,007 - main - INFO - Included router: routers.notification_preferences.router
2026-05-03 03:50:39,085 - main - INFO - Included router: routers.notifications.router
2026-05-03 03:50:39,089 - main - INFO - Included router: routers.notifications_extras.router
2026-05-03 03:50:39,166 - main - INFO - Included router: routers.oauth.router
2026-05-03 03:50:39,297 - main - INFO - Included router: routers.order_items.router
2026-05-03 03:50:39,348 - main - INFO - Included router: routers.orders.router
2026-05-03 03:50:39,353 - main - INFO - Included router: routers.password_reset.router
2026-05-03 03:50:39,399 - main - INFO - Included router: routers.plans.router
2026-05-03 03:50:39,441 - main - INFO - Included router: routers.product_categories.router
2026-05-03 03:50:39,483 - main - INFO - Included router: routers.product_reviews.router
2026-05-03 03:50:39,530 - main - INFO - Included router: routers.products.router
2026-05-03 03:50:39,551 - main - INFO - Included router: routers.role_management.router
2026-05-03 03:50:39,596 - main - INFO - Included router: routers.service_testimonials.router
2026-05-03 03:50:39,614 - main - INFO - Included router: routers.settings.router
2026-05-03 03:50:39,649 - main - INFO - Included router: routers.site_settings.router
2026-05-03 03:50:39,683 - main - INFO - Included router: routers.smtp_settings.router
2026-05-03 03:50:39,716 - main - INFO - Included router: routers.storage.router
2026-05-03 03:50:40,152 - main - INFO - Included router: routers.support_chat.router
2026-05-03 03:50:40,211 - main - INFO - Included router: routers.support_departments.router
2026-05-03 03:50:40,252 - main - INFO - Included router: routers.support_seats.router
2026-05-03 03:50:40,260 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-03 03:50:40,294 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-03 03:50:40,330 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-03 03:50:40,343 - main - INFO - Included router: routers.user.router
2026-05-03 03:50:40,385 - main - INFO - Included router: routers.user_profiles.router
2026-05-03 03:50:40,420 - main - INFO - Included router: routers.user_roles.router
2026-05-03 03:50:40,514 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-03 03:50:40,523 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-03 03:50:40,540 - main - INFO - Included router: routers.whmcs.router
2026-05-03 03:50:40,601 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-03 03:50:40,637 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-03 03:50:40,639 - main - INFO - === Application startup initiated ===
2026-05-03 03:50:40,639 - services.database - INFO - Ignore creating tables
2026-05-03 03:50:40,639 - services.mock_data - INFO - Ignore initialize data
2026-05-03 03:50:40,639 - services.auth - INFO - Ignore initialize admin
2026-05-03 03:50:40,639 - main - INFO - === Application startup completed successfully ===
2026-05-03 03:50:42,060 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:50:42,060 - core.database - WARNING - Database session maker not available, attempting lazy initialization...
2026-05-03 03:50:42,060 - core.database - WARNING - Database not initialized, attempting lazy initialization...
2026-05-03 03:50:42,061 - core.database - INFO - Starting database initialization...
2026-05-03 03:50:42,061 - core.config - DEBUG - Read dynamic attribute database_url from environment variable DATABASE_URL
2026-05-03 03:50:42,061 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-03 03:50:42,062 - core.database - INFO - Creating async database engine...
2026-05-03 03:50:42,062 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-03 03:50:42,099 - core.database - INFO - Database engine created successfully
2026-05-03 03:50:42,099 - core.database - INFO - Creating async session maker...
2026-05-03 03:50:42,099 - core.database - INFO - Async session maker created successfully
2026-05-03 03:50:42,099 - core.database - INFO - Database connection initialized successfully
2026-05-03 03:50:42,099 - core.database - DEBUG - [DB_OP] Starting create_tables
2026-05-03 03:50:42,099 - core.database - INFO - 🔧 Starting table creation...
2026-05-03 03:50:45,819 - core.database - INFO - Tables initialized successfully
2026-05-03 03:50:45,820 - core.database - DEBUG - [DB_OP] Create tables completed in 3.7202s
2026-05-03 03:50:45,883 - core.database - INFO - Lazy database initialization completed successfully
2026-05-03 03:50:45,883 - core.database - DEBUG - [DB_OP] Database session created successfully in 3.8228s
2026-05-03 03:50:46,356 - core.database - DEBUG - [DB_OP] Database session cleanup after 4.2954s
2026-05-03 03:51:05,302 - core.config - DEBUG - Read dynamic attribute jwt_secret_key from environment variable JWT_SECRET_KEY
2026-05-03 03:51:05,303 - core.config - DEBUG - Read dynamic attribute jwt_algorithm from environment variable JWT_ALGORITHM
2026-05-03 03:51:05,314 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:51:05,405 - 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:51:05,406 - 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:51:05,410 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:51:05,410 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:51:05,411 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:51:05,412 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:51:05,412 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:51:05,416 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:51:05,417 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:51:05,417 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"general"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:51:05,419 - core.database - DEBUG - [DB_OP] Starting get_db session creation
2026-05-03 03:51:05,419 - core.database - DEBUG - [DB_OP] Database session created successfully in 0.0002s
2026-05-03 03:51:05,419 - routers.site_settings - DEBUG - Querying site_settingss: query={"key":"branding"}, sort=None, skip=0, limit=1, fields=None
2026-05-03 03:51:05,421 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:51:05,422 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733868faf0>
2026-05-03 03:51:05,422 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f73387e7840> server_hostname='api.ipify.org' timeout=5.0
2026-05-03 03:51:05,427 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733868ec20>
2026-05-03 03:51:05,427 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 03:51:05,427 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:51:05,428 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 03:51:05,428 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:51:05,428 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 03:51:05,494 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 10:51:05 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'9f5eb55eed23b81f-LAX')])
2026-05-03 03:51:05,494 - httpx - INFO - HTTP Request: GET https://api.ipify.org?format=json "HTTP/1.1 200 OK"
2026-05-03 03:51:05,495 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 03:51:05,495 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:51:05,495 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:51:05,495 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:51:05,496 - httpcore.connection - DEBUG - close.started
2026-05-03 03:51:05,496 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:51:05,585 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733868ee90>
2026-05-03 03:51:05,585 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f73387e77c0> server_hostname='client.doiteasy.net' timeout=15.0
2026-05-03 03:51:05,811 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733b2b8490>
2026-05-03 03:51:05,812 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.4020s
2026-05-03 03:51:05,813 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2026-05-03 03:51:05,813 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:51:05,813 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'POST']>
2026-05-03 03:51:05,814 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:51:05,814 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2026-05-03 03:51:06,023 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.6113s
2026-05-03 03:51:06,136 - 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:51:06 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=d51bc8de482caec56f2534c95754e829; 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:51:06,136 - httpx - INFO - HTTP Request: POST https://client.doiteasy.net/includes/api.php "HTTP/1.1 403 Forbidden"
2026-05-03 03:51:06,137 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2026-05-03 03:51:06,137 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:51:06,137 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:51:06,137 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:51:06,138 - httpcore.connection - DEBUG - close.started
2026-05-03 03:51:06,138 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:51:06,203 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:51:06,204 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7874s
2026-05-03 03:51:06,204 - routers.site_settings - DEBUG - Found 0 site_settingss
2026-05-03 03:51:06,205 - core.database - DEBUG - [DB_OP] Database session cleanup after 0.7859s
2026-05-03 03:51:10,719 - core.auth - DEBUG - Authentication token validated for user hash: f8ef80bf
2026-05-03 03:51:10,783 - 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:51:10,784 - 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:51:10,794 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733b2b8910>
2026-05-03 03:51:10,795 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f73386d79c0> server_hostname='api.ipify.org' timeout=5.0
2026-05-03 03:51:10,799 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733b46c4f0>
2026-05-03 03:51:10,800 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'GET']>
2026-05-03 03:51:10,800 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:51:10,800 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'GET']>
2026-05-03 03:51:10,801 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:51:10,801 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'GET']>
2026-05-03 03:51:10,866 - httpcore.http11 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Date', b'Sun, 03 May 2026 10:51:10 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'9f5eb5808f54dc36-LAX')])
2026-05-03 03:51:10,866 - httpx - INFO - HTTP Request: GET https://api.ipify.org?format=json "HTTP/1.1 200 OK"
2026-05-03 03:51:10,866 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'GET']>
2026-05-03 03:51:10,867 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:51:10,867 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:51:10,867 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:51:10,867 - httpcore.connection - DEBUG - close.started
2026-05-03 03:51:10,868 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:51:11,129 - httpcore.connection - DEBUG - connect_tcp.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733b2b96f0>
2026-05-03 03:51:11,130 - httpcore.connection - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x7f73387e7dc0> server_hostname='client.doiteasy.net' timeout=15.0
2026-05-03 03:51:11,305 - httpcore.connection - DEBUG - start_tls.complete return_value=<httpcore._backends.anyio.AnyIOStream object at 0x7f733a9ebbe0>
2026-05-03 03:51:11,306 - httpcore.http11 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2026-05-03 03:51:11,307 - httpcore.http11 - DEBUG - send_request_headers.complete
2026-05-03 03:51:11,307 - httpcore.http11 - DEBUG - send_request_body.started request=<Request [b'POST']>
2026-05-03 03:51:11,308 - httpcore.http11 - DEBUG - send_request_body.complete
2026-05-03 03:51:11,308 - httpcore.http11 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2026-05-03 03:51:11,629 - 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:51:11 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=c101c5a56a930b586ec02faa97dff362; 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:51:11,630 - httpx - INFO - HTTP Request: POST https://client.doiteasy.net/includes/api.php "HTTP/1.1 403 Forbidden"
2026-05-03 03:51:11,630 - httpcore.http11 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2026-05-03 03:51:11,630 - httpcore.http11 - DEBUG - receive_response_body.complete
2026-05-03 03:51:11,631 - httpcore.http11 - DEBUG - response_closed.started
2026-05-03 03:51:11,631 - httpcore.http11 - DEBUG - response_closed.complete
2026-05-03 03:51:11,631 - httpcore.connection - DEBUG - close.started
2026-05-03 03:51:11,631 - httpcore.connection - DEBUG - close.complete
2026-05-03 03:51:52,891 - services.database - DEBUG - [DB_OP] Starting database close
2026-05-03 03:51:53,161 - core.database - INFO - Database connection closed and engine disposed
2026-05-03 03:51:53,161 - services.database - INFO - Database connections closed
2026-05-03 03:51:53,161 - services.database - DEBUG - [DB_OP] Database close completed in 0.2704s
