Giter VIP home page Giter VIP logo

stephanediondev / elasticsearch-admin Goto Github PK

View Code? Open in Web Editor NEW
89.0 5.0 10.0 254.71 MB

Web administration for Elasticsearch (2.x to 8.x): cluster, nodes, indices, shards, index templates, repositories, snapshots ...

Home Page: https://stephanediondev.github.io/elasticsearch-admin/

License: MIT License

Shell 0.01% JavaScript 1.22% PHP 64.85% Dockerfile 0.18% SCSS 0.04% Twig 33.70%
symfony elasticsearch admin-ui bootstrap cluster elasticsearch-gui nodes elasticsearch6 elasticsearch7 administration-interface

elasticsearch-admin's People

Contributors

dependabot[bot] avatar olegkunitsyn avatar stephanediondev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elasticsearch-admin's Issues

Internal server error

Hello,

Thank you for this great tool :)

I get internal error with somes pages like when i try to sort index by creation date.
I can display first page of index list but for exemple page 3 does not work.
It looks like i have some trouble with at least one index>

App\Twig\AppExtension::humanFilesize(): Argument #1 ($size) must be of type int, null given, called in /var/www/html/var/cache/prod/twig/e7/e7299cadd84416a1bc00cf714c7b3304fc93b41076cb96819eb436e3e1ccc3a6.php on line 384

File: /var/www/html/src/Twig/AppExtension.php
Line: 43
Route: indices

Installation type: docker
PHP version: 8.0.17
Symfony version: 6.0.7
Elasticsearch version: 7.12.1

Browser: Firefox 99.0
OS: Mac 10.15

Any idea how can i identify it ?

[BUG] When trying to select value of index

Discussed in #72

Originally posted by aaronchishui October 11, 2023
I have a problem. Why trying to show source value of docs in index: "transaction". The error is: Failed to execute 'querySelector' on 'Element': '#modalMBS_8070.0_20231011' is not a valid selector.
image
The others indexes still working.
Help me please.

Uncaught ReferenceError: $ is not defined

jQuery not available ?

  • templates/Modules/app_index_database_import/app_index_database_import_index.html.twig
  • templates/Modules/subscription/subscription_index.html.twig
  • templates/Modules/enrich/enrich_create.html.twig

Error after uninstall

Internal Server Error
$user must be an instanceof UserInterface, an object implementing a __toString method, or a primitive string.

File: /Users/sdion/Sites/projects/elasticsearch-admin/elasticsearch-admin/vendor/symfony/security-core/Authentication/Token/AbstractToken.php
Line: 76
Route: register

Exceptasticsearch_credentials_error

