Code Monkey home page Code Monkey logo

Comments (12)

sajjadintel avatar sajjadintel commented on September 15, 2024 1

Thanks I will work on it

from gps-tracker.

sajjadintel avatar sajjadintel commented on September 15, 2024 1

Yeah I think the problem is resolved.
Thanks.

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Hi, I've just been improving the server management tonight.

Once the server is created, you should start the server from servers status panel, after that, the cronjob will check the server status to starting it automatically in case of crash, you don't have to launch it manually from the console.

The --reset option is used to stop the server in case it is running and start a new one.

Upgrade your installation with php8.2 ./composer deploy.

The code you have pasted looks like something in hexadecimal, it is strange, I would have to check it since in the documentation I think it does not show about that.

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Coban devices use two communication protocols they call it (in,out) and the custom command you send does not respond because the default code is set to IN, you must send them the command by sms to the gps: protocol123456 18 out. Then try sending the command again and it should work. Anyway, you could reconfigure my server to test the responses.

from gps-tracker.

sajjadintel avatar sajjadintel commented on September 15, 2024

The server is stopped again:

[2024-01-02T12:23:19+00:00] production.ERROR: No arguments expected for "server:start:port" command, got "{--port=6001}". {"url":"http://localhost","method":"GET","exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): No arguments expected for \"server:start:port\" command, got \"{--port=6001}\". at /var/www/html/GPS-Tracker/vendor/symfony/console/Input/ArgvInput.php:196)

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Do you have the cron configured? Are you executing the command from console?

from gps-tracker.

sajjadintel avatar sajjadintel commented on September 15, 2024

I have configured cron like this

* * * * * cd /var/www/html/GPS-Tracker && install -d storage/logs/artisan/$(date +"\%Y/\%m/\%d") && /usr/bin/php artisan schedule:run >> storage/logs/artisan/$(date +"\%Y/\%m/\%d")/schedule-run.log 2>&1

from gps-tracker.

sajjadintel avatar sajjadintel commented on September 15, 2024

Sorry the previous error was wrong. I deleted the logs and and rebooted the server.
I get this error:

[2024-01-02T16:29:33+00:00] production.ERROR: Connection refused {"url":"http://localhost","method":"GET","exception":"[object] (RedisException(code: 0): Connection refused at /var/www/html/GPS-Tracker/vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:161)

while redis is running

redis-cli ping
PONG
└─801 "/usr/bin/redis-server 127.0.0.1:6379"

I tried manually restart in panel but I got this error:

[2024-01-02T16:42:40+00:00] production.ERROR: App\Domains\Server\Exception\PortBusy: The server could not be started because the 6001 is not free in /var/www/html/GPS-Tracker/app/Domains/Server/Action/StartPort.php:114

seems panel wants to run with www-data user but cron runs as root

[2024-01-02T16:42:40+00:00] production.ERROR: App\Domains\Server\Exception\PortBusy: The server could not be started because the 6001 is not free in /var/www/html/GPS-Tracker/app/Domains/Server/Action/StartPort.php:114

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Do you have configured redis in .env? Clear cache after config changes php artisan optimize.

from gps-tracker.

sajjadintel avatar sajjadintel commented on September 15, 2024

I belive yes

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
redis-cli -h 127.0.0.1 -p 6379 ping
PONG

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Cron must run as webserver user (www-data).

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Can this issue be closed?

from gps-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.