Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Damian Moore
    @damianmoore
    Haha @CHBMB both! :smiley:
    chbmb
    @CHBMB

    Hey, me again, sorry for the long delay, kids got sick one after the other and then work/life got in the way, but finally got a chance to sit down and play around with this the last couple of days, so have a couple of questions.

    Firstly, what's the difference between setting a user as the owner of a library or not? I'm trying to work out which is the right approach for my install.

    Secondly, I've noticed an issue with browser caching. I setup a test install, created a couple of libraries attached to the super user, removed the container, dropped the postgres database then started from fresh, kept the same user/pass combo with a new install, logged in and could still see the two libraries from my previous install in the drop down in the top left. A ctrl-F5 sorted it out, but wondered if this is a known issue (I did take a look on Github and couldn't see anything that jumped out) or whether you want me to file an issue? I'm using Firefox on Ubuntu, is there any other data that would be useful for me to provide if needed?
    chbmb
    @CHBMB
    Probably salient to mention it was the same browser instance running.
    chbmb
    @CHBMB
    OK, I've installed again and answered my first question.
    Damian Moore
    @damianmoore
    Hi @CHBMB, welcome back. You should make one user the owner of a library. It doesn't do much right now but an owner will be able to make changes and invite others to view their library. An user may not be the admin of the entire Photonix installation but they can still be in charge of their own libraries (if the user has given them one/some).
    Thanks for note about first load failing in the browser. I did notice this myself recently. It's to do with the authentication token expiring and not being able to refresh. I'll have a fix for it soon hopefully.
    chbmb
    @CHBMB
    Thank @damianmoore, I will plough on with the testing then and I'm documenting as I go along, so should be able to provide some instructions that are easy to follow for others who want to setup a multiuser setup.
    Damian Moore
    @damianmoore
    Amazing - thank you @CHBMB
    Jules Bertholet
    @Jules-Bertholet
    Hello, I've packaged Photonix for YunoHost: https://github.com/YunoHost-Apps/photonix_ynh
    The package integrates LDAP authentication, and automatically sets up libraries for new users
    Damian Moore
    @damianmoore
    Hi @Jules-Bertholet thanks for letting us know. I'd not heard about this platform before so just reading up a bit on it. Is there a review process before it makes it into their catalogue - I searched but can't see it yet? Is it built from our Docker setup? Also I'm presuming the ARM build won't work until ours is complete?
    Jules Bertholet
    @Jules-Bertholet
    There is a review process, but it's not very involved and the package has already passed it. The package does not use Docker; Photonix runs directly on the host OS. ARM is untested but should work.
    Damian Moore
    @damianmoore
    OK, thanks @Jules-Bertholet that's interesting. I'll have to try out the ARM version. I've spend days trying to get matplotlib dependency to build against the right version of numpy. Dependencies take a long time to build because of binary wheels not existing for ARM on PyPI. I was hoping pip --no-build-isolation would help or a pyproject.toml file with oldest-supported-numpy but no luck yet :(
    Jules Bertholet
    @Jules-Bertholet
    To be clear, by "ARM should work" I meant "I know of no reason why it wouldn't work." I haven't put any real thought into it
    Damian Moore
    @damianmoore
    Thanks @Jules-Bertholet, I'll give it a go anyway - worth a try at this point.
    Maarten
    @maartenofzo_gitlab
    Hi, trying to install the photonix app via docker but getting a lot of "graphql.error.located_error.GraphQLLocatedError: Error decoding signature
    " errors in the log, and the application doesn't work. Seems the demo page has the same issues. Anyone knowing what's up?
    Damian Moore
    @damianmoore
    Hi @maartenofzo_gitlab, thanks for reporting this. I noticed this on the demo site yesterday. I think it's related to some authentication issues I've run into lately and thought I'd fixed. It's kind of a intermittent timing thing when it has to refresh the JWT token. Quite often, opening an incognito window/clearing cookies fixes it. I have an idea to fix it so will have another go after work today.
    Maarten
    @maartenofzo_gitlab
    Thanks, I tried to restart services and clear cookies, incognito, it seemed to work/not work randomly. No rush in fixing, was trying it out. Definitely looks promising. Been googling all day for photo hosting services and photonix seems the only one to tick all the boxes on the roadmap thus far.
    Damian Moore
    @damianmoore
    Hi @maartenofzo_gitlab. I've just pushed a fix in the latest Docker image (0.6.0). The problem came about as I was trying to make things more secure by randomizing security keys for session tokens etc. There are multiple web worker processes running in the production Docker image and each one was getting a different key. I hope you find Photonix to be useful. We're just getting into some performance optimisations for large photo collections so stay tuned if you find any bugs around that.
    ippocratis
    @ippocratis
    Hello every one
    Just found the app and builded the server . It's great to find a self hosted photo manager with native android app.
    Is it possible to change the path to cache on the Docker compose?
    Damian Moore
    @damianmoore
    Hi @ippocratis and thanks for saying hello. You should be able to change this line from the example docker-compose file: https://github.com/photonixapp/photonix/blob/master/docker/docker-compose.example.yml#L33
    The fist bit before the colon is where the host machine's folder is so you could change it to something like - /tmp/photonix-cache:/data/cache.
    ippocratis
    @ippocratis
    Thanks for the answer. So I'm running photonix on a raspberry pi 400 and it's having some real hard time to index a large collection(~150gb) leading to 100% cpu and ram usage and eventually to system freeze. I'm guessing it's the number of workers that is to much of a job for the raspberry to handle? I saw a similar issue on git here photonixapp/photonix#83 and searched for worker keyword in the source. Is it safe to change the number of workers in classification.py from 4 to 2 or 1 . Is there any other sort of a workaround?
    Damian Moore
    @damianmoore
    Screenshot from 2021-05-18 11-09-02.png
    Damian Moore
    @damianmoore
    Hi @ippocratis. I would recommend going to the settings (shown above) and then turning off the bottom 4 analysis switches to start with. Then copy your photos in place to import and see if they all load. You can then turn on one analyser at a time and see which one causes problems. They are listed in order of how much processing they take - color analysis being very quick and object detection taking over 10 seconds per photo. May also be worth loading a small selection of photos first to ensure everything functions. I realise we have quite a bit of optimisation left to do with regard to large photo libraries.
    ReuZ
    @reuz
    Hi @damianmoore . First thank you for the software. I have been looking for a new photo management software portal and came accross your software. However. I get the following error when working with it.
    future: <Task finished name='Task-1' coro=<Command.watch_photos.<locals>.check_libraries() done, defined at /srv/photonix/photos/management/commands/watch_photos.py:61> exception=InotifyError('Call failed, errno 28: No space left on device')>
    The space on the device seems to be ok so I do not get why this is going wrong.
    metril
    @metril
    test
    Is it possible to have multiple libraries in Photonix?
    Per the documentation, it looks like I can have multiple libraries, but nothing about how I can create them.
    Jules Bertholet
    @Jules-Bertholet
    @metril It's possible, but they have to be created via command line
    # Launch Python shell in the running Docker container
    docker exec -ti photonix python photonix/manage.py shell
    
    # Import Django models
    from photonix.accounts.models import User
    from photonix.photos.models import Library, LibraryUser, LibraryPath
    
    # Create a user
    user = User(username='YOUR_USERNAME')
    user.set_password('YOUR_PASSWORD')
    user.save()
    
    # Create a library
    library = Library(name='YOUR_NEW_LIBRARY_NAME', classification_color_enabled=True, classification_location_enabled=True, classification_style_enabled=True, classification_object_enabled=True, setup_stage_completed='Th')
    library.save()
    
    # Create a path attached to the library so files can be imported
    library_path = LibraryPath(library=library, type='St', backend_type='Lo', path='YOUR_PATH_INSIDE_DOCKER_CONTAINER', watch_for_changes=True)
    library_path.save()
    
    # Link the user created above to the library created above
    library_user = LibraryUser(library=library, user=user, owner=True)  # owner=True only if this new library user is going to be in charge of managing it
    library_user.save()
    
    # Alternatively, if you want to be the owner in charge, set owner=False above and then also run this
    owner_user = User.objects.get(username='demo')
    library_user = LibraryUser(library=library, user=owner_user, owner=True)
    library_user.save()
    metril
    @metril
    Thank you
    I started scrolling up and then I found the syntax. Much appreciated!
    ScuttleSE
    @ScuttleSE
    hm...evaluating a bunch of different self-hosted image "libraries"...and I'm looking at photonix, but can't really make heads or tails of it...when I look at the live demo there doesn't seem to be a way to have an Album of pictures
    is that true?
    Damian Moore
    @damianmoore
    Hi @ScuttleSE, thanks for getting in touch. You're right, we don't have an albums feature right now. We've been primarily focussed on tagging as a way of organising but have decided we will add albums soon (some people like that there currently aren't albums). The main idea behind Photonix has been that the user shouldn't have to spend time organising their photos to be able to find what they are looking for. Hope this helps.
    Damian Moore
    @damianmoore
    We got our first review (that I know of) on a podcast: https://linuxunplugged.com/409 . Not the most flattering review but nothing we can't improve on. Good to be the first solution mentioned and it means we're doing well at getting the word out. Segment starts at 23mins, Photonix is at 42mins.
    We'll be looking at getting a designer/UX engineer soon to tidy things up.
    Damian Moore
    @damianmoore
    Thanks for posting @Jules-Bertholet. We're getting good traffic from that article today. On a related note, our latest blog post details that we do actually have face recognition now: https://photonix.org/blog/may-2021-roundup/
    Jules Bertholet
    @Jules-Bertholet
    Yes, I noticed that little error in the article
    Damian Moore
    @damianmoore
    Would have been nice to have timed it better but oh well.
    zutart
    @zutart:mysmatrix.zutart.xyz
    [m]

    Afternoon everyone! Bit stumped so I'm hoping you all can help me out. Just tried launching Photonix for the first time in my stack and while it appears everything is set up properly per the documentation, I cannot get logged in at all. Every time I try to authenticate with the credentials I set up through the python script, it just hands at Loading... and never goes anywhere. Logs just show the same thing over and over

    today at 1:45:51 PM {GatewayIP} - - [23/Jun/2021:17:45:51 +0000] "POST /graphql HTTP/1.1" 400 154 "https://{domain}/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"

    i'm running this behind traefikv2 in case that matters at all
    thanks in advanced to anyone who may be able to assist!
    Damian Moore
    @damianmoore
    Hi @zutart:mysmatrix.zutart.xyz, thanks for getting in touch. Did you create your username/password and library via the onboarding screens (in the browser)? There are some commands here https://photonix.org/docs/users_libraries/ but they will only create non-admin users.