Closed szirmaigy closed 6 years ago
Hi!, please try out this compose file https://github.com/nuxsmin/docker-syspass/tree/master/sysPass-dev-php7
Although it's named "dev-php7", it only adds some development packages and just pull the master branch.
Regards.
Hi,
I have error: Pulling app (nuxsmin/docker-syspass:dev-php7)... ERROR: manifest for nuxsmin/docker-syspass:dev-php7 not found
Fixed!! It was pointing to the wrong tag (dev-php7 instead of devel-php7).
I found the problem. The problem was in docker-compose.yml file, the images is not nuxsmin/docker-syspass:dev-php7, the right is nuxsmin/docker-syspass:devel-php7.
I update compose file and I have this page on browser:
Do you have the container's log?
The entrypoint should have set the right permissions:
unzip ${SYSPASS_BRANCH}.zip \
&& mv sysPass-${SYSPASS_BRANCH}/* sysPass \
&& chown ${APACHE_RUN_USER}:${SYSPASS_UID} -R sysPass/ \
&& chmod g+w -R sysPass/ \
&& chmod 750 sysPass/config sysPass/backup
I've just deployed the standalone container (without docker-compose) and it worked fine.
I have a log when a started compose file without -d parameter:
syspass-app | inflating: sysPass-master/js/zxcvbn-async.min.js syspass-app | inflating: sysPass-master/js/zxcvbn.min.js syspass-app | mv: cannot move 'sysPass-master/backup' to 'sysPass/backup': Device or resource busy syspass-app | mv: cannot move 'sysPass-master/config' to 'sysPass/config': Device or resource busy syspass-app | syspass-app | Setting up composer ... syspass-app | /var/www/html/sysPass /var/www/html syspass-app | Installer verified syspass-app | All settings correct for using Composer syspass-app | Downloading... syspass-app | syspass-app | Composer (version 1.6.3) successfully installed to: /var/www/html/sysPass/composer.phar syspass-app | Use it: php composer.phar syspass-app | syspass-app | You are already using composer version 1.6.3 (stable channel). syspass-app | Do not run Composer as root/super user! See https://getcomposer.org/root for details syspass-app | Composer could not find a composer.json file in /var/www/html/sysPass syspass-app | To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section syspass-app | /var/www/html syspass-app | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.3. Set the 'ServerName' directive globally to suppress this message
This 2 line is not too good: syspass-app | mv: cannot move 'sysPass-master/backup' to 'sysPass/backup': Device or resource busy syspass-app | mv: cannot move 'sysPass-master/config' to 'sysPass/config': Device or resource busy
I've just pushed a new commit that prevents failing when setting up sysPass directories. You can deploy it a soon as the automated build is completed: https://hub.docker.com/r/nuxsmin/docker-syspass/builds/
So, We solved probrem the release version. If We created the DB manually in syspass-db, that the installation process was finished, and We can login to app. The problem is the database check.
Hi,
I created the docker-compose file with networs, and nginx-proxy (in other compose file ( jwilder/nginx-proxy )). When I want installated syspass the system writed this error. What could be the reason for that?
Order of creation:
docker network create nginx-proxy
docker-compose -p nginx-proxy -f nginx-proxy/docker-compose.yml
compose file: version: '2'
services: nginx-proxy: image: jwilder/nginx-proxy container_name: nginx-proxy restart: always networks:
networks: nginx-proxy: external: true
compose file: version: '2' services: app: container_name: syspass-app image: nuxsmin/docker-syspass:latest restart: always networks:
volumes: syspass-config: syspass-backup: syspass-db:
networks: nginx-proxy: external: name: nginx-proxy default: driver: bridge
docker network ls:
NETWORK ID NAME DRIVER SCOPE 1a996b899403 bridge bridge local fe846508a28d host host local 22a55494622f nginx-proxy bridge local 72192372741a none null local cfbce377fa17 syspass_default bridge local
docker network inspect syspass_default:
docker inspect syspass-db:
docker inspect syspass-app:
docker exec -it syspass-db ping syspass-app:
PING syspass-app (172.18.0.2): 56 data bytes 64 bytes from 172.18.0.2: icmp_seq=0 ttl=64 time=0.128 ms 64 bytes from 172.18.0.2: icmp_seq=1 ttl=64 time=0.069 ms
docker exec -it syspass-db mysql -e "select user,host from mysql.user;":
+------------------+-----------------------------+ | user | host | +------------------+-----------------------------+ | root | 127.0.0.1 | | root | 16163be85d95 | | root | ::1 | | debian-sys-maint | localhost | | root | localhost | | root | syspass-app.syspass_default | +------------------+-----------------------------+
DB Configuration (MySQL): DB access user: root DB access password: syspass syspass database name: syspass syspass database server: db (or syspass-db)
Thank for your help!