qpanel icon indicating copy to clipboard operation
qpanel copied to clipboard

Not show any information

Open yakkobr opened this issue 4 years ago • 10 comments

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: Screenshot 2020-10-12 102552

yakkobr avatar Oct 12 '20 13:10 yakkobr

What was your user id and password for login qpanel

hmsolutons avatar Oct 13 '20 20:10 hmsolutons

in this case it was: user: qpanel pass: senha47.

yakkobr avatar Oct 13 '20 21:10 yakkobr

but I did not see this in your any conf file

hmsolutons avatar Oct 13 '20 21:10 hmsolutons

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.

yakkobr avatar Oct 13 '20 21:10 yakkobr

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?.

hmsolutons avatar Oct 13 '20 21:10 hmsolutons

Asterisk certified/13.21-cert6 with a brazilian interface "snep"

yakkobr avatar Oct 14 '20 18:10 yakkobr

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 avatar Oct 18 '20 16:10 hmsolutons

@hmsolutons My conf is practically the same as yours.

yakkobr avatar Oct 18 '20 23:10 yakkobr

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.

hmsolutons avatar Oct 19 '20 14:10 hmsolutons

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.

yakkobr avatar Oct 22 '20 00:10 yakkobr