Since upgrade to 4.5, VitXi want to create database

Since my upgrade to VitalPBX 4.5, if I attempt to access VitXi, it wants a login to create a database. The root login does not work. I have reinstalled VitXi but no change.

1 Like

Hello,

Could you please send a screenshot (ensuring that any sensitive information is hidden) of the latest log file located at: /usr/share/vitxi/backend/storage/logs/

Best regards,

[2024-12-16 15:24:58] production.ERROR: The command "websockets:restart" does not exist. {"exception":"[object] (Symfony\\Component\\Console\\Exception\\CommandNotFoundException(code: 0): The command \"websockets:restart\" does not exist. at /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Console/Application.php:159)
[stacktrace]
#0 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(400): Illuminate\\Console\\Application->call()
#1 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\\Foundation\\Console\\Kernel->call()
#2 /usr/share/vitxi/backend/app/Http/Controllers/DatabaseSettingsController.php(73): Illuminate\\Support\\Facades\\Facade::__callStatic()
#3 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\DatabaseSettingsController->setup()
#4 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#5 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#6 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#7 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#8 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#9 /usr/share/vitxi/backend/app/Http/Middleware/CheckWizard.php(0): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#10 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckWizard->handle()
#11 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#12 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#13 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(159): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#14 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(90): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#15 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#16 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#17 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then()
#18 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack()
#19 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute()
#20 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute()
#21 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#22 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#23 /usr/share/vitxi/backend/app/Http/Middleware/SetLocale.php(0): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\SetLocale->handle()
#25 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#27 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#28 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#29 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#30 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#31 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#33 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#34 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#35 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#36 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#37 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#38 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#39 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#40 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle()
#41 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#42 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#43 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#44 /usr/share/vitxi/backend/public/index.php(0): Illuminate\\Foundation\\Http\\Kernel->handle()
#45 {main}
"}

1 Like

Please execute the following commands:

sed -i "s/Artisan::call('websockets:restart')/Artisan::call('reverb:restart')/g" /usr/share/vitxi/backend/app/Http/Controllers/DatabaseSettingsController.php

sed -i "s/Artisan::call('websockets:restart')/Artisan::call('reverb:restart')/g" /usr/share/vitxi/backend/app/Http/Controllers/PbxSettingsController.php

Then, please reload VitXi and try again

UpdateWebsocketsSslConfig.php is not there:

root@vitalpbx:/usr/share/vitxi/backend/app/Http/Controllers# ls
AdminUserController.php     ChangePasswordController.php  ConversationsController.php     PasswordResetRequestController.php  RolesController.php      UserController.php
AgentProfileController.php  CheckAppStatus.php            CustomAppWebSocketHandler.php   PbxApiController.php                ServePrivateStorage.php  UserSettingsController.php
AppController.php           ContactPhonesController.php   DatabaseSettingsController.php  PbxSettingsController.php           SocialNetworks.php       UserSetupController.php
Auth                        ContactsController.php        GroupsController.php            PermissionsController.php           StatusController.php
BrandingController.php      Controller.php                MailSettingsController.php      PhoneBookController.php             TimezoneController.php
root@vitalpbx:/usr/share/vitxi/backend/app/Http/Controllers#

Oh, sorry! I’ve already updated the response. Please run the two commands mentioned in the updated response.

Same response. It wants to create the database. Both root and admin with passwords do not work. I get:

This is still at the top of the log:

[2024-12-16 15:59:10] production.ERROR: The command "reverb:restart" does not exist. {"exception":"[object] (Symfony\\Component\\Console\\Exception\\CommandNotFoundException(code: 0): The command \"reverb:restart\" does not exist. at /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Console/Application.php:159)
[stacktrace]

Additional info:
This was a clean Debian-12 install of VitalPBX-4.5 with the 4.2 system backup restored to it.

When I did the 4.5.3 upgrade, it bombed and I logged in to Linux and executed the manual apt update && apt upgrade. It then indicated partial installation issue and I followed the Linux suggestions which completed the upgrade.

This is a starter license. I should still be able to have a VitXi login but it looks like something is missing.

I completely uninstalled VitXI and then reinstalled but still get the prompt to install a database.

Please go to Addons > Check Online again. Then, reinstall VitXi

Did you change something? I did just that 5 minutes ago.

yes! please click on check online and reinstall

OK. I did just did it again but VitXi still wants a database password to install the database.

OK. It accepted the root password and is prompting me to create a user. Stand by.

Yes, it prompts you to complete the wizard, possibly because a file indicating that the wizard had been completed was lost during the migration.

Were you able to complete the wizard?

Yes. It did create the database and let me log in. I think that fixed it. Thanks!

1 Like

Yes I was. I’m getting errors trying to login the VitXi with into the PBX but get SSL errors . I will investigate further. I’ll consider this thread solved.

1 Like

Perfect! Remember that with the command vitxi user:reset-pwd {username}, you can reset user passwords. Also, make sure that the certificate is correct and properly configured in the Mini HTTP Server under Default WebRTC Settings.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.