Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No instance found, despite ActivityPub being activated #2221

Closed
Deuchnord opened this issue May 30, 2020 · 4 comments
Closed

No instance found, despite ActivityPub being activated #2221

Deuchnord opened this issue May 30, 2020 · 4 comments
Labels
🕸️ ActivityPub Federation-related issue 🐛 Bug Something isn't working Status: Reported Issue may need more information or needs reproducing

Comments

@Deuchnord
Copy link

Deuchnord commented May 30, 2020

I'm configuring my new instance of Pixelfed and having some trouble on activating ActivityPub:

  • I cannot access my posts from Mastodon

  • I cannot mention my Mastodon account from my Pixelfed account

  • On the admin panel/Instances, I'm having the following message:

    Warning
    No instances were found.

    If I click the Run scan button, the page reload without better results, Horizon does not report any new job, and no message is logged in the /storage/logs/laravel.log.

I'm running Pixelfed through the Docker-Compose configuration available in this repo.

docker-compose.override.yml
version: '3'

services:
  app:
    # Comment to use dockerhub image
    build:
      context: .
      dockerfile: contrib/docker/Dockerfile.apache
    image: pixelfed
    restart: unless-stopped
    env_file:
      - ./.env.docker
    volumes:
      - "app-storage:/var/www/storage"
      - "app-bootstrap:/var/www/bootstrap"
      - "./.env.docker:/var/www/.env"
    networks:
      - external
      - internal
    ports:
      - "8102:80"
    depends_on:
      - db
      - redis

  db:
    image: mysql:8.0
    restart: unless-stopped
    networks:
      - internal
    command: --default-authentication-plugin=mysql_native_password
    environment:
      - MYSQL_DATABASE=pixelfed
      - MYSQL_USER=pixelfed
      - MYSQL_PASSWORD=some-really-secured-password
      - MYSQL_RANDOM_ROOT_PASSWORD=true
    volumes:
      - "../data:/var/lib/mysql"
.env.docker file
## Crypto
APP_KEY=base64:...

## General Settings
APP_NAME="DeuchPix"
APP_ENV=production
APP_DEBUG=false
APP_URL=https://pix.deuchnord.fr
APP_DOMAIN="pix.deuchnord.fr"
ADMIN_DOMAIN="pix.deuchnord.fr"
SESSION_DOMAIN="pix.deuchnord.fr"

OPEN_REGISTRATION=false
ENFORCE_EMAIL_VERIFICATION=false
PF_MAX_USERS=1000
OAUTH_ENABLED=true

APP_TIMEZONE=UTC
APP_LOCALE=fr

## Pixelfed Tweaks
LIMIT_ACCOUNT_SIZE=true
MAX_ACCOUNT_SIZE=1000000
MAX_PHOTO_SIZE=15000
MAX_AVATAR_SIZE=2000
MAX_CAPTION_LENGTH=500
MAX_BIO_LENGTH=125
MAX_NAME_LENGTH=30
MAX_ALBUM_LENGTH=4
IMAGE_QUALITY=80
PF_OPTIMIZE_IMAGES=true
PF_OPTIMIZE_VIDEOS=true
ADMIN_ENV_EDITOR=false
ACCOUNT_DELETION=true
ACCOUNT_DELETE_AFTER=false
MAX_LINKS_PER_POST=0

## Instance
#INSTANCE_DESCRIPTION=
INSTANCE_PUBLIC_HASHTAGS=true
#INSTANCE_CONTACT_EMAIL=
INSTANCE_PUBLIC_LOCAL_TIMELINE=false
#BANNED_USERNAMES=
STORIES_ENABLED=true
RESTRICTED_INSTANCE=false

## Mail
MAIL_DRIVER=log
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_FROM_ADDRESS="pixelfed@example.com"
MAIL_FROM_NAME="Pixelfed"
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

## Databases (MySQL)
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=pixelfed
DB_USERNAME=pixelfed
DB_PASSWORD=some-really-secured-password

## Databases (Postgres)
#DB_CONNECTION=pgsql
#DB_HOST=postgres
#DB_PORT=5432
#DB_DATABASE=pixelfed
#DB_USERNAME=postgres
#DB_PASSWORD=postgres

## Cache (Redis)
REDIS_CLIENT=phpredis
REDIS_SCHEME=tcp
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379
REDIS_DATABASE=0

## EXPERIMENTS 
EXP_LC=false
EXP_REC=false
EXP_LOOPS=false

## ActivityPub Federation
ACTIVITY_PUB=true
AP_REMOTE_FOLLOW=true
AP_SHAREDINBOX=true
AP_INBOX=true
AP_OUTBOX=true
ATOM_FEEDS=true
NODEINFO=true
WEBFINGER=true

## S3
FILESYSTEM_DRIVER=local
FILESYSTEM_CLOUD=s3
PF_ENABLE_CLOUD=false
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=
#AWS_DEFAULT_REGION=
#AWS_BUCKET=
#AWS_URL=
#AWS_ENDPOINT=
#AWS_USE_PATH_STYLE_ENDPOINT=false

## Horizon
HORIZON_DARKMODE=false

## COSTAR - Confirm Object Sentiment Transform and Reduce
PF_COSTAR_ENABLED=false

# Media
MEDIA_EXIF_DATABASE=false

## Logging
LOG_CHANNEL=stack

## Image
IMAGE_DRIVER=imagick

## Broadcasting
BROADCAST_DRIVER=log  # log driver for local development

## Cache
CACHE_DRIVER=redis

## Purify
RESTRICT_HTML_TYPES=true

## Queue
QUEUE_DRIVER=redis

## Session
SESSION_DRIVER=redis

## Trusted Proxy
TRUST_PROXIES="*"

## Passport
#PASSPORT_PRIVATE_KEY=
#PASSPORT_PUBLIC_KEY=

What am I missing?

@Deuchnord Deuchnord changed the title No instance found, depite ActivityPub being activated No instance found, despite ActivityPub being activated May 30, 2020
@maxheadroom
Copy link
Contributor

Have you checked your failed job stats in the Horizon Dashboard? I found an error with the job "InboxWorker"


Symfony\Component\Debug\Exception\FatalThrowableError:  syntax error, unexpected ')' in  /home/pixelfeed/pixelfed/app/Util/ActivityPub/Inbox.php:303
--
Stack trace:
#0 /home/pixelfeed/pixelfed/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/pixelfeed...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\Util\\Activi...')

...

@Deuchnord
Copy link
Author

Have you checked your failed job stats in the Horizon Dashboard?

I don't even have any recent jobs in Horizon Dashboard 🤔

Horizon Dashboard

@maxheadroom
Copy link
Contributor

There was another bug reported that Horizon stops once you call php artisan cache:clean. Maybe check if your horizon is running or restart it with supervisord.

@Deuchnord
Copy link
Author

I don't have supervisord, but it may be because I run Pixelfed through Docker. Anyway, php artisan horizon:status says that Horizon is running and I have some workers running:

php artisan horizon:supervisors

+--------------------------------+-----+---------+---------------------------------------------------+-----------+
| Name                           | PID | Status  | Workers                                           | Balancing |
+--------------------------------+-----+---------+---------------------------------------------------+-----------+
| 7d11b177e54f-rtfY:supervisor-1 | 17  | running | redis:high (1), redis:default (1), redis:feed (1) | auto      |
+--------------------------------+-----+---------+---------------------------------------------------+-----------+

@trwnh trwnh added Status: Reported Issue may need more information or needs reproducing 🐛 Bug Something isn't working 🕸️ ActivityPub Federation-related issue labels Jul 11, 2020
@trwnh trwnh added this to the 0.11.0 - Circles Update milestone Jul 11, 2020
@dansup dansup closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕸️ ActivityPub Federation-related issue 🐛 Bug Something isn't working Status: Reported Issue may need more information or needs reproducing
Projects
None yet
Development

No branches or pull requests

4 participants