qpanel
qpanel copied to clipboard
Not show any information
I install with docker, but not show any information by my asterisk...
/etc/asterisk/manager.conf `[general] ;displaysystemname = no enabled = yes webenabled = yes port = 5038
[qpanel] permit=0.0.0.0/0.0.0.0 secret=mypass read=command write=command,originate,call,agent`
my dockerfile: `FROM alpine
RUN apk add --no-cache git py3-pip npm py3-babel tini swig gcc alpine-sdk python3-dev mariadb-dev mysql-client &&
cd / &&
git clone -b master --depth=1 https://github.com/roramirez/qpanel.git &&
cd qpanel &&
pip3 install -r requirements.txt &&
pip3 install -r requirements/dbs/mysql.txt &&
cd /qpanel &&
npm install &&
cd /qpanel &&
pybabel compile -d qpanel/translations &&
cd /qpanel &&
cp samples/config.ini-dist config.ini &&
apk del --quiet git npm gcc alpine-sdk python3-dev
ENV QPANEL_USER qpanel ENV QPANEL_PWD mypass ENV ASTERISK_HOST 172.12.20.84 ENV MYSQL_DB asterisk ENV MYSQL_USER root ENV MYSQL_PWD mypass
WORKDIR /qpanel
COPY ./startscript.sh /usr/local/bin/
RUN ln -s /usr/local/bin/startscript.sh RUN chmod +x /usr/local/bin/startscript.sh
RUN /usr/local/bin/startscript.sh
EXPOSE 5000
CMD tini -- python3 app.py`
startscript.sh `#!/bin/sh
sed -e "s/user = username/user = $QPANEL_USER/" -i /qpanel/config.ini sed -e "s/password = password/password = $QPANEL_PWD/" -i /qpanel/config.ini sed -e "s/host = localhost/host = $ASTERISK_HOST/" -i /qpanel/config.ini
sed -e "s/;username = password/eu = mypass/g" -i /qpanel/config.ini`
docker commands:
docker build --tag qpanel:v1 . docker run -d -m 256m --cpus 1 --restart always --name qpanel -p 81:5000 -v /etc/asterisk:/etc/asterisk:ro -v /var/log/asterisk:/var/log/asterisk:ro qpanel:v1
My panel not show anything:
What was your user id and password for login qpanel
in this case it was: user: qpanel pass: senha47.
but I did not see this in your any conf file
I put this information on my manager.conf...
[qpanel] <- username permit=0.0.0.0/0.0.0.0 secret=mypass <- password read=command write=command,originate,call,agent
or did I do wrong? with this data in the asterisk console it appears that qpanel is logging in correctly.
as per the document, you did perform correctly, and as per your above configuration that's all looking fine. what asterisk you are using freepbx, issabel, or core asterisk?.
Asterisk certified/13.21-cert6 with a brazilian interface "snep"
Hello,
Your configuration almost looking fine, and I am facing different issues I am unable to log-in to QPanel web portal. You can see my configuration on the below issue #246. If do you have any idea so pls share. https://github.com/roramirez/qpanel/issues/246
@hmsolutons My conf is practically the same as yours.
But I am still unable to log-in on the qpanel portal I really don't know why it is doing this however I have done all the required steps.
The interesting thing is that I can login, it works fine, but it doesn't load any information from the asterisk. If there was any way to search the generated logs, it would be very good to understand.