nuxsmin / docker-syspass

Docker stuff for running sysPass on Docker
GNU General Public License v3.0
39 stars 21 forks source link

syspass/plugin-authenticator does not work with Docker instructions #28

Closed frankenstein91 closed 5 years ago

frankenstein91 commented 5 years ago

It is not possible for me to activate the plugin.

version: '2'
services:
  app:
    container_name: syspass-app
    image: syspass/syspass:3.0.5
    restart: unless-stopped
    environment:
      - COMPOSER_EXTENSIONS=syspass/plugin-authenticator
    ports:
      - "8080:80"
      - "8443:443"
    links:
      - db
    volumes:
      - syspass-config:/var/www/html/sysPass/app/config
      - syspass-backup:/var/www/html/sysPass/app/backup
  db:
    container_name: syspass-db
    restart: unless-stopped
    image: mariadb:10.2
    environment:
      - MYSQL_ROOT_PASSWORD=EinTollesPasswort
    ports:
      - "3306"
    volumes:
      - syspass-db:/var/lib/mysql

volumes:
  syspass-config: {}
  syspass-backup: {}
  syspass-db: {}
syspass-app | setup_app: Setting up permissions
syspass-app | setup_composer_extensions: syspass/plugin-authenticator
syspass-app | ~ /var/www/html
syspass-app | run_composer: Running composer
syspass-app | Using version ^2.0 for syspass/plugin-authenticator
syspass-app | ./composer.json has been updated
syspass-app | Loading composer repositories with package information
syspass-app | Updating dependencies (including require-dev)
syspass-app | Your requirements could not be resolved to an installable set of packages.
syspass-app |
syspass-app |   Problem 1
syspass-app |     - The requested PHP extension ext-xdebug * is missing from your system. Install or enable PHP's xdebug extension.
syspass-app |
syspass-app |
syspass-app | Installation failed, reverting ./composer.json to its original content.
sysPass Version | 3.0 (305.19020701)                         Config: 305.19020701                         App: 305.19020701                         DB: 305.19020701
-- | --
Datenbank | SERVER_VERSION : 5.5.5-10.2.24-MariaDB-1:10.2.24+maria~bionic                                             CLIENT_VERSION : mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $                                             SERVER_INFO : Uptime: 216   Threads: 8  Questions: 380  Slow queries: 0  Opens: 44  Flush tables: 1   Open tables: 38  Queries per second avg: 1.759                                             CONNECTION_STATUS : syspass-db via TCP/IP                                         Name: syspass@syspass-db
PHP | Version: 7.0.33-0+deb9u1                         Erweiterungen: Core, date, libxml, openssl,  pcre, zlib, filter, hash, Reflection, SPL, session, standard,  apache2handler, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring,  fileinfo, ftp, gd, gettext, iconv, intl, json, ldap, exif, mcrypt,  mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets,  sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl,  Zend OPcache                                     Verwendeter Speicher: 4096 KB                         Benutzer: root                         Download-Rate: 43 MB/s                                             OP Cache                                    num_cached_scripts : 350                                    num_cached_keys : 656                                    max_cached_keys : 3907                                    hits : 4028                                    start_time : 1558355332                                    last_restart_time : 0                                    oom_restarts : 0                                    hash_restarts : 0                                    manual_restarts : 0                                    misses : 350                                    blacklist_misses : 0                                    blacklist_miss_ratio : 0                                    opcache_hit_rate : 92,005481955231
Server | Apache/2.4.25 (Debian)
jklaiber commented 5 years ago

@frankenstein91 This works for me:

environment:
      - COMPOSER_EXTENSIONS=syspass/plugin-authenticator:^v2.0
frankenstein91 commented 5 years ago

^

is this signal intentionally set?

jklaiber commented 5 years ago

Yes, I've tried it before without it. It only works with the ^

nuxsmin commented 5 years ago

Hello @frankenstein91

There's a known unwanted behavior when running composer within the container, since it will try to install development dependencies and then the installation will fail because a missing extension.

This behavior was fixed in latest docker builds, but it will update sysPass to 3.1-RC4 version, which implies to update the plugin's version too.

Regards

frankenstein91 commented 5 years ago

@frankenstein91 This works for me:

environment:
      - COMPOSER_EXTENSIONS=syspass/plugin-authenticator:^v2.0

same error for me :(

nuxsmin commented 5 years ago

@frankenstein91 solved in latest release.