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

http was not build unclean shutdown #7

Open
empeje opened this issue Nov 29, 2017 · 1 comment
Open

http was not build unclean shutdown #7

empeje opened this issue Nov 29, 2017 · 1 comment
Labels

Comments

@empeje
Copy link
Member

empeje commented Nov 29, 2017

only the DB start on next boot
when I do docker logs of moodle

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'ServerName' directive globally to suppress this messag
e 
httpd (pid 1) already running

https://askubuntu.com/questions/256013/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-n

quick fix

found the bug
and did a quick fix
cat /boot/autorun  
#!/bin/sh                                                                                                                                      
                                                                                                                                                           
sleep 1                                                                                                                                                     
docker start ole 

sleep 2 
rm -rf /home/pi/apache2 
mkdir -p /home/pi/apache2 
docker-compose -f /home/pi/moodole3.yml -p moodole3 start 

node /root/ole/server.js

AND

cat /home/pi/moodole3.yml  
moodledb_rpi3: 
 image: arm32v7/postgres 
 container_name: moodledb_rpi3 
 ports: 
   - "5432:5432" 
 environment: 
   - POSTGRES_DATABASE=moodle 
   - POSTGRES_USER=moodle 
   - POSTGRES_PASSWORD=moodle 
moodle_rpi3: 
 image: treehouses/moodle:arm 
 container_name: moodle_rpi3
 ports: 
   - "8080:80" 
 links: 
   - moodledb_rpi3 
 volumes: 
   - /home/pi/apache2:/var/run/apache2 
 environment: 
   - MOODLE_URL=http://docker.ole.org:80
@empeje empeje added the bug label Nov 29, 2017
@empeje
Copy link
Member Author

empeje commented Dec 7, 2017

Hi @dogi

I am not a linux wizard, could you help me to where the pid files located?

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

No branches or pull requests

1 participant