InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Question on installation

Open Jamespcman opened this issue 1 year ago • 18 comments

Please verify that this bug has NOT been raised before.

  • [x] I checked and didn't find a similar issue

Describe the bug*

I have everything installed seems properly. It works perfectly fine if you use the localhost. But when you start connecting through the IP address from a remote computer login for the old interface will not login and is missing pictures on the newer interface. Any help would be appreciated.

Steps to Reproduce

I have everything installed seems properly. It works perfectly fine if you use the localhost. But when you start connecting through the IP address from a remote computer login for the old interface will not login and is missing pictures on the newer interface. Any help would be appreciated.

Expected behaviour

Everything seems properly installed. It works perfectly fine if you use the localhost. But when you start connecting through the IP address from a remote computer login for the old interface will not login and is missing pictures on the newer interface. Any help would be appreciated.

Deployment Method

  • [x] Docker
  • [ ] Package
  • [ ] Bare metal
  • [ ] Other - added info in Steps to Reproduce

Version Information

17.0

Please verify if you can reproduce this bug on the demo site.

  • [ ] I can reproduce this bug on the demo site.

Relevant log output


Jamespcman avatar Jan 04 '25 21:01 Jamespcman

I have encontered the same issue on Ubuntu. On Debian 11 all is fine. You should also check configuration settings. particulary samesite cookie

gab696 avatar Jan 04 '25 22:01 gab696

I have encontered the same issue on Ubuntu. On Debian 11 all is fine. You should also check configuration settings. particulary samesite cookie

Where would I find that at in the configuration file?

Jamespcman avatar Jan 04 '25 23:01 Jamespcman

You need this parameter INVENTREE_COOKIE_SAMESITE=False https://docs.inventree.org/en/latest/start/config/#server-access

gab696 avatar Jan 04 '25 23:01 gab696

You need this parameter INVENTREE_COOKIE_SAMESITE=False https://docs.inventree.org/en/latest/start/config/#server-access

What config file would I find that in? I’m relatively new at this. I am still on the path of learning. thank you in advance.

Jamespcman avatar Jan 05 '25 00:01 Jamespcman

@Jamespcman if you are running via docker you can set this variable in your .env file.

SchrodingersGat avatar Jan 05 '25 00:01 SchrodingersGat

@Jamespcman if you are running via docker you can set this variable in your .env file.

Thank you, I’ll give it a whirl and let you know. such a great program, keep up the good work.

Jamespcman avatar Jan 05 '25 01:01 Jamespcman

@Jamespcman if you are running via docker you can set this variable in your .env file.

Thank you, I’ll give it a whirl and let you know. such a great program, keep up the good work.

@SchrodingersGat i’ve tried several hours to locate the .env file to make the changes with no avail. I apologize. I’m trying to learn this code. If you can provide a path. I’m using doctor with. Ubuntu 20.4.

Jamespcman avatar Jan 05 '25 04:01 Jamespcman

If you followed the docker setup guide then you would have downloaded the .env file into a directory somewhere on your machine. It is in the same directory as the docker-compose.yml file.

SchrodingersGat avatar Jan 05 '25 07:01 SchrodingersGat

If you followed the docker setup guide then you would have downloaded the .env file into a directory somewhere on your machine. It is in the same directory as the docker-compose.yml file. @SchrodingersGat I was able to find the file added the two lines still same issue. Image

Jamespcman avatar Jan 05 '25 18:01 Jamespcman

you should restart the server and delete the browser cache

gab696 avatar Jan 05 '25 20:01 gab696

you should restart the server and delete the browser cache

@gab696 i’ve done that repeatedly and it still not working Image Image

Jamespcman avatar Jan 05 '25 21:01 Jamespcman

@Jamespcman why are you using the docker.dev.env file - you should be using the .env file.

As per the docker setup guide - https://docs.inventree.org/en/stable/start/docker_install/#required-files

SchrodingersGat avatar Jan 05 '25 22:01 SchrodingersGat

@Jamespcman why are you using the docker.dev.env file - you should be using the .env file.

As per the docker setup guide - https://docs.inventree.org/en/stable/start/docker_install/#required-files

@SchrodingersGat got it working, thank you for your help. Appreciate your patience. I’m not 100%. sure how I got it working but I’ll just reading up.

Jamespcman avatar Jan 06 '25 01:01 Jamespcman

We are having the same issue +(labels also don’t work), we are using bare metal, latest version. Any idea how to fix the issue?

spitdavid avatar Jan 06 '25 13:01 spitdavid

@spitdavid are you not able to see any uploaded images in the user interface?

SchrodingersGat avatar Jan 06 '25 22:01 SchrodingersGat

@spitdavid are you not able to see any uploaded images in the user interface?

Yes, also we can't login in to the old UI, just the new one. And on top of it, we can't print labels or export xls.

spitdavid avatar Jan 08 '25 07:01 spitdavid

@spitdavid did you adjust your INVENTREE_COOKIE_SAMESITE value as specified in the thread above? That should address both your problems

SchrodingersGat avatar Jan 08 '25 11:01 SchrodingersGat

@spitdavid did you adjust your INVENTREE_COOKIE_SAMESITE value as specified in the thread above? That should address both your problems

Helped. Thanks a lot!

spitdavid avatar Jan 08 '25 12:01 spitdavid