LibrePhotos / librephotos-linux

Here you can find the installation script for a local Linux install.
MIT License
46 stars 15 forks source link

Trouble Installing Locally #61

Open cajunjoel opened 1 year ago

cajunjoel commented 1 year ago

After some time running librephotos with 40k images on Docker on Unraid, and with the poor performance on (my untuned unraid) I decided to fire this up on my desktop with the librephotos-linux project. It's.... not entirely working.

I need to delve deeper, but I see the following:

  1. The install-librephotos.sh script added an apt source to my system and tried to install postgresql-13. Aside from the fact that it failed to install the GPG key, and that PostgreSQL was already on my system, I view this as 100% wrong. I accept that I will need to install a bunch of packages to my system because Librephotos is rich and powerful. I prefer that they be listed out in a separate file and have the installer check for them (and validate versions) instead of blindly installing them. But editing my apt sources? That's just bad behavior. I've invited you into my house. Don't rearrange the furniture why you are here. :)

  2. When installing libjpeg-turbo8-dev or libjpeg62-turbo-dev, it only handles Ubuntu and Debian. I added Linuxmint as an alternative to Ubuntu.

  3. The install-librephotos.sh overwrote /etc/nginx/nginx.conf. That's really bad. Don't do that. Make a file in /etc/nginx/sites-available and symlink it to /etc/nginx/sites-enabled.

  4. Something is not running. Port 3000 is not responding, but I don't know what service is meant to respond on that. Maybe it's related to the error ERROR: No matching distribution found for torch==1.7.1+cpu that I got at some point.

I'll keep poking at this, line by line, but I'm afraid that this is going to be quite a challenge to get running.

cajunjoel commented 1 year ago

Further information. Installation of torch==1.7.1+cpu and torchvision==0.8.2+cpu fails because I am on Python 3.10 (and 3.9 is not available) and there is no installation candidate. This occurs at https://github.com/LibrePhotos/librephotos-linux/blob/e9d422b7c1c6ea4418fbee8f97ee184abc2fd533/install-librephotos.sh#L142

The closest version available is torch==1.11.0+cpu and torchvision==0.12.0+cpu. I'm sure there are breaking changes between those two versions but I'll try using them anyway.

derneuere commented 1 year ago

You could also look here to check what is different between versions: https://github.com/LibrePhotos/librephotos-docker/blob/48284324122aa512ae287371f51f0fe25aef3060/backend/base/Dockerfile#L70

It looks like we are using pytorch 2.0.1 at the moment :)

The installation script is also really basic at the moment, feel free to add your suggestions with a pull request.