Git Product home page Git Product logo

itop-docker's People

Contributors

arnabsinha4u avatar hipska avatar kboenke avatar vbkunin avatar vedernik0v 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  avatar  avatar  avatar  avatar

itop-docker's Issues

[Question] Plans for releasing 2.7.1?

iTop recently (7th of August) released version 2.7.1 of their product which includes some much needed bugfixes. Could you give me an update on when you're planning to release an update to your docker image that includes this version? Thanks!

Itop-Docker

Hi, When I'm doing the installation. The app give me a Error:No connection to the database. I tryed with mysql and without mysql

Plans to support PHP 8.x

WIth active support for 7.4 expired and security support expiring at the end of Nov 2022, are there plans to to support iTop with php 8.x?

How to upgrade?

Hello,
I used vbkunin/itop:2.6.1 to build my system (with command docker run -d -p 8000:80 -v d:\temp\storage\mysql-itop:/var/lib/mysql --name=itop vbkunin/itop:2.6.1)
I would like upgrade it to 2.7.0.
I changed the command to 'docker run -d -p 8000:80 -v d:\temp\storage\mysql-itop:/var/lib/mysql --name=itop vbkunin/itop:2.7.0'.
At setup page I cann't choose 'Upgrade an existing iTop instance',
2020-07-12_094143
how can I do the upgrade job?
Thanks!

db username and password clarification request

I ran the command
sudo docker logs my-itop | grep -C4 "mysql -uadmin -p"
and spent way too much time thinking the username was "uadmin" and the password was "pxxxxxxx"
I figured it out, but it might be nice to notate for future users that they should remove the preceding U and P from the username and password respectively during the db setup.

Keep up the great work, though. Thanks.

Running on Synology

Hi,

I know it's specific but i'll try..

I tried to run your docker image on docker/synology, started the wizard, all good, but at least during installation (40%) i obtain an error 405 (screenshot)
itop

Do you have any idea for solve it ?

How to connect database?

What's the host and password?
Should i need create a new database?
image

I can't connect to mysql in docker ?

sudo docker ps image

Thanks

cpu.shares missing

When attempting to run the image I get

[root@eu2:~/itop]# docker run -d -p 8087:80 -p 3307:3307 vbkunin/itop:2.2.0-beta
e82dbcd210af8a59c1c636f4cc3ef4c66cf23df4eb69605d188c7a3545299643
Error response from daemon: Cannot start container e82dbcd210af8a59c1c636f4cc3ef4c66cf23df4eb69605d188c7a3545299643: [8] System error: open /sys/fs/cgroup/cpu,cpuacct/init.scope/system.slice/docker-e82dbcd210af8a59c1c636f4cc3ef4c66cf23df4eb69605d188c7a3545299643.scope/cpu.shares: no such file or directory

Could that be related to the new systemd 226?

Make itop configuration persistent

Hi,

I have tried running the image in my docker-swarm.

It works well.

But every time I stop and start the container I have to run the initial setup again.

Is there any way to make my confinguration-settings persistent (i.e. in a volume)?

Hoe someone can help.

Uncaught Error: Failed opening required '/var/www/html/env-production/dictionaries/languages.php'

With image: supervisions/itop:latest I am getting below error:

Did we forget to include that file /var/www/html/env-production/dictionaries/languages.php?

What should I do?

`Warning: require_once(/var/www/html/env-production/dictionaries/languages.php): Failed to open stream: No such file or directory in /var/www/html/core/metamodel.class.php on line 6401

Fatal error: Uncaught Error: Failed opening required '/var/www/html/env-production/dictionaries/languages.php' (include_path='/var/www/html/lib/pear/archive_tar:/var/www/html/lib/pear/console_getopt:/var/www/html/lib/pear/pear-core-minimal/src:/var/www/html/lib/pear/pear_exception:.:/usr/local/lib/php') in /var/www/html/core/metamodel.class.php:6401 Stack trace: #0 /var/www/html/core/metamodel.class.php(6313): MetaModel::LoadConfig() #1 /var/www/html/application/startup.inc.php(102): MetaModel::Startup() #2 /var/www/html/pages/UI.php(303): require_once('/var/www/html/a...') #3 {main} Next Error: Undefined constant "Combodo\iTop\Core\EventListener\EVENT_DOWNLOAD_DOCUMENT" in /var/www/html/sources/Core/EventListener/AttributeBlobEventListener.php:37 Stack trace: #0 /var/www/html/sources/Service/Events/EventService.php(48): Combodo\iTop\Core\EventListener\AttributeBlobEventListener->RegisterEventsAndListeners() #1 /var/www/html/core/metamodel.class.php(6331): Combodo\iTop\Service\Events\EventService::InitService() #2 /var/www/html/application/startup.inc.php(102): MetaModel::Startup() #3 /var/www/html/pages/UI.php(303): require_once('/var/www/html/a...') #4 {main} thrown in /var/www/html/sources/Core/EventListener/AttributeBlobEventListener.php on line 37
iTop: An error occurred, check server error log for more information.`

image

Unable to install new ITOP setup under docker

Hi

I have been using your itop docker image since Jun (for local development). Really appreciate the effort you have put into this.

My current local container works fine.

I wanted to start a new clean environment but find that with any new container with either :2.7.0 or :latest the install option is never accessible. In addition the acknowledgement of licenses is not visible.

The only thing in the browser console is

Uncaught SyntaxError: Unexpected identifier ajax.document.php:1
Could not find configuration file: file = /var/www/html/conf/production/config-itop.php

I don't think that is the problem, though.

Will keep investigating, but this problem seems to be repeatable (a colleague is also experiencing the exact same problem), and the process of starting clean (whole new local container) was working a few weeks back.

This suggests a possible change in something your Dockerfile is dependant on, as I see your commits are pre-date this problem occurring, and we have successfully run the image from scratch since those commits.

Thanks

Tim

How to use the image with persistent config

Hello,
I'm trying to use this image in production, unfortunately this seems to not work for me, or I simply can't understand how it works.

For example I ran the image by using this command:

docker run --detach \ --hostname sofk-itop01.home.lan \ --network vlan30 --ip 192.168.0.20 \ --name sofk-itop01.home.lan \ --restart on-failure \ --volume sofk-itop01-mysql:/var/lib/mysql \ --volume sofk-itop01-config:/var/www/html/conf/production \ --volume sofk-itop01-addons:/var/www/html/extensions \ vbkunin/itop

And the issues I got are:

: No such file or directory in /var/www/html/core/metamodel.class.php on line 6377 [Mon Feb 22 11:02:49.348175 2021] [php7:error] [pid 299] [client 192.168.0.21:37322] PHP Fatal error: require_once(): Failed opening required '/var/www/html/env-production/dictionaries/languages.php' (include_path='/var/www/html/lib/pear/archive_tar:/var/www/html/lib/pear/console_getopt:/var/www/html/lib/pear/pear-core-minimal/src:/var/www/html/lib/pear/pear_exception:.:/usr/share/php') in /var/www/html/core/metamodel.class.php on line 6377

Why I use all of these volumes? Because I want to have my config persist during image deployment.
Same applies for database and extensions.

Is there a logic implemented in the image to check if existing config is specified or database is already created?
I start to thing this image is not production ready and cannot be used with persistent storage. Correct me if I wrong.

Connect with MySQL container

Hello!

How can I connect a mysql container to the iTop container? If I run both on the same network, is it possible to use environment variables when running the iTop container?
For example:
-e DB_HOST=...
-e DB_USER=...
-e DB_PASSWORD=...
-e DB_NAME=...

Thank you very much!

Access wrong credentials ('Cron') :'(

Hello,

Please I need help. I followed the exact instructions in the readme file; using my own itop docker name, I executed the command "sudo docker exec my-itop /setup-itop-cron.sh Cron Pa$5w0rD". However, the cron functionality is still not functioning. Upon reviewing the log file, it reveals the error message "Access wrong credentials ('Cron')" many times. It is worth mentioning that I have already created the user beforehand and have also taken corrective actions such as restarting the container. Despite my efforts, I find myself at a loss as to what further steps to take.

I kindly request someone's assistance in resolving this matter. Thank you in advance.

Production config not exists in container

Version: vbkunin/itop:latest-base (and other versions too)

Uncaught ConfigException: Could not find configuration file: file = /var/www/html/conf/production/config-itop.php in /var/www/html/core/config.class.inc.php:1973 Stack trace: #0 /var/www/html/core/config.class.inc.php(1990): Config->CheckFile() #1 /var/www/html/core/config.class.inc.php(1943): Config->Load() #2 /var/www/html/setup/wizardsteps.class.inc.php(2582): Config->__construct() #3 /var/www/html/setup/wizardcontroller.class.inc.php(224): WizStepDone->Display() #4 /var/www/html/setup/wizardcontroller.class.inc.php(156): WizardController->DisplayStep() #5 /var/www/html/setup/wizardcontroller.class.inc.php(294): WizardController->Next() #6 /var/www/html/setup/wizard.php(69): WizardController->Run() #7 {main} thrown in /var/www/html/core/config.class.inc.php on line 1973

failed to activate

hello~
After running docker run,

 sudo docker run -id --name=my-itop -p 8080:80 -v /mnt/var/www/html:/var/www/html -v /mnt/var/lib/mysql :/var/lib/mysql --restart=always vbkunin/itop:latest

I don't see the next configuration information under http://localhost:8080. And only:

index of / Name Last modified Size Description

View html/ no file how to solve?

Please add a LICENSE

Hello,

I would like to ask, if it is possible to add a license, as according to https://choosealicense.com/no-permission/ without specifically mentioning a license it is forbidden to change the code in any way (even for purpose of pull request)

Was thinking to create a PR for new iTop 3.0.0, but without license not gonna risk it.

Thank you,
S.

Installation error _getaddresses

Hello, when I try to install itop, I always get this error and the installation gets stuck at 40%.
am I doing something wrong?

Warning
: mysqli::real_connect(): php_network_getaddresses: getaddrinfo for itop failed: Name or service not known in
/var/www/html/core/cmdbsource.class.inc.php
on line
180

Screenshot 2023-11-13 185850

Create anyone new object result in PHP report error

`[Wed Dec 06 11:06:43.806752 2017] [:error] [pid 398] [client 192.168.1.163:55316

] PHP Warning: Invalid argument supplied for foreach() in /app/core/metamodel.class.php on line 1570, referer: http://cmdb.ops.gaia/pages/UI.php?operation=new&class=WebApplication&c[org_id]=1&c[menu]=ConfigManagementOverview

[Wed Dec 06 11:06:43.806757 2017] [:error] [pid 398] [client 192.168.1.163:55316

] PHP Warning: Invalid argument supplied for foreach() in /app/core/metamodel.class.php on line 1583, referer: http://cmdb.ops.gaia/pages/UI.php?operation=new&class=WebApplication&c[org_id]=1&c[menu]=ConfigManagementOverview
`

Can't upgrade to iTop 2.7.0-beta2 because small PHP values

When trying to upgrade using the new 'Application Upgrade' Menu, itop says:

The upload max size seems too small for update. Please change the PHP configuration.
PHP ini value post_max_size: 8M
PHP ini value upload_max_filesize: 2M

imagen

Perhaps php.ini should be pre-configured to allow bigger file sizes.

Thanks in advance!

Fatal error: Uncaught ConfigException

Docker run your image, then all stages of interactive setup done, after press "Install" button I get this error:

Fatal error: Uncaught ConfigException: Could not find configuration file: file = /var/www/html/conf/production/config-itop.php in /var/www/html/core/config.class.inc.php:1488 Stack trace: #0 /var/www/html/core/config.class.inc.php(1505): Config->CheckFile('configuration', '/var/www/html/c...') #1 /var/www/html/core/config.class.inc.php(1458): Config->Load('/var/www/html/c...') #2 /var/www/html/setup/wizardsteps.class.inc.php(2544): Config->__construct('/var/www/html/c...') #3 /var/www/html/setup/wizardcontroller.class.inc.php(193): WizStepDone->Display(Object(SetupPage)) #4 /var/www/html/setup/wizardcontroller.class.inc.php(132): WizardController->DisplayStep(Object(WizStepDone)) #5 /var/www/html/setup/wizardcontroller.class.inc.php(265): WizardController->Next() #6 /var/www/html/setup/index.php(58): WizardController->Run() #7 {main} thrown in /var/www/html/core/config.class.inc.php on line 1488

latest-base gives Error:No connection to the database

I have MariaDB on my host already with remote connections enabled, so I'm trying to use the latest-base tag for the image without MySQL but I get this message in the setup wizard. No matter what I put in for the server name (localhost, localhost:3306, IP, IP:3306, etc.) the error never resolves.

Is there a way to define the SQL server parameters in the docker-compose or an env file?

Wrong user for cron.php

Hello,
According to https://www.itophub.io/wiki/page?id=2_7_0%3Aadmin%3Acron, you should "not run cron.php using root user. You must launch the command with the same user that is used by the web server running iTop." (www-data)

With root : /var/log/itop-cron.log :
contains Access wrong credentials ('cron')
With www-data, there is no message (cron seems OK but automatic backup is not working : select * from priv_backgroundtask; returns empty set.)

/var/log/cron.log : contains :

Nov  5 09:15:01 5fcb4375b24c CRON[6232]: (www-data) CMD (/usr/bin/php /var/www/html/webservices/cron.php --param_file=/etc/itop-cron.params >> /var/log/itop-cron.log 2>&1)
Nov  5 09:15:01 5fcb4375b24c CRON[6229]: (CRON) info (No MTA installed, discarding output)

The second line (No MTA installed) is only there in the case of www-data user executing (not root) : this probably means the cron is not correctly executed with root.
apt install postfix && mkfifo /var/spool/postfix/public/pickup && service postfix restart fixed this issue (and also the test email issue : no valid recipient)

Note that adding parameter --verbose=1 does not provide more info in logs

Thank you

Docker compose Example?

Hi
I was wondering if you have an example of a docker compose?
I currently have this but not sure if the files how would i add it the bind the volumes?

Thank you


version: '3'
services:
  itop:
    image: vbkunin/itop
    restart: always
    ports:
      - "3003:80"
    environment:
      - DB_HOST=db
      - DB_PORT=3306
      - DB_NAME=itop
      - DB_USER=root
      - DB_PASSWORD=secret
    depends_on:
      - db
  db:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_DATABASE=itop
      - MYSQL_ROOT_PASSWORD=secret
    volumes:
      - db_data:/var/lib/mysql
volumes:
  db_data:

volumes:
  db_data:
    driver: local-persist
    driver_opts:
     mountpoint: /scsi2/itop

504 Gateway time-out

Hi,
I am deploying itop container on openshift 4.3 now.
During the deployment, i got the 504 Gateway time-out gateway error.
I changed max_execution_timeout=600 in php.ini and change Timeout=60 in apache2.conf.
However i cannot resolve the issue.
What kind of solution can I try more?
image

i try to use your docker image in Azure webapp

I created a webapp with your docker image.
I have access to iTop but, when i want to install it, i have a PHP error :

Fatal error: Uncaught ConfigException: Could not find configuration file: file = /var/www/html/conf/production/config-itop.php in /var/www/html/core/config.class.inc.php:1384 Stack trace: #0 /var/www/html/core/config.class.inc.php(1401): Config->CheckFile('configuration', '/var/www/html/c...') #1 /var/www/html/core/config.class.inc.php(1354): Config->Load('/var/www/html/c...') #2 /var/www/html/setup/wizardsteps.class.inc.php(2537): Config->__construct('/var/www/html/c...') #3 /var/www/html/setup/wizardcontroller.class.inc.php(191): WizStepDone->Display(Object(SetupPage)) #4 /var/www/html/setup/wizardcontroller.class.inc.php(132): WizardController->DisplayStep(Object(WizStepDone)) #5 /var/www/html/setup/wizardcontroller.class.inc.php(263): WizardController->Next() #6 /var/www/html/setup/index.php(61): WizardController->Run() #7 {main} thrown in /var/www/html/core/config.class.inc.php on line 1384

Can you help me please?

Docker volume mounting of container to localhost

Hi im trying to mount the volume of ITop container to my local via compose file but it failed.
heres a sample :

itop:
image: vbkunin/itop:2.6.1
restart: always
ports:
- "82:80"
networks:
SAMPLE_NETWORK:
aliases:
- SAMPLE_ITOP
volumes:
- ${DIRECTORY}:/var/www/html/

//The $DIRECTORY variable is my local connection directory.

Thanks!

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.