Trying to install VitXi and getting 404 error

Hello,

I’m trying to install VitXi.

  • Installed the add-on version 4.1.0-0
  • Opened the internal VitalPBX firewall for 8088 and 8089
  • Add some NAT rule on my front firewall to redirect those ports to the internal VM
  • Opened https://myserverdomainname/VitXi/
  • Got a 404 error

Then I’ve seen that some people ask to check if https://myserverdomainname:8089/ws is reachable what I’ve done and got “Upgrade Required”. So I also tested https://myserverdomainname:8089/httpstatus and got the following :

Beside this, when I go onto https://myserverdomainname/webrtc/ I’m getting some "
The page isn’t redirecting properly" but I guess this has something to do with my reverse proxy Caddy. However, first I’d like to install it properly and I cannot get the wizard at all.

Thanks for your help.

1 Like

Try to get LAN access (after the proxy) and try to run then the setup wizard.
If you have SSH access you can connect via Socks Proxy and that way set it up.

2 Likes

Thanks for your reply!

The socks proxy was a great idea and I’m now getting a 500 error.

Do you know where can I check further logs ?

Thanks a lot!

Can you tell us at which point you got this error?

1 Like

When trying to load the wizard I guess, I was not able to install anything else except the add-on from the add-on store yet.

1 Like

Hello,

It seems that the frontend is not connecting with the backend, or perhaps an unexpected error has occurred.

Please check the most recent log located at /usr/share/vitxi/backend/storage/logs/

If you share screenshots of the log, please ensure that any sensitive information is hidden.

Best regards,

Here we go !

