Steps to reproduce
Installation according to: https://doc.owncloud.org/server/10.4/admin_manual/installation/docker/
- docker pull owncloud/server
- wget https://raw.githubusercontent.com/owncloud/docs/master/modules/admin_manual/examples/installation/docker/docker-compose.yml
- vi .env
OWNCLOUD_VERSION=18.09.9
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=***
ADMIN_PASSWORD=***
HTTP_PORT=8080
HTTPS_PORT=443 - docker compose up -d
Expected behaviour
Tell us what should happen
A docker container shoud be created
Actual behaviour
Tell us what happens instead
When I do: docker-compose up -d
I get the following Errorroot@testsrv:~# cd /home/owncloud-docker-server/
root@testsrv:/home/owncloud-docker-server# ll
total 8
drwxr-xr-x 2 root root 44 Feb 16 15:19 ./
drwxr-xr-x 4 root root 48 Feb 16 15:04 …/
-rw-r–r-- 1 root root 1650 Feb 16 15:06 docker-compose.yml
-rwx------ 1 root root 124 Feb 16 15:19 .env*
root@testsrv:/home/owncloud-docker-server# chmod 777 .env
root@testsrv:/home/owncloud-docker-server# docker-compose up -d
Traceback (most recent call last):
File “/snap/docker/423/bin/docker-compose”, line 11, in
load_entry_point(‘docker-compose==1.23.2’, ‘console_scripts’, ‘docker-compose’)()
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/main.py”, line 71, in main
command()
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/main.py”, line 124, in perform_command
project = project_from_options(’.’, options)
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/command.py”, line 27, in project_from_options
environment = Environment.from_env_file(override_dir or project_dir)
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 61, in from_env_file
instance = _initialize()
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 57, in _initialize
return cls(env_vars_from_file(env_file_path))
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 35, in env_vars_from_file
with contextlib.closing(codecs.open(filename, ‘r’, ‘utf-8-sig’)) as fileobj:
File “/snap/docker/423/usr/lib/python2.7/codecs.py”, line 896, in open
file = builtin.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: u’./.env’
Server configuration
Operating system:
Ubuntu Server 19.10 (64bit)
Web server:
docker
Database:
docker
PHP version:
docker
ownCloud version: (see ownCloud admin page)
root@testsrv:~# cd /home/owncloud-docker-server/
root@testsrv:/home/owncloud-docker-server# ll
total 8
drwxr-xr-x 2 root root 44 Feb 16 15:19 ./
drwxr-xr-x 4 root root 48 Feb 16 15:04 …/
-rw-r–r-- 1 root root 1650 Feb 16 15:06 docker-compose.yml
-rwx------ 1 root root 124 Feb 16 15:19 .env*
root@testsrv:/home/owncloud-docker-server# chmod 777 .env
root@testsrv:/home/owncloud-docker-server# docker-compose up -d
Traceback (most recent call last):
File “/snap/docker/423/bin/docker-compose”, line 11, in
load_entry_point(‘docker-compose==1.23.2’, ‘console_scripts’, ‘docker-compose’)()
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/main.py”, line 71, in main
command()
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/main.py”, line 124, in perform_command
project = project_from_options(’.’, options)
File “/snap/docker/423/lib/python2.7/site-packages/compose/cli/command.py”, line 27, in project_from_options
environment = Environment.from_env_file(override_dir or project_dir)
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 61, in from_env_file
instance = _initialize()
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 57, in _initialize
return cls(env_vars_from_file(env_file_path))
File “/snap/docker/423/lib/python2.7/site-packages/compose/config/environment.py”, line 35, in env_vars_from_file
with contextlib.closing(codecs.open(filename, ‘r’, ‘utf-8-sig’)) as fileobj:
File “/snap/docker/423/usr/lib/python2.7/codecs.py”, line 896, in open
file = builtin.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: u’./.env’
Updated from an older ownCloud or fresh install:
fresh install
Where did you install ownCloud from:
docker pull owncloud/server
Signing status (ownCloud 9.0 and above):
docker
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
The content of config/config.php:
Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.
or
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder
*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.
List of activated apps:
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
Are you using external storage, if yes which one: local/smb/sftp/…
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
LDAP configuration (delete this part if not used)
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser:
Operating system:
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
Insert your ownCloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...