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

centos部署后无法访问快照及监控界面无数据 #5

Closed
tangkehu opened this issue Mar 6, 2019 · 7 comments
Closed

centos部署后无法访问快照及监控界面无数据 #5

tangkehu opened this issue Mar 6, 2019 · 7 comments

Comments

@tangkehu
Copy link

tangkehu commented Mar 6, 2019

使用centos部署,可登录,可添加项目,可添加监控,后台监控程序运行正常。
但是
界面上无监控数据,几个监控列表的请求、匹配、错误均显示为从未。
无法查看快照,能够点开快照列表。但是快照列表里面具体的内容确无法查看。点击则包file not found错误。
针对以上部署情况,是不是哪里没弄对?

@shellus
Copy link
Owner

shellus commented Mar 8, 2019

file not found 是因为nginx配置伪静态没做好,给出你的nginx配置我看一下。

监控显示“从未”,你可能没有运行队列,你执行一下supervisorctl status 把执行结果列出来

@tangkehu
Copy link
Author

tangkehu commented Mar 8, 2019

nginx的配置如下:

server {

        listen 8010;

        root /home/SiteMonitor/public;
        index index.html index.php;

        server_name _;

        location / {
                try_files $uri $uri/ /index.php?$args;
        }

        location ~ \.php {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                include fastcgi.conf;
        }

    }

队列我是直接运行的。没有使用supervisorctl。
运行结果一直输入以下内容,未曾停止:

[2019-03-08 12:23:11] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:17] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:23] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:28] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:34] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:39] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:45] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:51] Processing: App\Jobs\MonitorJob
[2019-03-08 12:23:56] Processing: App\Jobs\MonitorJob

烦请指正,谢谢!

@shellus
Copy link
Owner

shellus commented Mar 8, 2019 via email

@tangkehu
Copy link
Author

tangkehu commented Mar 8, 2019

monitor.log全是如下内容:

[2019-03-08 15:48:54] monitor.DEBUG: 队列:监控ID[1],标题[M-03823] [] []
[2019-03-08 15:48:55] monitor.DEBUG: 执行HTTP请求,监控ID[1] [] []
[2019-03-08 15:49:00] monitor.DEBUG: HTTP请求完成,监控ID[1] [] []
[2019-03-08 15:49:00] monitor.DEBUG: 队列:监控ID[1],标题[M-03823] [] []
[2019-03-08 15:49:00] monitor.DEBUG: 执行HTTP请求,监控ID[1] [] []
[2019-03-08 15:49:06] monitor.DEBUG: HTTP请求完成,监控ID[1] [] []
[2019-03-08 15:49:06] monitor.DEBUG: 队列:监控ID[1],标题[M-03823] [] []
[2019-03-08 15:49:06] monitor.DEBUG: 执行HTTP请求,监控ID[1] [] []

laravel.log 日志重复如下内容:

[2019-03-08 16:13:04] local.ERROR: Call to undefined function App\Service\bcmul() {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to undefined function App\\Service\\bcmul() at /home/SiteMonitor/app/Service/MonitorService.php:219)
[stacktrace]
#0 /home/SiteMonitor/app/Jobs/MonitorJob.php(49): App\\Service\\MonitorService::storeSnapshot(Object(App\\Snapshot), Array)
#1 [internal function]: App\\Jobs\\MonitorJob->handle()
#2 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)
#3 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#4 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#5 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/Container.php(549): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#6 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)
#7 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(114): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\MonitorJob))
#8 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\MonitorJob))
#9 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#10 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(49): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\MonitorJob), false)
#11 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(76): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\RedisJob), Array)
#12 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(320): Illuminate\\Queue\\Jobs\\Job->fire()
#13 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(270): Illuminate\\Queue\\Worker->process('redis', Object(Illuminate\\Queue\\Jobs\\RedisJob), Object(Illuminate\\Queue\\WorkerOptions))
#14 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(114): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\RedisJob), 'redis', Object(Illuminate\\Queue\\WorkerOptions))
#15 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\\Queue\\Worker->daemon('redis', 'monitor', Object(Illuminate\\Queue\\WorkerOptions))
#16 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(85): Illuminate\\Queue\\Console\\WorkCommand->runWorker('redis', 'monitor')
#17 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()
#18 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)
#19 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#20 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#21 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Container/Container.php(549): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#22 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call(Array)
#23 /home/SiteMonitor/vendor/symfony/console/Command/Command.php(252): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#24 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#25 /home/SiteMonitor/vendor/symfony/console/Application.php(936): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#26 /home/SiteMonitor/vendor/symfony/console/Application.php(240): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#27 /home/SiteMonitor/vendor/symfony/console/Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#28 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Console/Application.php(88): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#29 /home/SiteMonitor/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(121): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#30 /home/SiteMonitor/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#31 {main}
"}

@shellus
Copy link
Owner

shellus commented Mar 12, 2019 via email

@shellus
Copy link
Owner

shellus commented Mar 12, 2019 via email

@tangkehu
Copy link
Author

按照你给的方法,我成功部署该系统。谢谢你这几天的热心指导!后续有什么其它问题我还会来请教你。谢谢!

@shellus shellus closed this as completed Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants