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

Cannot get nextcloud running #19055

Closed
mindrunner opened this issue Jan 21, 2020 · 4 comments
Closed

Cannot get nextcloud running #19055

mindrunner opened this issue Jan 21, 2020 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@mindrunner
Copy link

I am trying to set up a new naked nextcloud instance. Using this docker-compose script:

version: '3.7'

services:
  db:
    image: mariadb/server
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    expose:
      - 3306
    restart: always
    volumes:
      - /mnt/data/docker-data/nextcloud/mariadb:/var/lib/mysql
    networks: 
      - proxy-tier
    environment:
      - "MYSQL_PASSWORD=xxxxx"
      - "MYSQL_DATABASE=nextcloud"
      - "MYSQL_USER=nextcloud"
      - "MYSQL_ROOT_PASSWORD=xxxxx"

  redis:
    image: redis:alpine
    restart: always
    networks: 
      - proxy-tier
       
  app:
    image: nextcloud:apache
    expose:
      - 80
    depends_on:
      - db
      - redis
    environment:
      - "MYSQL_HOST=db:3306"
      - "MYSQL_PASSWORD=xxxxx"
      - "MYSQL_DATABASE=nextcloud"
      - "MYSQL_USER=nextcloud"
      - "NEXTCLOUD_TRUSTED_DOMAINS=nx.domain.com"
      - "NEXTCLOUD_ADMIN_USER=xxxxx"
      - "NEXTCLOUD_ADMIN_PASSWORD=xxxxx"
      - "REDIS_HOST=redis"
      - "VIRTUAL_HOST=nc.domain.com"
      - "VIRTUAL_PORT=80"
      - "VIRTUAL_NETWORK=nginx-proxy"
      - "LETSENCRYPT_HOST=nc.domain.com"
      - "[email protected]"
    volumes:
      - /mnt/data/docker-data/nextcloud/data:/var/www/html
    networks: 
      - proxy-tier
    restart: always
 
  cron:
    image: nextcloud:apache
    restart: always
    volumes:
      - /mnt/data/docker-data/nextcloud/data:/var/www/html
    entrypoint: /cron.sh
    networks: 
      - proxy-tier
    depends_on:
      - db
      - redis

networks:
  proxy-tier:
    external:
      name: nginx-proxy

I am getting the following error when creating the initial admin account:
SQLSTATE[HY000] [2006] MySQL server has gone away

Steps to reproduce

  1. docker-compose up -d
  2. go to https://nc.domain.com
  3. Try to create admin account

Expected behaviour

Aadmin account created and logged in

Actual behaviour

SQLSTATE[HY000] [2006] MySQL server has gone away

@mindrunner mindrunner added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 21, 2020
@j-ed
Copy link
Contributor

j-ed commented Jan 21, 2020

Have you tried to address this problem in the Nextcloud help forum first, because this is a bug tracker of the developers 😉

@mindrunner
Copy link
Author

And why would you think, this is not a bug?

Probably related to nextcloud/docker#951

@j-ed
Copy link
Contributor

j-ed commented Jan 21, 2020

Eventually because you've not used the issue template and provided detailed information about your environment and I haven't seen any reference to a discussion in the help forum. 😉

@mindrunner
Copy link
Author

Well, mysql seems broken as we already know. Using postgres now and it's working. Considering this as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants