Closed elspru closed 2 months ago
Well I couldn't get caddy to return anything from a curl request when it was setup even with http.
but yeah now I'm having a strange issue where I've defined the parts, and the locations. but when I try to add new stock, it says it can't find any parts, so I'm not able to add any stock.
what I'm getting from my log is: 2602:fcd3:102:a884::e7f3 - - [07/May/2024:10:59:46 +0000] "GET /api/part/?virtual=false&offset=0&limit=25 HTTP/1.0" 200 52 "https://lwat.liberit.ca/stock/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" 2602:fcd3:102:a884::e7f3 - - [07/May/2024:10:59:48 +0000] "GET /api/part/?virtual=false&offset=0&limit=25 HTTP/1.0" 200 52 "https://lwat.liberit.ca/stock/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"[Screenshot 2024-05-07 at 07-04-04 InvenTree Stock.png][Screenshot 2024-05-07 at 07-04-28 InvenTree Stock Location - 1138 3rd Ave West_West Greenhouse_Top Bench_Tray 1 -.png][Screenshot 2024-05-07 at 07-03-42 InvenTree Part List.png]
please help I donno what to do. can't really use it if I can't add stock. is this is a common issue or could it be related to the proxying somehow?
--
Andrii (Logan) Zvorygin, Lyis Food Forestry https://lyis.caGlobal Distributist https://distributist.org LiberIT Liberty Information Technology Services http://liberit.ca
We All are One Being https://1being.org Encrypted email key fingerprint: BABA 36D9 8956 A9EA 0C5E (pubkey) I am a piece of dust, on a planet, in a vast cosmos, within One Infinite Creation. If you don't like receiving emails from me, please respond to this email with "Unsubscribe" as the first word of the email. As I found you, I leave you glorying in the love and in the light of the One Infinite Creator. Go forth therefore rejoicing in the Power and in the Peace of the One Infinite Creator.
On Tuesday, May 7th, 2024 at 5:53 AM, Matthias Mair @.***> wrote:
- caddy support http fine if configured by passing a http site url instead of https
- Thank you for your pointing out how well behaved apps work - I look forward to your PR making inventree well behaved
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
whoops sorry it seems I was making subcategories instead of parts sorry about that. got it all sorted out. have a great day!
--
Andrii (Logan) Zvorygin, Lyis Food Forestry https://lyis.caGlobal Distributist https://distributist.org LiberIT Liberty Information Technology Services http://liberit.ca
We All are One Being https://1being.org Encrypted email key fingerprint: BABA 36D9 8956 A9EA 0C5E (pubkey) I am a piece of dust, on a planet, in a vast cosmos, within One Infinite Creation. If you don't like receiving emails from me, please respond to this email with "Unsubscribe" as the first word of the email. As I found you, I leave you glorying in the love and in the light of the One Infinite Creator. Go forth therefore rejoicing in the Power and in the Peace of the One Infinite Creator.
On Tuesday, May 7th, 2024 at 7:06 AM, Andrii Zvorygin @.***> wrote:
Well I couldn't get caddy to return anything from a curl request when it was setup even with http.
but yeah now I'm having a strange issue where I've defined the parts, and the locations. but when I try to add new stock, it says it can't find any parts, so I'm not able to add any stock.
what I'm getting from my log is: 2602:fcd3:102:a884::e7f3 - - [07/May/2024:10:59:46 +0000] "GET /api/part/?virtual=false&offset=0&limit=25 HTTP/1.0" 200 52 "https://lwat.liberit.ca/stock/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0" 2602:fcd3:102:a884::e7f3 - - [07/May/2024:10:59:48 +0000] "GET /api/part/?virtual=false&offset=0&limit=25 HTTP/1.0" 200 52 "https://lwat.liberit.ca/stock/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"[Screenshot 2024-05-07 at 07-04-04 InvenTree Stock.png][Screenshot 2024-05-07 at 07-04-28 InvenTree Stock Location - 1138 3rd Ave West_West Greenhouse_Top Bench_Tray 1 -.png][Screenshot 2024-05-07 at 07-03-42 InvenTree Part List.png]
please help I donno what to do. can't really use it if I can't add stock. is this is a common issue or could it be related to the proxying somehow?
--
Andrii (Logan) Zvorygin, Lyis Food Forestry https://lyis.caGlobal Distributist https://distributist.org LiberIT Liberty Information Technology Services http://liberit.ca
We All are One Being https://1being.org Encrypted email key fingerprint: BABA 36D9 8956 A9EA 0C5E (pubkey) I am a piece of dust, on a planet, in a vast cosmos, within One Infinite Creation. If you don't like receiving emails from me, please respond to this email with "Unsubscribe" as the first word of the email. As I found you, I leave you glorying in the love and in the light of the One Infinite Creator. Go forth therefore rejoicing in the Power and in the Peace of the One Infinite Creator.
On Tuesday, May 7th, 2024 at 5:53 AM, Matthias Mair @.***> wrote:
- caddy support http fine if configured by passing a http site url instead of https
- Thank you for your pointing out how well behaved apps work - I look forward to your PR making inventree well behaved
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
This issue seems stale. Please react to show this is still important.
Please verify that this bug has NOT been raised before.
Describe the bug*
inventree-server only listens on ipv4 because guinicorn is -b 0.0.0.0:8000 and I use a reverse proxy caddy on a cheap VPS and host my actual services at home to cut down on VPS costs. for it to listen on ipv6 it needs to be: CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b [::]:8000 --chdir ./InvenTree But yeah I did that and then realized that you don't just use your Caddyfile for SSL but also for static file hosting, and caddy is just like so hyper SSL that it wont do like regular http.
So I needed to replace the caddy proxy with nginx
and put in an nginx.conf inventree-proxy: container_name: inventree-proxy image: nginx:alpine restart: always command: /bin/sh -c "mkdir -p /var/log/nginx && nginx -g 'daemon off;'" depends_on:
ports:
env_file:
Steps to Reproduce
curl the ipv6 address of the invertree server and it rejects it
Expected behaviour
that I can setup my own simple caddy proxy on the vps host, and that invetree will be a well behaved simple http app like pretty much everyone else makes.
Deployment Method
Version Information
used the stable version
Please verify if you can reproduce this bug on the demo site.
Relevant log output