akaunting / docker

Docker Image for Akaunting
https://github.com/akaunting/akaunting
GNU General Public License v3.0
182 stars 86 forks source link

issue on installing #64

Closed killmasta93 closed 2 years ago

killmasta93 commented 2 years ago

Hi currently trying to install but when i get to the wizard part it gets stuck image

checked the logs everything seems to be fine


192.168.30.7 - - [09/May/2022:16:28:48 +0000] "POST /auth/login HTTP/1.1" 200 1320 "http://192.168.3.187:8383/auth/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"

192.168.30.7 - - [09/May/2022:16:28:49 +0000] "GET /1/wizard HTTP/1.1" 200 48870 "http://192.168.3.187:8383/auth/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"

192.168.30.7 - - [09/May/2022:16:28:50 +0000] "GET /public/js/wizard/wizard.js?v=2.1.35 HTTP/1.1" 200 500370 "http://192.168.3.187:8383/1/wizard" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"

192.168.30.7 - - [09/May/2022:16:28:51 +0000] "GET /public/js/wizard/wizard.js?v=2.1.35 HTTP/1.1" 200 500370 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"

192.168.30.7 - - [09/May/2022:16:29:40 +0000] "-" 408 0 "-" "-"
hefevice commented 2 years ago

I have the same problem. I think the cause is whatever module creates the /1/Wizard page does not prepend the base url to one of the embedded Javascript calls to livewire as shown below (my base url changed to \<baseurl>). Preceeding call shown to indicate the normal format of \<script src=

<script src="http://<baseurl>/public/js/wizard/wizard.js?v=2.1.35"></script>
...
<script src="public/vendor/livewire/livewire.js?id=d9e06c155e467adb5de2...

Browser developer tools indicate that this causes wizard.js to throw a "Connection refused" exception (probably because relative paths are disabled).

I am new to the application and I haven't been able to find whatever generates this Wizard page.

hefevice commented 2 years ago

Found a fix.

The Livewire configuration sets the base url from the environment variable ASSET_URL, which is not set up in any of the configuration.

You need to add the environment variable ASSET_URL in run.env set to the same as APP_URL (or add ASSET_URL = $APP_URL).

killmasta93 commented 2 years ago

Thanks for the reply, but the asset_URL is not in the run.env would i need to add it?

ccantrell72 commented 2 years ago

Put APP_URL=http://localhost:8080 in run.env instead of just localhost

killmasta93 commented 2 years ago

thanks for the reply, not im getting this error image

MohammedAl-Mahdawi commented 2 years ago

Hi,

Unfortunately, I'm unable to reproduce this, try to get help for your particular setup using another support channels or on Stack Overflow.

Thank you!