I get credentials_error see the information below
elasticsearch-admin | {"message":"Exception thrown when handling an exception (Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException: errw/html/src/Controller/AbstractAppController.php line 103)","context":{"exception":{"class":"Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpExceials_error","code":0,"file":"/var/www/html/src/Controller/AbstractAppController.php:103"}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"20 elasticsearch-admin | {"message":"Uncaught Exception: error503.elasticsearch_credentials_error","context":{"exception":{"class":"Symfony\\Component\\HttpKernemessage":"error503.elasticsearch_credentials_error","code":0,"file":"/var/www/html/src/Controller/AbstractAppController.php:103","previous":{"class":"App\\Exceptasticsearch_credentials_error","code":0,"file":"/var/www/html/src/Manager/CallManager.php:168"}}},"level":500,"level_name":"CRITICAL","channel":"php","datetime": elasticsearch-admin | {"message":"Uncaught PHP Exception Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException: \"error503.elasticsearch_ler/AbstractAppController.php line 103","context":{"exception":{"class":"Symfony\\Component\\HttpKernel\\Exception\\ServiceUnavailableHttpException","message":"e0,"file":"/var/www/html/src/Controller/AbstractAppController.php:103","previous":{"class":"App\\Exception\\ConnectionException","message":"error503.elasticsearchml/src/Manager/CallManager.php:168"}}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2022-07-01T09:28:35.822700+00:00","extra":{}}

my docker-compose.yml configuration is as follows

services:
  elasticsearch-admin:
    container_name: elasticsearch-admin
    image: stephanediondev/elasticsearch-admin
    environment:
      ELASTICSEARCH_URL: "https://ELASTICSEARCH_URL"
      ELASTICSEARCH_USERNAME: "ELASTICSEARCH_USERNAME"
      ELASTICSEARCH_PASSWORD: "ELASTICSEARCH_PASSWORD"
      SECRET_REGISTER: "test"
      SSL_VERIFY_PEER: "false"
      SSL_VERIFY_HOST: "false"
    #volumes:
    #- ./cert/key.pem:/etc/nginx/key.pem
    #- ./cert/rootca-cert.pem:/etc/nginx/rootca-cert.pem
    ports:
    - 80:8080
    - 443:4443
version: '3'

how do i fix the error?

Nodes view not available when node cpu not supported

Hello,

I got at internal error when i try to display nodes.
I seems to be linked to my new nodes, which reports -1 as a CPU percent value in nodes API

Error logs:
NOTICE: PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php on line 92

NOTICE: PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1

2022/11/22 12:39:38 [error] 9#9: *4 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php on line 92PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1" while reading response header from upstream, client: 10.2.131.143, server: _, request: "GET /admin/nodes HTTP/1.1"

_cat/nodes API result:
10.152.240.42 58 98 -1 0.22 0.18 0.32 cdfhlrstw - esc1-cold-6q32

nodes API result for nodes/stats/os:
"os": { "timestamp": 1669121185576, "cpu": { "percent": -1, "load_average": { "1m": 0.35, "5m": 0.22, "15m": 0.3 } }, "mem": { "total_in_bytes": 16786419712, "free_in_bytes": 264089600, "used_in_bytes": 16522330112, "free_percent": 2, "used_percent": 98 },

Thanks a lot !

Internal Server Error for subscriptions

Hellooo, first of all what a nice tool! Really awesome and helpful, also not deprecated as many others... important! ๐Ÿ˜‚. I'm having some issues that I would love to solve for production.
I'm using last version available (9 Sept. 2023) from Docker, and using DockerHub for testing.

When trying to access the subscriptions tab:

Internal Server Error
The controller for URI "/admin/subscriptions" is not callable: Environment variable not found: "MAILER_DSN".

File: /var/www/html/vendor/symfony/http-kernel/Controller/ControllerResolver.php
Line: 76
Route: app_subscriptions
Installation type: docker
PHP version: 8.2.10
Symfony version: 6.3.4
Elasticsearch version: 8.10.0
Browser: Chrome 116.0
OS: Windows 10

This is the same error but from the logs:
{"message":"Uncaught PHP Exception InvalidArgumentException: \"The controller for URI \"/admin/subscriptions\" is not callable: Environment variable not found: \"MAILER_DSN\".\" at /var/www/html/vendor/symfony/http-kernel/Controller/ControllerResolver.php line 76","context":{"exception":{"class":"InvalidArgumentException","message":"The controller for URI \"/admin/subscriptions\" is not callable: Environment variable not found: \"MAILER_DSN\".","code":0,"file":"/var/www/html/vendor/symfony/http-kernel/Controller/ControllerResolver.php:76","previous":{"class":"Symfony\\Component\\DependencyInjection\\Exception\\EnvNotFoundException","message":"Environment variable not found: \"MAILER_DSN\".","code":0,"file":"/var/www/html/vendor/symfony/dependency-injection/EnvVarProcessor.php:193"}}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2023-09-20T12:54:57.472467+00:00","extra":{}}

Also, when accessing to Notifications tab(/admin/app-notifications) doesn't show nothing. Maybe related to the previous error.
There's some other tabs that throw an Internal Server Error such as Snapshots tab (/admin/snapshots), but in this case, personally I don't really need it.

Is this errors from my testing environment or is an application related error? Thanks for help, appreciate it

Node filter in Shards page not filled

Hi, first of all thank you for this product, it looks very promising.

I'm facing as issue with Shard page. The "Node" filter listbox is not filled with the cluster nodes, so I can't filter by this criteria.
Further, if I click one of the links from Shards -> Stats -> Shards by node, it doesn't work and shows the error: The selected choice is invalid.

image

Can't see any significant error from logs. At the moment I'm running elasticsearch-admin on a local container.

Docker image is failing (missing 'pkg_resources')

Attempting to start a container of the docker image stephanediondev/elasticsearch-admin fails with the error below.

$ docker pull stephanediondev/elasticsearch-admin
$ docker run -it stephanediondev/elasticsearch-admin sh
/var/www/html $ /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
Traceback (most recent call last):
  File "/usr/bin/supervisord", line 33, in <module>
    sys.exit(load_entry_point('supervisor==4.2.2', 'console_scripts', 'supervisord')())
  File "/usr/bin/supervisord", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/supervisor/supervisord.py", line 41, in <module>
    from supervisor.options import ServerOptions
  File "/usr/lib/python3.8/site-packages/supervisor/options.py", line 13, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

I managed to get it working by cloning the repo and replacing this line on the Dockerfile:

- rm /etc/nginx/conf.d/default.conf
+ rm -f /etc/nginx/conf.d/default.conf

Otherwise, it would fail to build:

#5 130.4 rm: can't remove '/etc/nginx/conf.d/default.conf': No such file or directory

I believe the docker image needs to be updated in dockerhub.

Support X-Forwarded-Proto header

Hi, is there a way to support X-Forwarded-Proto header when generating response HTML that contains form element? Specifically I mean to use matching scheme in action attribute.
We have this app running behind load balancer/proxy that is doing SSL termination and we are facing problems that even though web site is loaded over https action attribute on form elements has http:// scheme.

cluster.indices.close.enable

Hi,

The audit report :
Closing an index is not allowed: Fail
The setting cluster.indices.close.enable should be set to false.

But I think it should be set to true ? (that is the default value) to allow closing indexes ?

Regards

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.