GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Sunday, 18-Jun-2023 23:44:34 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:

    Has anyone tried to run #GNUSocial in #Docker recently? I followed these steps, by the way.

    Aside from an error complaining that vendor/autoload.php is missing, I was getting this logging constantly when running docker compose up:

    gnu-social-worker-1 | Fatal error: Uncaught LogicException: You need to add "symfony/framework-bundle" as a Composer dependency. in /var/www/social/bin/console:18 gnu-social-worker-1 | Stack trace: gnu-social-worker-1 | #0 {main} gnu-social-worker-1 | thrown in /var/www/social/bin/console on line 18

    #Fediverse #Mastodon

    In conversation Sunday, 18-Jun-2023 23:44:34 JST from bbs.kawa-kun.com permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Sunday, 18-Jun-2023 23:47:58 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to

      It looks like it’s already in composer.json and composer.lock:

      composer.json: "symfony/framework-bundle": "^6", composer.lock: "symfony/framework-bundle": "^3.4.30|^4.3.3|^5.0|^6.0", composer.lock: "symfony/framework-bundle": "~3.4|~4.0|~5.0|~6.0" composer.lock: "symfony/framework-bundle": "^5.4|^6.0", composer.lock: "symfony/framework-bundle": "^4.4|^5.3|^6.0", composer.lock: "symfony/framework-bundle": "^4.4|^5.0|^6.0", composer.lock: "symfony/framework-bundle": "<5.4", composer.lock: "name": "symfony/framework-bundle", composer.lock: "url": "https://github.com/symfony/framework-bundle.git", composer.lock: "url": "https://api.github.com/repos/symfony/framework-bundle/zipball/b79e5866a8293de00c8436836c2038ec31916ee7", composer.lock: "source": "https://github.com/symfony/framework-bundle/tree/v6.1.6" composer.lock: "symfony/framework-bundle": "<5.4", composer.lock: "symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0", composer.lock: "symfony/framework-bundle": "<5.4", composer.lock: "symfony/framework-bundle": "^5.4|^6.0", composer.lock: "symfony/framework-bundle": "<5.4", composer.lock: "symfony/framework-bundle": "^5.4|^6.0", composer.lock: "symfony/framework-bundle": "<4.4", composer.lock: "symfony/framework-bundle": "^4.4 | ^5.0 | ^6.0", composer.lock: "symfony/framework-bundle": "^5.4 | ^6.0", composer.lock: "symfony/framework-bundle": "^3.4|^4.0|^5.0|^6.0", composer.lock: "symfony/framework-bundle": "^5.4|^6.0" composer.lock: "symfony/framework-bundle": "^4.4|^5.0|^6.0", composer.lock: "symfony/framework-bundle": "^5.4.7|^6.0", composer.lock: "symfony/framework-bundle": "^5.4|^6.0",

      #PHP

      In conversation Sunday, 18-Jun-2023 23:47:58 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - symfony/framework-bundle: Provides a tight integration between Symfony components and the Symfony full-stack framework
        Provides a tight integration between Symfony components and the Symfony full-stack framework - GitHub - symfony/framework-bundle: Provides a tight integration between Symfony components and the Sym...

      2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - symfony/framework-bundle at v6.1.6
        Provides a tight integration between Symfony components and the Symfony full-stack framework - GitHub - symfony/framework-bundle at v6.1.6
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Sunday, 18-Jun-2023 23:55:39 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:
      @dhalucario Thanks. I'll give that a shot.
      In conversation Sunday, 18-Jun-2023 23:55:39 JST permalink
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Sunday, 18-Jun-2023 23:55:45 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk Hey, if `vendor/autoload.php` is missing that usually means you did not run `composer dump-autoload -o`.

      In conversation Sunday, 18-Jun-2023 23:55:45 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 00:47:40 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario Any thoughts on this?

      Problem 1 - Root composer.json requires PHP extension ext-vips * but it is missing from your system. Install or enable PHP's vips extension. Problem 2 - Root composer.json requires jcupitt/vips 1.0.9 -> satisfiable by jcupitt/vips[v1.0.9]. - jcupitt/vips v1.0.9 requires ext-vips >=0.1.2 -> it is missing from your system. Install or enable PHP's vips extension. Problem 3 - Root composer.json requires xemlock/php-latex dev-master -> satisfiable by xemlock/php-latex[dev-master]. - xemlock/php-latex dev-master requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. Problem 4 - symfony/framework-bundle[v6.0.0, ..., v6.3.0] require ext-xml * -> it is missing from your system. Install or enable PHP's xml extension. - Root composer.json requires symfony/framework-bundle ^6 -> satisfiable by symfony/framework-bundle[v6.0.0, ..., v6.3.0].

      These are the extensions that php -m says I have:

      [PHP Modules] apcu bcmath Core ctype curl date dom ds exif fileinfo filter ftp gd gettext gmp hash iconv intl json libxml mbstring msgpack mysqli mysqlnd openssl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix random readline redis Reflection session SimpleXML sodium SPL sqlite3 standard tokenizer vips xml xmlreader xmlwriter Zend OPcache zlib [Zend Modules] Zend OPcache
      In conversation Monday, 19-Jun-2023 00:47:40 JST permalink
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Monday, 19-Jun-2023 00:47:42 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk Usually big projects give out releases with all dependencies preinstalled. Maybe the docker image just clones the git repo and is missing the actual install?

      In conversation Monday, 19-Jun-2023 00:47:42 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 01:11:29 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:
      @dhalucario Not that I know of. I'm using the official Docker PHP image (php-8-fpm and Alpine).
      In conversation Monday, 19-Jun-2023 01:11:29 JST permalink
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Monday, 19-Jun-2023 01:11:30 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk Is there a chance the php you are using for the command line and the PHP your are using for the webserver are different versions/instances?

      In conversation Monday, 19-Jun-2023 01:11:30 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 01:24:01 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario I’m running composer update in the same container where I ran php -m and where the error is being thrown in the code I’m trying to run.

      In conversation Monday, 19-Jun-2023 01:24:01 JST permalink
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Monday, 19-Jun-2023 01:24:02 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk You need the extensions in both container instances if you use alpine and fpm. They do not share installed extensions if it's separate containers.

      Do you think you could share your current workspace? The best way to do that is to put the Dockerfiles/docker-compose.yml you are using into a git repo so I can have a quick look over it.

      In conversation Monday, 19-Jun-2023 01:24:02 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 01:24:34 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:
      @dhalucario (The container is PHP on top of Alpine.)
      In conversation Monday, 19-Jun-2023 01:24:34 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 01:26:31 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario This is what I’m starting from, by the way.

      In conversation Monday, 19-Jun-2023 01:26:31 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 02:42:06 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario It kind of looks like the module is being compiled against the wrong PHP version. When I add this at the end of the Dockerfile:

      RUN ln -s /usr/local/lib/php/extensions/no-debug-non-zts-*/*.so /usr/lib/php81/modules

      I get these errors from composer:

      PHP Warning: PHP Startup: Unable to load dynamic library 'vips.so' (tried: /usr/lib/php81/modules/vips.so (Error relocating /usr/lib/php81/modules/vips.so: zend_get_parameters_array_ex: symbol not found), /usr/lib/php81/modules/vips.so.so (Error loading shared library /usr/lib/php81/modules/vips.so.so: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: dom: Unable to initialize module Module compiled with module API=20220829 PHP compiled with module API=20210902 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/lib/php81/modules/xml.so (Error relocating /usr/lib/php81/modules/xml.so: zend_str_toupper: symbol not found), /usr/lib/php81/modules/xml.so.so (Error loading shared library /usr/lib/php81/modules/xml.so.so: No such file or directory)) in Unknown on line 0
      In conversation Monday, 19-Jun-2023 02:42:06 JST permalink

      Attachments



    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 02:45:08 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario Bingo.

      # /usr/local/bin/php --version PHP 8.2.7 (cli) (built: Jun 15 2023 01:00:47) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies # /usr/bin/php --version PHP Warning: PHP Startup: Unable to load dynamic library 'vips.so' (tried: /usr/lib/php81/modules/vips.so (Error relocating /usr/lib/php81/modules/vips.so: zend_get_parameters_array_ex: symbol not found), /usr/lib/php81/modules/vips.so.so (Error loading shared library /usr/lib/php81/modules/vips.so.so: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: dom: Unable to initialize module Module compiled with module API=20220829 PHP compiled with module API=20210902 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'xml.so' (tried: /usr/lib/php81/modules/xml.so (Error relocating /usr/lib/php81/modules/xml.so: zend_str_toupper: symbol not found), /usr/lib/php81/modules/xml.so.so (Error loading shared library /usr/lib/php81/modules/xml.so.so: No such file or directory)) in Unknown on line 0 PHP 8.1.20 (cli) (built: Jun 9 2023 00:35:49) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.20, Copyright (c) Zend Technologies
      In conversation Monday, 19-Jun-2023 02:45:08 JST permalink

      Attachments



    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 03:12:40 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario I think I’m going to have to give up on Docker here. Even the gsocial/php image is too outdated to be used with it.

      docker run --rm -v .:/var/www/social:rw -it gsocial/php composer update /data/gnu-social zsh: correct '.:/var/www/social:rw' to './var/www/social:rw' [nyae]? n Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Restricting packages listed in "symfony/symfony" to "^6" Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php ^8.1 but your php version (8.0.14) does not satisfy that requirement. Problem 2 - Root composer.json requires PHP extension ext-ctype * but it is missing from your system. Install or enable PHP's ctype extension. Problem 3 - Root composer.json requires PHP extension ext-vips * but it is missing from your system. Install or enable PHP's vips extension. Problem 4 - Root composer.json requires jcupitt/vips 1.0.9 -> satisfiable by jcupitt/vips[v1.0.9]. - jcupitt/vips v1.0.9 requires ext-vips >=0.1.2 -> it is missing from your system. Install or enable PHP's vips extension. Problem 5 - Root composer.json requires xemlock/php-latex dev-master -> satisfiable by xemlock/php-latex[dev-master]. - xemlock/php-latex dev-master requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. Problem 6 - symfony/framework-bundle[v6.0.0, ..., v6.0.19] require ext-xml * -> it is missing from your system. Install or enable PHP's xml extension. - symfony/framework-bundle[v6.1.0, ..., v6.3.0] require php >=8.1 -> your php version (8.0.14) does not satisfy that requirement. - Root composer.json requires symfony/framework-bundle ^6 -> satisfiable by symfony/framework-bundle[v6.0.0, ..., v6.3.0].

      LXC will probably work better here.

      In conversation Monday, 19-Jun-2023 03:12:40 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: repo.packagist.org
        Packagist
        from Jordi Boggiano
        The PHP Package Repository
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 04:08:18 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario The Dockerfile was installing composer via apk, which was pulling in an extra PHP version into /usr/local/bin. Aside from fixing the tag, I had to remove that and install composer manually.

      In conversation Monday, 19-Jun-2023 04:08:18 JST permalink
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Monday, 19-Jun-2023 04:08:19 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk If you want a specific version of PHP you have to work with the tags. Lemme quickly check smth.

      In conversation Monday, 19-Jun-2023 04:08:19 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 04:09:09 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario Sorry, an extra version into /usr/bin.

      The PHP Docker images already have PHP in /usr/local/bin.

      In conversation Monday, 19-Jun-2023 04:09:09 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 04:40:11 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      • func_doggoλt_rotating :vp:

      @dhalucario I think I ended up getting everything happy in the meantime. Only problem now is that it won’t accept the password I set when running bin/configure.

      gnu-social-db-1 | 2023-06-18 19:36:41.791 UTC [32] FATAL: password authentication failed for user "postgres" gnu-social-db-1 | 2023-06-18 19:36:41.791 UTC [32] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

      Patch that fixed the dependency and version issues:

      diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 534237a7da..14b032ab53 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,13 +1,16 @@ -FROM php:8-fpm-alpine +FROM php:8.1-fpm-alpine RUN apk update && apk add git autoconf make gcc g++ file gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \ - mariadb-dev mariadb-client postgresql-dev postgresql-client vips-dev composer ffmpeg > /dev/null + mariadb-dev mariadb-client postgresql-dev postgresql-client vips-dev ffmpeg libxml2 \ + libxml2-dev libxml2-utils libsodium libsodium-dev bison ARG MAKEFLAGS="-j$(cat /proc/cpuinfo | grep processor | wc -l)" RUN apk add --virtual .phpize-deps $PHPIZE_DEPS -RUN docker-php-ext-install bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql +RUN cd /tmp && wget -O composer-setup.php https://getcomposer.org/installer && php composer-setup.php && mv composer.phar /usr/local/bin/composer && rm -f composer-setup.php + +RUN docker-php-ext-install bcmath ctype dom exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql sodium xml RUN cd /tmp && git clone https://github.com/krakjoe/apcu && cd apcu && phpize && ./configure --enable-apcu && make install RUN cd /tmp && git clone https://github.com/php-ds/ext-ds && cd ext-ds && phpize && ./configure && make install
      In conversation Monday, 19-Jun-2023 04:40:11 JST permalink

      Attachments


      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - krakjoe/apcu: APCu - APC User Cache
        APCu - APC User Cache. Contribute to krakjoe/apcu development by creating an account on GitHub.
      2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        GitHub - php-ds/ext-ds: An extension providing efficient data structures for PHP 7
        An extension providing efficient data structures for PHP 7 - GitHub - php-ds/ext-ds: An extension providing efficient data structures for PHP 7
    • Embed this notice
      func_doggoλt_rotating :vp: (dhalucario@social.doggoat.de)'s status on Monday, 19-Jun-2023 04:40:13 JST func_doggoλt_rotating :vp: func_doggoλt_rotating :vp:
      in reply to

      @tk I think I got you a fix.

      # 1. I did a fresh setup
      ./bin/configure

      # 2. After finishing the setup we only start the docker container
      docker-compose up php

      # 3. Switch to a new terminal tab and install the composer deps with the right version of php and wait till it's finished installing.
      docker exec -it gnu-social_php_1/usr/bin/php8 /usr/bin/composer.phar update -W

      # 4. CTRL+C the terminal in step 2

      # 5. Now we should be able to run it
      docker-compose up

      In conversation Monday, 19-Jun-2023 04:40:13 JST permalink
    • Embed this notice
      Doughnut Lollipop 【記録係】:blobfoxgooglymlem: (tk@bbs.kawa-kun.com)'s status on Monday, 19-Jun-2023 05:24:33 JST Doughnut Lollipop 【記録係】:blobfoxgooglymlem: Doughnut Lollipop 【記録係】:blobfoxgooglymlem:
      in reply to
      At this point, #GNUSocial still doesn't run correctly because no tables were created in the database. I haven't found any installation scripts for this version of it, either. #fediverse #mastodon
      In conversation Monday, 19-Jun-2023 05:24:33 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.