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

Installing RainLoop web mail #613

Closed
DougBeney opened this issue Sep 17, 2017 · 6 comments
Closed

Installing RainLoop web mail #613

DougBeney opened this issue Sep 17, 2017 · 6 comments

Comments

@DougBeney
Copy link

DougBeney commented Sep 17, 2017

I tried installing RainLoop by doing the following:

cd ~/mailcow-dockerized/data/web/
mkdir rainloop && cd rainloop
wget https://www.rainloop.net/repository/webmail/rainloop-community-latest.zip
unzip rainloop-community-latest.zip

Then, I go into my browser to mymailserver.com/rainloop and I get this error:

[105] Missing version directory

From a little bit of research, this seems like a permissions error so I do the following:

sudo chmod -R 755 ~/mailcow-dockerized/data/web/rainloop/

The first error is gone, however, now I have this error:

[202] Data folder permissions error [is_writable]

I tried a few different things such as chowning my rainloop directory recursively as www-data, but that did not work either.

Any idea what I am doing wrong?

Also, to be clear, this seems to be some PHP file creation error.

I troubleshooted by creating a file named test.php with the following code:

<?php
mkdir("test-folder")

When I visited this file in my browser, I got the error: Warning: mkdir(): Read-only file system in /web/rainloop/test.php on line 2

@andryyy
Copy link
Contributor

andryyy commented Sep 18, 2017

You would need to change docker-compose.yml =>

    php-fpm-mailcow:
      image: mailcow/phpfpm:1.1
      build: ./data/Dockerfiles/phpfpm
      command: "php-fpm -d date.timezone=${TZ}"
      depends_on:
        - redis-mailcow
      volumes:
        - ./data/web:/web:rw

Last line: ro to rw

@DougBeney
Copy link
Author

Awesome, thank you!

@DougBeney
Copy link
Author

Very odd. I am still getting the same error. I even rebooted my server.

@DougBeney
Copy link
Author

Figured it out!

First, I needed to find the id of the Docker phpfpm module, so I did the following:

docker ps | grep fpm

You'll see an ID next to the mailcow/phpfpm module. Copy it.

The I accessed that module by entering:

docker exec -it d01010101010 bash

Note: Replace d01010101010 with your phpfpm's module ID.

Then, type id www-data.

Copy the UID value. Mine was 82.

Type exit.

Then, type sudo chown -R 82 your/path/to/data/web/.

Obviously, replace your/path/to/data/web/ to your actual Mailcow data/web folder.

Finally, type sudo chgrp -R docker data/web/.

That worked for me.

@oviliz
Copy link

oviliz commented Oct 1, 2017

ID and UID would change every time we restart the machine or docker down/up, right @DougBeney ?

@DougBeney
Copy link
Author

Not completely sure. I have restarted my server before and I didn't run into the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants