Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxDB2 not receiving any data from speedtest-tracker docker #492

Closed
PedroBuffon opened this issue Mar 15, 2023 · 4 comments
Closed

influxDB2 not receiving any data from speedtest-tracker docker #492

PedroBuffon opened this issue Mar 15, 2023 · 4 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@PedroBuffon
Copy link

PedroBuffon commented Mar 15, 2023

i have the speedtest-tracker docker with network_mode: bridge, so as the infludb and grafana.

influxdb and grafana can talk to each other, but the speedtest-tracker docker can't send any data to influxDB, i tried searching a fix on the issues page but did not found any.

i also use cloudflare tunnel to expose the speedtest-tracker and influxdb but the IPs i use on the internal config are from the local network

can anyone help?

This is my compose config for speedtest-tracker:

services:
speedtest-tracker:
image: ghcr.io/alexjustesen/speedtest-tracker:latest
container_name: speedtest-tracker
ports:
- 8765:443
environment:
- PUID=1000
- PGID=1000
- DB_CONNECTION=pgsql
- DB_HOST=10.0.0.2
- DB_PORT=5432
- DB_DATABASE=speedtest
- DB_USERNAME=speedtest
- DB_PASSWORD=speedtest
volumes:
- /docker/speedtest-tracker/data:/config
restart: unless-stopped
network_mode: bridge

And my influxDB:

services:
influxdb:
image: influxdb:latest
container_name: influxdb
restart: always
ports:
- 8086:8086
volumes:
- /docker/InfluxDB/influxdb-data:/var/lib/influxdb2
- /docker/InfluxDB/influxdb2-data:/etc/influxdb2
network_mode: bridge

@PedroBuffon
Copy link
Author

PedroBuffon commented Mar 15, 2023

Update:
I went to my pgAdmin4 to see if there was some log about the influxDB and in the failed_jobs there were a lot of results.

On the exeption column there is a message:

ErrorException: Undefined array key "packetLoss" in /var/www/html/app/Models/Result.php:93
Stack trace:
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/app/Models/Result.php(93): Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()
#2 /var/www/html/app/Jobs/SendDataToInfluxDbV2.php(64): App\Models\Result->formatForInfluxDB2()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Jobs\SendDataToInfluxDbV2->handle()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(661): Illuminate\Container\BoundMethod::call()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\Bus\Dispatcher->dispatchNow()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue{closure}()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\Pipeline\Pipeline->then()
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware()
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call()
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(425): Illuminate\Queue\Jobs\Job->fire()
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(375): Illuminate\Queue\Worker->process()
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(173): Illuminate\Queue\Worker->runJob()
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(147): Illuminate\Queue\Worker->daemon()
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(130): Illuminate\Queue\Console\WorkCommand->runWorker()
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Queue\Console\WorkCommand->handle()
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(661): Illuminate\Container\BoundMethod::call()
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call()
#29 /var/www/html/vendor/symfony/console/Command/Command.php(312): Illuminate\Console\Command->execute()
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(153): Symfony\Component\Console\Command\Command->run()
#31 /var/www/html/vendor/symfony/console/Application.php(1022): Illuminate\Console\Command->run()
#32 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\Component\Console\Application->doRunCommand()
#33 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\Component\Console\Application->doRun()
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\Component\Console\Application->run()
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\Console\Application->run()
#36 /var/www/html/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#37 {main}

On the payload column:

{
"uuid": "52c12a83-c929-4eb1-b17d-7554c2f03186",
"displayName": "App\Jobs\SendDataToInfluxDbV2",
"job": "Illuminate\Queue\CallQueuedHandler@call",
"maxTries": null,
"maxExceptions": null,
"failOnTimeout": false,
"backoff": null,
"timeout": null,
"retryUntil": null,
"data": {
"commandName": "App\Jobs\SendDataToInfluxDbV2",
"command": "O:29:"App\Jobs\SendDataToInfluxDbV2":2:{s:6:"result";O:45:"Illuminate\Contracts\Database\ModelIdentifier":5:{s:5:"class";s:17:"App\Models\Result";s:2:"id";i:481;s:9:"relations";a:0:{}s:10:"connection";s:5:"pgsql";s:15:"collectionClass";N;}s:8:"settings";O:29:"App\Settings\InfluxDbSettings":6:{s:10:"v2_enabled";b:1;s:6:"v2_url";s:20:"http://10.0.0.2:8086\";s:6:\"v2_org\";s:11:\"BuffonTech\";s:9:\"v2_bucket\";s:17:\"speedtest-tracker\";s:8:\"v2_token\";s:88:\"uU-Tp-v3LxtlCHC1cU74GYTkccdn8Nuv3qLumnvfSRJIqQWMRUT6xmB5Sxd2fAF3nuCwdIeetjO0pqE5HtvkMw==\";s:13:\"v2_verify_ssl\";b:0;}}"
}
}

don't know if it will help.

@alexjustesen alexjustesen added the 🐛 bug Something isn't working label Mar 15, 2023
@alexjustesen alexjustesen self-assigned this Mar 15, 2023
@alexjustesen
Copy link
Owner

fixed in #486

@PedroBuffon
Copy link
Author

Sadly, i tried the fixes discussed on #486 but it didn't work, how can i fix it?

@alexjustesen
Copy link
Owner

Sadly, i tried the fixes discussed on #486 but it didn't work, how can i fix it?

Not released yet 😉, coming in v0.11.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants