sipcapture / homer5-docker

HOMER 5 Docker Containers (OBSOLETE)
http://sipcapture.org
40 stars 61 forks source link

CANT USE DOCKER #58

Open gudge25 opened 6 years ago

gudge25 commented 6 years ago

[root@sip ~]# docker run -it -v /tmp/homer_mysql/:/var/lib/mysql --name homer5 -p 80:80 -p 9060:9060/udp sipcapture/homer-docker Unable to find image 'sipcapture/homer-docker:latest' locally latest: Pulling from sipcapture/homer-docker 10a267c67f42: Pull complete afff4b2ee6a3: Pull complete 8c49780af0c4: Pull complete 8b499f11f401: Pull complete 7ac4dffd4d1c: Pull complete b2115fadcb66: Pull complete 05b5b3fc734c: Pull complete dfa948fc1037: Pull complete 76d04c073e1f: Pull complete cd0878c4ed29: Pull complete 114c43fcc9af: Pull complete ecf9b6f8dadd: Pull complete 04b7ee89fed6: Pull complete 6fbcd0ee0e2c: Pull complete 280ff9f04f8d: Pull complete 52e85839fb3d: Pull complete 545b24d0ef06: Pull complete 618d3786d586: Pull complete 069f5964331a: Pull complete 1c55f59ac41d: Pull complete 7c0e1ed62d9c: Pull complete 27966441fb0d: Pull complete 8c31dcff169b: Pull complete 91982aa5c783: Pull complete 7fdb709d0209: Pull complete 725472a85dfb: Pull complete 4febf438b3f0: Pull complete a60da8e85171: Pull complete cb0329f02798: Pull complete ae4581f86bbe: Pull complete 7a931d226d0d: Pull complete 43623aa5626b: Pull complete d3be65b11023: Pull complete cc1247bdb4c4: Pull complete f1f3eae0b7dc: Pull complete Digest: sha256:8d5ad8a2fcd036eaca488113ad8363afa94b5797a1890a11a4c57021b023b948 Status: Downloaded newer image for sipcapture/homer-docker:latest Beginning initial data load.... 2018-01-29T16:27:30.182554Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-01-29T16:27:30.183599Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting. 2018-01-29T16:27:30.183624Z 0 [ERROR] Aborting

Starting mysqld No directory, logging in with HOME=/ ....................................................................................................................... ...............................................................................................

lmangani commented 6 years ago

Hi @gudge25 it seems you're mapping a folder w/ existing contents and the all-in-one package does not happily play with that unless the "initialized" flag is found on the filesystem, ie: $DATADIR/.homer_initialized

Was this a brand new setup with existing MySQL data, migration to container, or something else? Thanks & Hope this helps!

gudge25 commented 6 years ago

hi @lmangani this is a new install (reinstall but i delete all volumes and images before reinstall ) -- so think that it is a new one install

lmangani commented 6 years ago

@gudge25 could you confirm if there is anything in /tmp/homer_mysql folder you are mapping? Try move to a new location for a test - it should spin right up.

gudge25 commented 6 years ago

ok after clearing /tmp/homer_mysql it started but i loose all the data
why i should delete my data to recreate homer ?

lmangani commented 6 years ago

You should not, definitely - this seems to be a local issue and generic to docker, not homer perhaps?