ampache / ampache-docker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ericfrederich/docker-ampache
Ampache docker package
Home Page: http://ampache.org
This project forked from ericfrederich/docker-ampache
Ampache docker package
Home Page: http://ampache.org
Hi.
im trying to install ampache with aws cloud server(Amazon), but i'm facing the problem in "config/ampache.cfg.php"
(I already installed LAMP)
first of all, i installed ampache 3.8.6 version and also composer, i guess this is a newest version. (https://github.com/ampache/ampache/releases/tag/3.8.6)
secondly, i proceeded smoothly to move ampache files to var/www/html directory.
i connected to ampache installation server with my aws public IP address and i proceeded only step 1.
And now i got trouble in step 2 which is about config...
I saw a lot of advices in google which change the permission (ex. chmod -R 777)
and i tried it...
in my ampache/config directory, there are 3 files,
ampache.cfg.php.dist, motd.php.dist, registration_agreement.php.dist
i downloaded and moved the other cfg.php file to config directory, but the installation screen doesn't work...
According to the step 2's manual,
"If your config/ directory is writable, you can select "write" to have Ampache write the config file directly to the correct location. If you select "download" it will prompt you to download the config file, and you can then manually place the config file in /var/www/html/ampache"
I tried to click 'download' or 'write' also, it does not work either...
Please help me to resolve it i REALLY need help ;(((
Thanks (Sorry about little grammar mistakes, im not good at english...;) )
Jerome.
Time to update to 3.8.3? :)
It would be nice to be able to mount config and database folders to have persistance for the docker installation: as https://hub.docker.com/r/producerism/ampache-docker/
this is great to have an docker installation for newbies like me!
The Docker container does not support LDAP login in its current state because the PHP 'ldap_connect()' function does not exist. Adding the "php-ldap" package to the apt-get line of the Dockerfile will fix this.
Every time I try to use a volume for the /etc/mysql
directory in the container, the application fails to start because the database never comes online:
[root@drew-metal content-engine]# docker logs -f ampache
=> An empty or uninitialized MySQL volume is detected in /var/lib/mysql
=> Installing MySQL ...
=> Done!
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
It appears to be that the files needed are already in the image when it starts:
[root@drew-metal content-engine]# docker create ampache/ampache:latest
a42e08837dc3f229a92c5ad8555c658f806df46924809f4203c45440695873cd
[root@drew-metal content-engine]# docker export a42e08837dc3f229a92c5ad8555c658f806df46924809f4203c45440695873cd | tar t | grep etc/mysql
etc/mysql/
etc/mysql/conf.d/
etc/mysql/conf.d/.keepme
etc/mysql/conf.d/mysqld_safe_syslog.cnf
etc/mysql/debian-start
etc/mysql/debian.cnf
etc/mysql/my.cnf
[root@drew-metal content-engine]# docker rm a42e08837dc3f229a92c5ad8555c658f806df46924809f4203c45440695873cd
a42e08837dc3f229a92c5ad8555c658f806df46924809f4203c45440695873cd
So they go away when I attach a volume to that path, and the database doesn't work.
I want to persist the Ampache configuration files so that I don't have to reinstall and reconfigure Ampache if docker or the ampache container stop for some reason.
Here's what I do:
$ docker \
run --name=ampache \
-v /mymusic:/media:ro \
-v /ampache_config:/var/www/config \
-p 2008:80 -d ampache/ampache
Ampache seems to install fine, and then in the Requirements check of the installation wizard, I get this:
But the container does have access to that directory:
$ docker inspect ampache
...
"HostConfig": {
"Binds": [
"/ampache_config:/var/www/config:rw",
"/mymusic:/media:ro"
],
...
Any thoughts?
I built a new Image from https://github.com/ampache/ampache-docker
it seems to work just fine, except for the Subsonic api.
To fix that one issue I added this line to the Dockerfile
RUN for f in rest play channel; do mv /var/www/$f/.htac* /var/www/$f/.htaccess; done;
Now I have a solid instance of ampache running in Docker.
why doesn't the Image on the docker hub just get updated with the current state of the Git repo then
Originally posted by @TimoHocker in ampache/ampache#1741 (comment)
Hi all,
I'm running ampache-docker on GCP, with COS. I can run ampache-docker, everithing shows up fine but when I run the configuration wizard, in Step 1 - Create the Ampache database, I cannot connect to the database.
Unable to connect to the database: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
I'm using user admin and the password shown in the container logs. If I exec into the container, I can reproduce the problem with mysql -uadmin -ppassword
inotifywait.sh using update_file.inc allows clean, add, verify, gather to run automatically on media folders so i'll add that to the images.
Hi,
I want to install ampache via docker but I have this error message :
Error: Unable to make database connection: SQLSTATE[HY000] [2002] Permission denied
The issue star on page 3 when the install ask me "MYSQL username........." I foolow the installation guide and when I clic on "insert database" the message come on the same page.
I use docker on the last Open Media Vault version.
Thx :d
Hi,
Latest Ampache docker from: dockerhub, i get below message
Update available (4.0.3).
See changes or download.Error: Your config file is out of date!
Generate and download new config file | Write new config file to disk
The .git
folder is reachable via web browser: https://ampache.mydomain.com/.git/config
Tested with the docker hub image ampache/ampache:develop
This only occurs on tag develop
. On tag latest
the .git
folder is removed on step 16 in the Dockerfile.
.git
folder outside /var/www
via -git-dir
and --work--tree
After trying to start the new Container (4.4.3:nosql) i'm getting following error:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "docker-entrypoint.sh": executable file not found in $PATH: unknown.
Installation went well but i'm having trouble mounting local folder as /media.
It just do nothing.
trying to add a remote source does add a line but not the local. What am i doing wrong?
Hi,
I'm trying to run the official ampache/ampache docker image on a raspberrypi.
Docker is already running and working fine for other containers.
The syntax I used is: docker run --name=ampache -d -v /mypath:/media:ro -p 50:80 ampache/ampache:develop
The log I got with docker logs -f ampache
is:
=> An empty or uninitialized MySQL volume is detected in /var/lib/mysql
=> Installing MySQL ...
=> Done!
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
and continues forever.
Installed the docker container following the instruction, when I arrive at step 2 I press write for "config/ampache.cfg.php", it goes automatically to step 3, I wrote down username, password and second time password, but when I move on from that page the browser tells me that there is a corruption in the website data transmitted and to contact the website owner...
Sorry for my English but it's not my first language
Hello,
I just realized that watchtowerr updated the image of my ampache setup.
I thought its a straight forward update process like usual, somehow this time it wasn't the case.
It was pretty easy to adjust the new path for the public dir, however my database is not running correctly anymore.
The updater throws a database connection error.
After recreating with docker-compose this is the log output:
=> Using an existing volume of MySQL
2021-09-04 12:44:05,656 INFO Set uid to user 0 succeeded
2021-09-04 12:44:05,659 INFO supervisord started with pid 1
2021-09-04 12:44:06,660 INFO spawned: 'apache2' with pid 8
2021-09-04 12:44:06,662 INFO spawned: 'cron' with pid 9
2021-09-04 12:44:06,663 INFO spawned: 'inotifywatch' with pid 10
2021-09-04 12:44:06,665 INFO spawned: 'mysql' with pid 11
2021-09-04 12:44:07,762 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-04 12:44:07,762 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-04 12:44:07,763 INFO success: inotifywatch entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-04 12:44:07,763 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-09-04 12:44:07,763 INFO exited: mysql (exit status 0; expected)
I wouldn't consider it as "expected", however I have no clue what to do in this case. Any ideas?
I have version 4.4.2 running, but having problems to stream to an ios subsonic-client. (avsub, get music data and pictures but when i hit play nothing happens)
To check this problem, i have set debug = "true" in the config, but then i get errors "unable to write to log..." because the default path in the config is set to /var/log/ampache but there is no such path in the container !
I have checked the Dockerfile and in particular the file docker_entrypoint.sh:
...
if [ "$1" = '/run.sh' ] && [ "$(id -u)" = '0' ]; then
mkdir -p /var/logs/ampache
chown -R www-data:www-data /var/www/config /var/logs/ampache
exec gosu www-data "$@"
else
exec "$@"
fi
The path /var/logs doesnt exist, the correct path should be /var/log/ampache, or am i wrong?
Please help
Hi,
I'm trying to run the official ampache/ampache docker image on a raspberrypi.
Docker is already running and working fine for other containers.
The syntax I used is: docker run --name=ampache -d -v /mypath:/media:ro -p 50:80 ampache/ampache:develop
The log I got with docker logs -f ampache
is:
=> An empty or uninitialized MySQL volume is detected in /var/lib/mysql
=> Installing MySQL ...
=> Done!
=> Waiting for confirmation of MySQL service startup
=> Waiting for confirmation of MySQL service startup
and continues forever.
Using the last version of ampache with the tag nosql on an arm I wanted to get a subsonic client on IOS to free my phone's memory and keep playing songs. I wanted to try ISub but got some troubles to make it work since the default value in the config (ampache.cfg.php) for local_web_path is http://localhost/ampache which make subsonic unable to load songs
requested by the client. I didn't find the source of the problem alone , it appears that some other users had this issue for quite a long time ago but the issue was closed without changes in the default config even if a working value for local_web_path was proposed: ampache/ampache#1639
Since I find a lot of posts, issues , forum discussion related to this maybe it should be considered to set the default value of local_web_path at http://localhost as it's the only one working and to remove "/ampache" at the end because it create troubles.
About the difference that required changes that could be needed concerning the local_web_path I can see only one cas the it could be different from http://localhost : In the case you use a reverse proxy with a dns server which require to replace lolcahost with the target url and to add dns = xxx.xxx.xxx.xxx in the docker-compose service using the ampache image)
I add the issue here since I use the docker image and I dont know if the problem remain on ampache/ampache repo.
Everything is working with ISub by the way^^
I've tried to deploy all three docker images, with docker-compose on two different hosts, but all I get is a 404 from apache server.
Server logs doesn't throw any relevant information.
Container inspection shows that the files are located at /var/www but they're not accesible through web browser.
My 80 port is not used.
Docker version: 19.03.13, build 4484c46
Docker-compose: 1.27.0, build 980ec85b
One of the standards I see when on hub.docker.com is using tags for version numbers. This is useful because it allows people to specify which version of the application they want and enables reproducible builds.
Is this something that could be considered here please?
After manually installing Ampache with docker-compose.yml on my Raspberry Pi 4
I access correctly locally but I cannot do it through the internet
I get an NGINX 502 error
I have ports 85:80 that are forwarded to 80 because I have another application on that port
I have it installed in / var / www / html but nothing does not work
502 Bad Gateway
openresty
I am using Ampache Docker on a Raspberry Pi 4 with Ubuntu Server 18.04 installed. All music and videos reside in a NextCloudPi data folder.
My docker compose.yml
version: "2"
services:
ampache:
image: ampache/ampache
container_name: ampache
volumes:
- [externalhdd]/NextCloudPi/Data/nextcloud/data/[username]/files/[path]/Media:/media:ro
ports:
- [port]:80
restart: unless-stopped
I can login with Android - Just Player or any browser, but I failed to login using Android - Power Ampache or Android - UltraSonic.
Thanks before.
Hello, I'm using this docker image with an SSL Reverse proxy in front of it.
I'm getting a lot of mixed-content errors, because ampache thinks it's running on port 80.
My setup is:
https://media.example.com -> http://192.168.1.2:5678 (maps to ampache-docker port 80).
Ampache actually get's the correct domain but not the correct protocol, so all URLs are like this: e.g. http://media.example.com/templates/base.css
Hello all,
New to docker and I am struggling with this one.
A) does this docker contains it all? I.e. MySQL database? I have a mariadb installed with user configured, can I use it?
B) from reading, I am getting the impression I need to git clone, the modify the docker-compose for the right music location. Then docker pull the image .
C) then docker-compose up -d I can then access the installation page but I am having issue with the permission on the cfg files. Run the chown as per the read.me but I had to create the user www-data as I didn't have it.
Am I correct or what steps am I missing?
Plex connected and as soon as you try and access the Ampache share -- you're greeted with this:
Update your Plex Media Server The server "Ampache-Music" is out of date and cannot be selected. This version of the web app requires Plex Media Server 1.3.0 or higher. Use one of the links below to open an available, out of date server directly. Ampache-Music (Unavailable)
Dear Ampache,
In my server, port 80 is taken, so I change the script to
docker run --name=ampache -d -v /path/to/your/music:/media:ro -p 81:81 ampache/ampache.
It installed, but running http://127.0.0.1:81 produce nothing. :(
Need a clue on how to use another ports, please. :)
Issue while using the last armv7 image version with nosql tag.
After installing Ampache with the community version I logged in with my admin account (had to restart db to make it work by the way) and i wanted to reach the admin page but I have a message saying me access denied :
here are the error.log :
H00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.0.26.3. Set the 'ServerName' directive globally to suppress this message
[Wed Sep 02 17:50:26.156782 2020] [mpm_prefork:notice] [pid 14] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Wed Sep 02 17:50:26.157200 2020] [core:notice] [pid 14] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'
[Wed Sep 02 17:53:00.392643 2020] [authz_core:error] [pid 20] [client 10.0.0.2:35000] AH01630: client denied by server configuration: /var/www/lib/components/bootstrap/fonts/glyphicons-halflings-regular.woff2, referer: http://ampache.ln/lib/components/bootstrap/css/bootstrap.min.css
[Wed Sep 02 17:55:20.398168 2020] [php7:error] [pid 19] [client 10.0.0.2:35046] script '/var/www/admin.php' not found or unable to stat
Seems like it's missing because I checked in /var/www/ and admin.php wasn't there but I did find an admin folder :
This currently installs Ampache v3.8.1, not v3.8.2
Hello.
I tried to install ampache with the docker-compose and I have several issues because the readme was not clear enough for me. (I imagine if could be not clear enough for other people too)
It miss the part that say you need to have the /data/ folder at the side of the docker-compose.yml. Maybe the readme should states something like this :
You have to download the docker-compose.yml file and the data folder then put them side by side. Alternatively you can pull the whole git.
Beside you talk about
chown www-data:www-data ./data/config -R
but not every linux come with a www-data group. So I suggest to change to :
chown 33:33 ./data/config -R
Thank you if you agree to modify the readme with those information
Hello all
I created this docker service file with Traefik V2 to deploy Ampache on one of my raspberry pi 4:
version: "3"
services:
music_center:
hostname: ampache.ln
image: ampache/ampache:latest
volumes:
- /home/pi/ampache/mysql:/var/lib/mysql
- /home/pi/ampache/config:/var/www/config
- /home/pi/ampache/sites-enabled:/etc/apache2/sites-enabled
- /home/pi/musics:/media
networks:
- traefik-local
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.ampache.rule=Host(`ampache.ln`)"
- "traefik.http.routers.ampache.entrypoints=web"
- "traefik.http.services.ampache.loadbalancer.server.port=80"
placement:
constraints:
- 'node.hostname == Pidie'
networks:
traefik-local:
external: true
but I keep being stuck at Starting " mysqld daemon with databases from /var/lib/mysql" as tou can see below :
$ docker stack up -c docker_ampache.yml ampache && docker service logs -f ampache_music_center
Creating service ampache_music_center
ampache_music_center.1.0wpwdntxq5w0@Pidie | => Using an existing volume of MySQL
ampache_music_center.1.0wpwdntxq5w0@Pidie | * Starting Apache httpd web server apache2
ampache_music_center.1.0wpwdntxq5w0@Pidie | *
ampache_music_center.1.0wpwdntxq5w0@Pidie | Establishing watches...
ampache_music_center.1.0wpwdntxq5w0@Pidie | Finished establishing watches, now collecting statistics.
ampache_music_center.1.0wpwdntxq5w0@Pidie | 2020-08-07T09:39:49.169832Z mysqld_safe Logging to syslog.
ampache_music_center.1.0wpwdntxq5w0@Pidie | 2020-08-07T09:39:49.197979Z mysqld_safe Logging to '/var/log/mysql/error.log'.
ampache_music_center.1.0wpwdntxq5w0@Pidie | 2020-08-07T09:39:49.354379Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
no trouble about the apache server and traefik since I got him posing up this message even without the mysql database being up :
The requested URL was not found on this server.
Apache/2.4.29 (Ubuntu) Server at ampache.ln Port 80
so I only need to solve the mysql issue. I find out this this solution but it seems that it require to set default mysql password in the docker file : https://stackoverflow.com/questions/46087411/get-stuck-in-mysqld-safe-starting-mysqld-daemon-with-databases-from-usr-local-m
Maybe I'm doing something wrong. any idea to help please ?
I had to make a couple changes to make this work for me.
ADD
, so a cp
command is needed on line 28, not tar
.Recently the ampache develop branch was merged into master.
This broke the ampache-docker build, since dependencies now have to be installed via php-composer. The image currently tagged latest
on dockerhub is broken too, and cannot be installed or used.
I'm using the ampache/ampache:nosql image on armv7 when I try to install ampache
I get the error ( screenshot) that "ampache.cfg.php.dist"is not readable.
I chmoded it to 777:
root@b6d4084a3b20:/# chmod 777 /var/temp/ampache.cfg.php.dist
root@b6d4084a3b20:/# ls -la /var/temp/ampache.cfg.php.dist
-rwxrwxrwx 1 www-data www-data 41850 Aug 20 02:56 /var/temp/ampache.cfg.php.dist
root@b6d4084a3b20:/#
but I'm still getting the error. Any idea how to solve this ?
The automatically downloaded cover art, by using the 'Gather All Art' button at the catalog admin options, is super low resolution. And I do mean, super low. This issue occurs with both the stable and develop branch. I have not made any configuration changes, it is using the default configuration of the docker image. If I upload the cover art manually, then it looks fine.
Hello! I am a klutz and deleted my mysql database from my binded drive! Yes praise me more.
Luckily, I know I am a klutz, and had a backup ready, a couple of weeks old. So I tried putting back the folders where they are meant to be, but Ampache has still issues trying to connect to it.
I am not familiar with how to restore sql databases, nor how they work actually. Last time I had something like this happening on me (yeah it's not the first time...) I had to give up after two weeks of looking around and restart my database from scratch.
I would really really like to get my database back this time though, so this time I am asking for the help of somebody more competent than me.
Here are some probably useful informations:
Version is Ampache 4.4.3-release, running as a docker container in a Ubuntu Server OS, within a VM. It has been working as expected until I messed up.
I activated debug in the ampache.cfg.php file, the logs are full of this:
021-08-04T15:56:04+00:00 [ampache] (Dba) -> Database connection...
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Connection failed: SQLSTATE[HY000] [2002] No such file or directory
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Error: failed to get database handle
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Database connection...
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Connection failed: SQLSTATE[HY000] [2002] No such file or directory
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Error: failed to get database handle
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Database connection...
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Connection failed: SQLSTATE[HY000] [2002] No such file or directory
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Error: failed to get database handle
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Database connection...
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Connection failed: SQLSTATE[HY000] [2002] No such file or directory
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Error: failed to get database handle
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Database connection...
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Connection failed: SQLSTATE[HY000] [2002] No such file or directory
2021-08-04T15:56:04+00:00 [ampache] (Dba) -> Wrong dbh.
I use Portainer to manage my docker containers, its log say this:
=> Using an existing volume of MySQL
2021-08-04 15:53:38,958 INFO Set uid to user 0 succeeded
2021-08-04 15:53:38,960 INFO supervisord started with pid 1
2021-08-04 15:53:39,962 INFO spawned: 'cron' with pid 9
2021-08-04 15:53:39,962 INFO spawned: 'inotifywatch' with pid 10
2021-08-04 15:53:39,966 INFO spawned: 'mysql' with pid 12
2021-08-04 15:53:39,966 INFO spawned: 'apache2' with pid 13
2021-08-04 15:53:40,039 INFO exited: mysql (exit status 0; not expected)
2021-08-04 15:53:41,041 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-08-04 15:53:41,041 INFO success: inotifywatch entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-08-04 15:53:41,041 INFO spawned: 'mysql' with pid 143
2021-08-04 15:53:41,041 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-08-04 15:53:41,090 INFO exited: mysql (exit status 0; not expected)
2021-08-04 15:53:43,093 INFO spawned: 'mysql' with pid 266
2021-08-04 15:53:43,142 INFO exited: mysql (exit status 0; not expected)
2021-08-04 15:53:46,145 INFO spawned: 'mysql' with pid 389
2021-08-04 15:53:46,191 INFO exited: mysql (exit status 0; not expected)
2021-08-04 15:53:47,192 INFO gave up: mysql entered FATAL state, too many start retries too quickly
2021-08-04 15:54:06,464 WARN received SIGTERM indicating exit request
2021-08-04 15:54:06,465 INFO waiting for cron, inotifywatch, apache2 to die
2021-08-04 15:54:06,465 INFO stopped: apache2 (terminated by SIGTERM)
2021-08-04 15:54:06,465 INFO stopped: inotifywatch (terminated by SIGTERM)
2021-08-04 15:54:06,465 INFO stopped: cron (terminated by SIGTERM)
Three bound drives, aside from the media, are outside of the container:
drwxrwxrwx 2 www-data www-data 4096 Aug 4 15:50 config
drwxr-xr-x 2 www-data www-data 4096 Aug 4 15:53 log
drwxr-xr-x 6 www-data www-data 4096 Aug 4 16:02 mysql
And this is the content of mysql folder, mounted as /var/lib/mysql
:
drwxr-xr-x 2 www-data www-data 12288 Aug 4 15:21 ampache
-rwxr-xr-x 1 www-data www-data 16384 Aug 4 15:21 aria_log.00000001
-rwxr-xr-x 1 www-data www-data 52 Aug 4 15:21 aria_log_control
-rwxr-xr-x 1 www-data www-data 976 Aug 4 15:21 ib_buffer_pool
-rwxr-xr-x 1 www-data www-data 12582912 Aug 4 15:21 ibdata1
-rwxr-xr-x 1 www-data www-data 50331648 Aug 4 15:21 ib_logfile0
-rwxr-xr-x 1 www-data www-data 50331648 Aug 4 15:21 ib_logfile1
-rwxr-xr-x 1 www-data www-data 12582912 Aug 4 15:21 ibtmp1
-rwxr-xr-x 1 www-data www-data 0 Aug 4 15:21 multi-master.info
drwxr-xr-x 2 www-data www-data 4096 Aug 4 15:21 mysql
drwxr-xr-x 2 www-data www-data 4096 Aug 4 15:21 performance_schema
-rwxr-xr-x 1 www-data www-data 24576 Aug 4 15:21 tc.log
drwxr-xr-x 2 www-data www-data 4096 Aug 4 15:21 test
going in the container with docker exec -it ampache /bin/bash
I seem able to correctly read and write said folders.
Database Connection and Database Tables return an error state in /test.php.
As always I am most likely missing something obvious, but I still need your help to figure it out.
I hope opening an issue here on Github, here on the Docker-specific fork, is the right thing to do to ask help, if not please redirect me to a more suitable place. If it is...
Please help me 😄
Using the last version with the nosql tagon an arm machine.
After installing the community versions I went to the login page and entered my credentials without any error message. The main page showed up and it seems I'm identified as user 0 (not the username) I added with no rights :
here is the error.log content :
[Wed Sep 02 22:21:02.646942 2020] [negotiation:error] [pid 16] [client 10.0.0.2:39232] AH00687: Negotiation: discovered file(s) matching request: /var/www/login (None could be negotiated).
How to reproduce:
$ git clone https://github.com/ampache/ampache-docker
$ docker build -t olea/ampache ampache-docker/ # configured correct docker group permisions
and get this error:
Step 15 : RUN rm -rf /var/www/* && tar -C /var/www -xf /opt/ampache-master.tar.gz ampache-master --strip=1 && cd /var/www && composer install --prefer-source --no-interaction && chown -R www-data /var/www
---> Running in ac1e1fdfc423
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for maennchen/zipstream-php v0.4.1 -> satisfiable by maennchen/zipstream-php[v0.4.1].
- maennchen/zipstream-php v0.4.1 requires php >= 5.6 -> your PHP version (5.5.9) does not satisfy that requirement.
The command '/bin/sh -c rm -rf /var/www/* && tar -C /var/www -xf /opt/ampache-master.tar.gz ampache-master --strip=1 && cd /var/www && composer install --prefer-source --no-interaction && chown -R www-data /var/www' returned a non-zero code: 2
I've just setup image ID 5225e696553f. It all went smoothly until I was directed to the login page where I was presented with the dreaded:
ACCESS DENIED
You have been redirected to this page because you do not have access to this function
If you believe this is an error please contact an Ampache administrator
This event has been logged
I was using Caddy as the reverse, also tried nginx, neither of their logs revealed anything. I'm aware this has come up before but it didn't appear to me that a definitive caused was identified previously. Any advice would be very welcome.
hey @kuzi-moto if i change the release archive to use the master release file we won't need to add composer at all.
do you have an issue with that?
I know several other issues have been created on this topic, but none of them seem to solve this issue.
I am trying to run Ampache in a Docker container without a database (I am using Postgres, and Ampache doesn't seem to support that, so it seems like my only option)
At step 1, this is what I see:
:nosql
image, there are input fields for database credentials present/var/www/config
dir, which is owned by www-data:www-data
)At step 2, this is what I see:
ampache.cfg.php
based on the ampache.cfg.php.dist
just seems to make Ampache assume that I want to use a database, but didn't provide the correct credentialsThis is the relevant section of my docker-compose.yml
:
ampache:
image: ampache/ampache:nosql
restart: always
ports:
- "1002:80"
volumes:
- "./ampache/config:/var/www/config" # This is owned by www-data:www-data both on the host and in the container
- "/my/music/folder:/media:ro"
Is there an example config file for nosql
that I can copy to the /var/www/config
dir as a quick solution for now?
Instead of using a mysql server inside the container and controlling the /var/lib/mysql directory on the host machine, ampache-docker should support using a mysql server running on the host machine or another container, possibly with an optional docker-compose.yaml.
I installed the Ampache container only to realize that there was no ./themes
directory to edit the theme of Ampache. I thought maybe if I installed it using the docker-compose
method it might work, but while that did give me the ./data
folder, I still don't see a way to edit the theme. Is there no way to edit the theme of Ampache while using this Docker container?
I'm new to Docker and Ampache.
Thanks in advance for clarifying this.
Hello,
I've built a working docker-compose.yml for ampache/ampache:latest which has persistent storage for mysql and configuration files.
It's pretty rough, at the "it works for me" stage. Please take anything that's of use.
https://github.com/adamshand/homelan/tree/master/ampache
Cheers,
Adam.
Hi there,
dockerizing Ampache is a great idea.
I would like to ask if it is possible to create a docker of the current Ampache beta incl. Avahi and the suitable Avahi config. So it would be possible to use Ampache as daapd server.
There was a lot of activity on the ampache/ampache repo recently, but the only update on the docker image happened after 3a5e01b on the ampache-docker repository
now the docker image is 4.0.3 while it could already be on 4.0.4
there either has to be a sort of dummy commit on this repo to trigger the image build or the builds should be set to trigger on update of the ampache repo.
Hello!
I'm getting this error message when trying to run the docker image in my raspberry pi 4
standard_init_linux.go:207: exec user process caused "exec format error"
Raspbian buster
Linux raspberrypi 4.19.86-v7l+ #1283 SMP Fri Nov 29 18:37:40 GMT 2019 armv7l
I'm having issues installing it under WSL2.
I have multiple containers (mostly linuxserver.io ones) in a docker-compose.yml file. The rest of them have their own user/group configured with the PUID/PGID environment variables, which I would like to be able to do for ampache as well.
The ampache section is:
ampache:
image: ampache/ampache:latest
container_name: ampache
restart: unless-stopped
ports:
- 8081:80
volumes:
- /home/adrian/docker/config/ampache/config:/var/www/config
- /home/adrian/docker/config/ampache/log:/var/log/ampache
- /home/adrian/docker/data/media/music:/media
- /home/adrian/docker/config/ampache/mysql:/var/lib/mysql
- /home/adrian/docker/config/ampache/sites-enabled:/etc/apache2/sites-enabled
When starting up, it looks like the ln -s /etc/apache2/sites-available/001-ampache.conf /etc/apache2/sites-enabled/
command in the Dockerfile doesn't work, as /etc/apache2/sites-enabled
is empty. Running it manually afterwards from within the container as root gets it to work.
ampache.cfg.php doesn't get copied/moved at all. I ran mv /var/temp/ampache.cfg.php.dist /var/www/config/ampache.cfg.php.dist
manually to get that to show up.
Then when attempting to run through the install, putting in admin
and the supplied password doesn't seem to work -
Unable to connect to the database: SQLSTATE[HY000] [1045] Access denied for user 'admin'@'localhost' (using password: YES)
I've tried several combinations of removing the container, changing permissions, putting files in manually, etc, but I still can't get it working.
=> An empty or uninitialized MySQL volume is detected in
=> Installing MySQL ...
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h 90497b6cf52c password 'new-password'
Alternatively you can run:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl
Please report any problems at http://mariadb.org/jira
The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
=> Done!
201025 08:14:05 mysqld_safe Logging to syslog.
201025 08:14:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
=> Waiting for confirmation of MySQL service startup
=> Creating MySQL admin user with random password
=> Done!
========================================================================
You can now connect to this MySQL Server using:
mysql -uadmin -ptO6iaaL08Bip -h<host> -P<port>
Please remember to change the above password as soon as possible!
MySQL user 'root' has no password but only allows local connections
========================================================================
2020-10-25 08:14:18,483 INFO Set uid to user 0 succeeded
2020-10-25 08:14:18,486 INFO supervisord started with pid 1
2020-10-25 08:14:19,488 INFO spawned: 'cron' with pid 233
2020-10-25 08:14:19,489 INFO spawned: 'inotifywatch' with pid 234
2020-10-25 08:14:19,490 INFO spawned: 'mysql' with pid 235
2020-10-25 08:14:19,490 INFO spawned: 'apache2' with pid 236
2020-10-25 08:14:20,552 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-10-25 08:14:20,552 INFO success: inotifywatch entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-10-25 08:14:20,552 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-10-25 08:14:20,552 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
@arielelkin are you the owner of the ampache docker org?
I either need the webhooks updated to allow new builds or access to the docker org
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.