You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im make some service to manage own mikrotik to make VPN tunnels from web-interface via Laravel, and everything was ok while i make it on my own PC, but now im relase it in production server, and have many issues with "Stream timed out", sometimes everything work ok, sometimes i catch this error:
# php testcase.php
PHP Fatal error: Uncaught RouterOS\Exceptions\StreamException: Stream timed out in /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/Streams/ResourceStream.php:55
Stack trace:
#0 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/APILengthCoDec.php(115): RouterOS\Streams\ResourceStream->read()
#1 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/APIConnector.php(53): RouterOS\APILengthCoDec::decodeLength()
#2 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/Client.php(262): RouterOS\APIConnector->readWord()
#3 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/Client.php(317): RouterOS\Client->readRAW()
#4 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/ResponseIterator.php(74): RouterOS\Client->read()
#5 /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/Client.php(339): RouterOS\ResponseIterator->__construct()
#6 /var/www/html/nvs_mgmt_core/mikrotikapi_test/testcase.php(24): RouterOS\Client->readAsIterator()
#7 {main}
thrown in /var/www/html/nvs_mgmt_core/mikrotikapi_test/vendor/evilfreelancer/routeros-api-php/src/Streams/ResourceStream.php on line 55
64 bytes from <mikrotik_ip>: icmp_seq=1 ttl=56 time=29.7 ms
64 bytes from <mikrotik_ip>: icmp_seq=2 ttl=56 time=32.9 ms
64 bytes from <mikrotik_ip>: icmp_seq=3 ttl=56 time=34.0 ms
64 bytes from <mikrotik_ip>: icmp_seq=4 ttl=56 time=34.9 ms
Also, when i get this issue, i see in log user logged in via api, but no message about logged out.
When everything works normally, log also have message user logged out.
Maybe someone can help?
The text was updated successfully, but these errors were encountered:
After start same code on anothe machine i geted error from composer about ext-sockets, activate it on php.ini and code work fine, i do the same with server and get 8 times of 10 error: PHP Warning: Module "sockets" is already loaded in Unknown on line 0.
At windows machine with xampp it works perfect, in ubuntu 24.02 problems.
Update: problem with php version, im installed php8.1 to server and now everything works great, with 8.3 it's not working properly. With 8.2 works too!
Hello all.
Im make some service to manage own mikrotik to make VPN tunnels from web-interface via Laravel, and everything was ok while i make it on my own PC, but now im relase it in production server, and have many issues with "Stream timed out", sometimes everything work ok, sometimes i catch this error:
Code:
I have no problem with channel to mikrotik:
Also, when i get this issue, i see in log user logged in via api, but no message about logged out.
When everything works normally, log also have message user logged out.
Maybe someone can help?
The text was updated successfully, but these errors were encountered: