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

Container no longer starts #21

Open
UpworksTeam opened this issue Jun 22, 2021 · 1 comment
Open

Container no longer starts #21

UpworksTeam opened this issue Jun 22, 2021 · 1 comment

Comments

@UpworksTeam
Copy link

When building from scratch Container no longer starts
---> Running in c7d2053c6b16 Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed! The command '/bin/sh -c /etc/init.d/mysql start && cd /usr/src/freepbx && echo "Starting Asterisk..." && cp /etc/odbc.ini /usr/src/freepbx/installlib/files/odbc.ini && ./start_asterisk start && sleep 3 && echo "Installing FreePBX..." && ./install -n && echo "Updating FreePBX modules..." && fwconsole chown && fwconsole ma upgradeall && fwconsole ma downloadinstall backup bulkhandler ringgroups timeconditions ivr restapi cel configedit asteriskinfo certman ucp webrtc && /etc/init.d/mysql stop && gpg --refresh-keys --keyserver hkp://keyserver.ubuntu.com:80 && gpg --import /var/www/html/admin/libraries/BMO/9F9169F4B33B4659.key && gpg --import /var/www/html/admin/libraries/BMO/3DDB2122FE6D84F7.key && gpg --import /var/www/html/admin/libraries/BMO/86CE877469D2EAD9.key && gpg --import /var/www/html/admin/libraries/BMO/1588A7366BD35B34.key && chown asterisk:asterisk -R /var/www/html && sed -i 's/www-data/asterisk/g' /etc/apache2/envvars && rm -rf /usr/src/freepbx*' returned a non-zero code: 1 ERROR: Service 'freepbx' failed to build

@UpworksTeam
Copy link
Author

UpworksTeam commented Jun 22, 2021

rm -rf /var/log/* && \
Causes an issue
My fix is :
`
##ADD THIS TO FIX
RUN if ! [ -d /var/log/mysql/ ]; then mkdir /var/log/mysql/; fi
RUN if ! [ -f /var/log/mysql/error.log ]; then touch /var/log/mysql/error.log; fi
RUN chmod -R 777 /var/log/mysql/
#######

FreePBX

RUN /etc/init.d/mysql start && \

`

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

1 participant