[2024-07-08 14:53:32] production.ERROR: Unable to create lockable file: /usr/share/vitxi/backend/storage/framework/cache/data/95/72/9572fc1b90f8a71ce3499596d20e627ad2d84359. Please ensure you have permission to create files in this location. {"exception":"[object] (Exception(code: 0): Unable to create lockable file: /usr/share/vitxi/backend/storage/framework/cache/data/95/72/9572fc1b90f8a71ce3499596d20e627ad2d84359. Please ensure you have permission to create files in this location. at /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php:73)
[stacktrace]
#0 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php(43): Illuminate\\Filesystem\\LockableFile->createResource()
#1 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php(101): Illuminate\\Filesystem\\LockableFile->__construct()
#2 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(315): Illuminate\\Cache\\FileStore->add()
#3 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Cache/RateLimiter.php(115): Illuminate\\Cache\\Repository->add()
#4 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(123): Illuminate\\Cache\\RateLimiter->hit()
#5 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#6 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#7 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#8 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
#9 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
#10 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
#11 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
#12 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Routing\\Router->dispatch()
#13 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#14 /usr/share/vitxi/backend/app/Http/Middleware/SetLocale.php(0): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#15 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\SetLocale->handle()
#16 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#17 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#18 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#19 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#21 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#22 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#23 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#24 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#25 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#26 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#27 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#28 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#29 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#30 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(62): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#31 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\HandleCors->handle()
#32 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(164): Illuminate\\Pipeline\\Pipeline->then()
#34 /usr/share/vitxi/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(133): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#35 /usr/share/vitxi/backend/public/index.php(0): Illuminate\\Foundation\\Http\\Kernel->handle()
#36 {main}
"}

Thanks again.

1 Like

Please run the following commands:

cd /usr/share/vitxi/

chown www-data:www-data frontend
chown www-data:www-data backend
chown -R www-data:www-data backend
chmod 755 backend
find backend -type f -exec chmod 644 {} \;
find backend -type d -exec chmod 755 {} \;

cd /usr/share/vitxi/backend/
php artisan logs:clear
php artisan websockets:ssl-config
systemctl restart vitxi
systemctl restart vitxi-worker

Then, reload VitXi by clearing the cache (press Ctrl + F5 on Windows or ⌘ + Shift + R on macOS).

1 Like

Much better, thanks! I could install the stuff and now getting this error :

1 Like

Please ensure that port 6001 is enabled in your firewalls and/or any active services.

If you have confirmed that it is enabled in all your firewalls, try running the following commands:

firewall-cmd --permanent --zone=public --add-port=6001/tcp
firewall-cmd --reload

I disabled the firewall as it’s not configurable for IPv6 for now (will have to dig into it…), so nothing is blocked.

root@pbx:/usr/share/vitxi/backend# netstat -ano
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       Timer
tcp        0      0 0.0.0.0:5060            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:5061            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:5038            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:3000            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:8089            0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      off (0.00/0/0)
tcp        0      0 10.10.10.189:56813      [redacted]:5063     ESTABLISHED keepalive (22.45/0/0)
tcp        0      0 10.10.10.189:37191      [redacted]:5063     ESTABLISHED keepalive (22.44/0/0)
tcp        0      0 127.0.0.1:3306          127.0.0.1:41502         ESTABLISHED keepalive (6869.27/0/0)
tcp        0      0 10.10.10.189:52655      [redacted]:5063     ESTABLISHED keepalive (22.44/0/0)
tcp        0      0 10.10.10.189:36751      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp        0      0 10.10.10.189:58533      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp        0      0 10.10.10.189:36119      [redacted]:5063     ESTABLISHED keepalive (22.44/0/0)
tcp        0      0 127.0.0.1:41502         127.0.0.1:3306          ESTABLISHED keepalive (6869.27/0/0)
tcp        0      0 127.0.0.1:5038          127.0.0.1:53206         ESTABLISHED off (0.00/0/0)
tcp        0      0 10.10.10.189:54231      [redacted]:5061        ESTABLISHED keepalive (17.28/0/0)
tcp        0      0 10.10.10.189:22         [redacted]:50535    ESTABLISHED keepalive (5303.04/0/0)
tcp        0      0 10.10.10.189:57145      [redacted]:5063     ESTABLISHED keepalive (25.74/0/0)
tcp        0      0 10.10.10.189:58409      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp        0      0 10.10.10.189:48563      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp        0      0 10.10.10.189:47147      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp        0      0 10.10.10.189:52823      [redacted]:5063     ESTABLISHED keepalive (22.44/0/0)
tcp        0      0 10.10.10.189:22         [redacted]:50381    ESTABLISHED keepalive (4988.42/0/0)
tcp        0      0 10.10.10.189:34023      [redacted]:5063     ESTABLISHED keepalive (22.44/0/0)
tcp        0      0 127.0.0.1:53206         127.0.0.1:5038          ESTABLISHED keepalive (41.44/0/0)
tcp        0    816 10.10.10.189:22         [redacted]:50379    ESTABLISHED on (0.10/0/0)
tcp        0      0 10.10.10.189:43383      [redacted]:5061        ESTABLISHED keepalive (22.42/0/0)
tcp6       0      0 :::5061                 :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::3500                 :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::3501                 :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::80                   :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::53                   :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::22                   :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::25                   :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 ::1:6010                :::*                    LISTEN      off (0.00/0/0)
tcp6       0      0 :::443                  :::*                    LISTEN      off (0.00/0/0)
udp        0      0 0.0.0.0:34727           0.0.0.0:*                           off (0.00/0/0)
udp        0      0 0.0.0.0:53              0.0.0.0:*                           off (0.00/0/0)
udp        0      0 0.0.0.0:68              0.0.0.0:*                           off (0.00/0/0)
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           off (0.00/0/0)
udp        0      0 0.0.0.0:5060            0.0.0.0:*                           off (0.00/0/0)
udp        0      0 0.0.0.0:5062            0.0.0.0:*                           off (0.00/0/0)
udp6       0      0 :::53                   :::*                                off (0.00/0/0)
udp6       0      0 :::52853                :::*                                off (0.00/0/0)

Are you still via Socks Proxy or you are accessing this via Caddy?

1 Like

Still socks, adventure is for later :sweat_smile:

1 Like

After executing the commands I sent you, do you still get the same error message?

I think I found the issue.

It’s related to the self signed certificate applied on wss:// and Firefox.
I had to go onto https://10.10.10.189:6001/ and https://10.10.10.189:8089/ws with Firefox, accept the self-signed certificate and then reload the whole thing.

Now… will try to make it working through Caddy… :sweat_smile:

I also wanted to thank all of you for your kind words and fast replies.

1 Like

Hello,

Perfect! However, I recommend using a FQDN with a valid SSL certificate. This will help you avoid these types of issues.

It will also prevent the constant need to accept warnings about self-signed SSL certificates displayed by browsers.

Best regards,

Yes, however, in this specific case I cannot use Let’s Encrypt as it’s behind a NAT and in front of Caddy and was using the IP address for the tests.

Even the self-signed certificate is quite difficult to manage as Caddy is in front and do not expect to have another cert after it (trying to figure out the redirect loop I currently have).

Anyway, this is still a lab for now and when putting into production, a dedicated IP address will be set.

Thanks gain.

Cheers!

1 Like