2026-05-04 07:57:09,467 - main - INFO - === Logging system initialized ===
2026-05-04 07:57:09,467 - main - INFO - Log file: logs/app_20260504_075709.log
2026-05-04 07:57:09,467 - main - INFO - Log level: INFO
2026-05-04 07:57:09,467 - main - INFO - Timestamp: 20260504_075709
2026-05-04 07:57:09,483 - main - INFO - Included router: routers.admin_dashboard.router
2026-05-04 07:57:09,497 - main - INFO - Included router: routers.admin_users.router
2026-05-04 07:57:09,513 - main - INFO - Included router: routers.agent_availability.router
2026-05-04 07:57:09,675 - main - WARNING - Failed to import module 'routers.ai_ticket_summary': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 07:57:09,675 - main - WARNING - Failed to import module 'routers.aihub': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 07:57:09,692 - main - INFO - Included router: routers.api_hub.router
2026-05-04 07:57:09,697 - main - INFO - Included router: routers.audit_log.router
2026-05-04 07:57:09,701 - main - INFO - Included router: routers.auth.router
2026-05-04 07:57:09,737 - main - INFO - Included router: routers.bizmail_admin.router
2026-05-04 07:57:09,766 - main - INFO - Included router: routers.bizmail_client.router
2026-05-04 07:57:09,768 - main - INFO - Included router: routers.bizmail_public.router
2026-05-04 07:57:09,806 - main - INFO - Included router: routers.cache_settings.router
2026-05-04 07:57:09,823 - main - INFO - Included router: routers.carts.router
2026-05-04 07:57:09,827 - main - INFO - Included router: routers.catalog_admin.router
2026-05-04 07:57:09,846 - main - INFO - Included router: routers.chat_analytics_daily.router
2026-05-04 07:57:09,864 - main - INFO - Included router: routers.chat_attachments.router
2026-05-04 07:57:09,889 - main - INFO - Included router: routers.chat_branding.router
2026-05-04 07:57:09,894 - main - INFO - Included router: routers.chat_branding_api.router
2026-05-04 07:57:09,915 - main - INFO - Included router: routers.chat_conversations.router
2026-05-04 07:57:09,932 - main - INFO - Included router: routers.chat_messages.router
2026-05-04 07:57:09,949 - main - INFO - Included router: routers.chat_routing_rules.router
2026-05-04 07:57:09,957 - main - INFO - Included router: routers.contact.router
2026-05-04 07:57:09,973 - main - INFO - Included router: routers.contact_inquiries.router
2026-05-04 07:57:10,081 - main - INFO - Included router: routers.cpanel_admin.router
2026-05-04 07:57:10,107 - main - INFO - Included router: routers.cpanel_client.router
2026-05-04 07:57:10,108 - main - INFO - Included router: routers.cpanel_public.router
2026-05-04 07:57:10,126 - main - INFO - Included router: routers.dhl_admin.router
2026-05-04 07:57:10,129 - main - INFO - Included router: routers.dhl_public.router
2026-05-04 07:57:10,140 - main - INFO - Included router: routers.ecom_checkout.router
2026-05-04 07:57:10,140 - main - INFO - Included router: routers.health.router
2026-05-04 07:57:10,157 - main - INFO - Included router: routers.kb_article_feedback.router
2026-05-04 07:57:10,174 - main - INFO - Included router: routers.kb_articles.router
2026-05-04 07:57:10,181 - main - INFO - Included router: routers.local_auth.router
2026-05-04 07:57:10,194 - main - INFO - Included router: routers.mfa.router
2026-05-04 07:57:10,216 - main - INFO - Included router: routers.module_sync.router
2026-05-04 07:57:10,234 - main - INFO - Included router: routers.notification_preferences.router
2026-05-04 07:57:10,252 - main - INFO - Included router: routers.notifications.router
2026-05-04 07:57:10,254 - main - INFO - Included router: routers.notifications_extras.router
2026-05-04 07:57:10,345 - main - INFO - Included router: routers.oauth.router
2026-05-04 07:57:10,364 - main - INFO - Included router: routers.order_items.router
2026-05-04 07:57:10,385 - main - INFO - Included router: routers.orders.router
2026-05-04 07:57:10,388 - main - INFO - Included router: routers.password_reset.router
2026-05-04 07:57:10,394 - main - INFO - Included router: routers.paypal_checkout.router
2026-05-04 07:57:10,414 - main - INFO - Included router: routers.plans.router
2026-05-04 07:57:10,432 - main - INFO - Included router: routers.presales_messages.router
2026-05-04 07:57:10,449 - main - INFO - Included router: routers.product_categories.router
2026-05-04 07:57:10,467 - main - INFO - Included router: routers.product_reviews.router
2026-05-04 07:57:10,488 - main - INFO - Included router: routers.products.router
2026-05-04 07:57:10,497 - main - INFO - Included router: routers.role_management.router
2026-05-04 07:57:10,514 - main - INFO - Included router: routers.service_testimonials.router
2026-05-04 07:57:10,523 - main - INFO - Included router: routers.settings.router
2026-05-04 07:57:10,537 - main - INFO - Included router: routers.site_settings.router
2026-05-04 07:57:10,549 - main - INFO - Included router: routers.smtp_settings.router
2026-05-04 07:57:10,563 - main - INFO - Included router: routers.storage.router
2026-05-04 07:57:10,566 - main - WARNING - Failed to import module 'routers.support_chat': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 07:57:10,581 - main - INFO - Included router: routers.support_departments.router
2026-05-04 07:57:10,598 - main - INFO - Included router: routers.support_seats.router
2026-05-04 07:57:10,601 - main - INFO - Included router: routers.ticket_notifications_sync.router
2026-05-04 07:57:10,616 - main - INFO - Included router: routers.ticket_summaries.router
2026-05-04 07:57:10,709 - main - INFO - Included router: routers.ticket_sync_states.router
2026-05-04 07:57:10,771 - main - INFO - Included router: routers.uptimerobot_admin.router
2026-05-04 07:57:10,797 - main - INFO - Included router: routers.uptimerobot_client.router
2026-05-04 07:57:10,799 - main - INFO - Included router: routers.uptimerobot_mcp.router
2026-05-04 07:57:10,802 - main - INFO - Included router: routers.user.router
2026-05-04 07:57:10,819 - main - INFO - Included router: routers.user_profiles.router
2026-05-04 07:57:10,833 - main - INFO - Included router: routers.user_roles.router
2026-05-04 07:57:10,868 - main - INFO - Included router: routers.visitor_monitor.router
2026-05-04 07:57:10,871 - main - INFO - Included router: routers.visitor_tracking.router
2026-05-04 07:57:10,920 - main - INFO - Included router: routers.whatsapp_admin.router
2026-05-04 07:57:10,920 - main - WARNING - Failed to import module 'routers.whatsapp_ai': unsupported operand type(s) for |: 'type' and 'types.GenericAlias'
2026-05-04 07:57:10,923 - main - WARNING - Failed to import module 'routers.whatsapp_analytics': Unable to evaluate type annotation 'str | None'. If you are making use of the new typing syntax (unions using `|` since Python 3.10 or builtins subscripting since Python 3.9), you should either replace the use of new syntax with the existing `typing` constructs or install the `eval_type_backport` package.
2026-05-04 07:57:10,952 - main - INFO - Included router: routers.whatsapp_automation.router
2026-05-04 07:57:10,961 - main - INFO - Included router: routers.whatsapp_client.router
2026-05-04 07:57:10,962 - main - INFO - Included router: routers.whatsapp_client_ws.router
2026-05-04 07:57:10,972 - main - INFO - Included router: routers.whatsapp_contacts.router
2026-05-04 07:57:10,980 - main - INFO - Included router: routers.whatsapp_devices.router
2026-05-04 07:57:10,987 - main - INFO - Included router: routers.whmcs.router
2026-05-04 07:57:11,012 - main - INFO - Included router: routers.whmcs_admin.router
2026-05-04 07:57:11,121 - main - INFO - Included router: routers.whmcs_extra.router
2026-05-04 07:57:11,122 - main - INFO - === Application startup initiated ===
2026-05-04 07:57:11,122 - services.database - DEBUG - [DB_OP] Starting database initialization
2026-05-04 07:57:11,122 - services.database - INFO - 🔧 Starting database initialization...
2026-05-04 07:57:11,122 - core.database - INFO - Starting database initialization...
2026-05-04 07:57:11,122 - core.database - INFO - Normalizing database URL for async compatibility...
2026-05-04 07:57:11,122 - core.database - INFO - Creating async database engine...
2026-05-04 07:57:11,122 - core.database - INFO - Using QueuePool with connection pooling for non-Lambda environment
2026-05-04 07:57:11,128 - core.database - ERROR - Failed to initialize database: No module named 'aiomysql'
Traceback (most recent call last):
  File "/home/devdoiteasy/public_html/app/backend/core/database.py", line 200, in init_db
    self.engine = create_async_engine(database_url, **engine_kwargs)
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/ext/asyncio/engine.py", line 120, in create_async_engine
    sync_engine = _create_engine(url, **kw)
  File "<string>", line 2, in create_engine
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
    return fn(*args, **kwargs)  # type: ignore[no-any-return]
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/engine/create.py", line 617, in create_engine
    dbapi = dbapi_meth(**dbapi_args)
  File "/home/devdoiteasy/public_html/app/backend/venv/lib64/python3.9/site-packages/sqlalchemy/dialects/mysql/aiomysql.py", line 205, in import_dbapi
    __import__("aiomysql"), __import__("pymysql")
ModuleNotFoundError: No module named 'aiomysql'
2026-05-04 07:57:11,128 - services.database - ERROR - Failed to initialize database: No module named 'aiomysql'
