Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Francesco Belladonna
    @Fire-Dragon-DoL
    Ah! Thank you Damian ;)
    I completely missed the fact I was able to scroll, nice
    legraml
    @legraml

    All I got is this blank screen. Am I missing something?

    I am having the same problem. I used the web interface for setting up "admin" account and set basePath to "/data/photos". When I use "docker-compose run photonix bash" and "ls /data/photos", I get all JPG files listed as root:root and readable. But nothing happens.... any ideas?

    Damian Moore
    @damianmoore
    Hi @legraml, thanks for reporting this issue. I fear it might have been something I recently merged that broke things. I'll hopefully be able to look into it in the next couple of days.
    Damian Moore
    @damianmoore
    Hi @legraml, @JeyakumarCK Think I've fixed this import issue now. If you pull and run again I think it would be a lot better at detecting photos as they arrive.
    jensbrak
    @jensbrak
    I've resumed looking at the possibility to build and run Photonix on RPi. While building it is slow, as you mentioned in #67 it is possible to get beyond Tensorflow at least. But as you also mentioned, problems occur later on.
    Damian Moore
    @damianmoore
    Hi @jensbrak Thanks for having a go. Yes building the other Python wheel packages is slow - my solution to this is I created my own PyPI server and some scripting to upload packages so they only have to built once per architecture. Are you using (or have you seen) this branch?: https://github.com/damianmoore/photonix/compare/raspberry-pi There'll be some other bits I can push to that branch soon. I think it's very close.
    jensbrak
    @jensbrak
    Ah. Well, I haven't tried that branch no - I just went along with master and when encountering Tensorflow issues I manually installed it (2.4.0 actually). Now there seems to be issues building scipy
    There's no real hurry for me, I just remembered I tried to get it up and running but failed to remember the Github issue I was following lol.
    Damian Moore
    @damianmoore
    Cool @jensbrak. These are the packages I've built so far on my PyPI server in case they're of any use: https://pypi.epixstudios.co.uk/packages/
    jensbrak
    @jensbrak
    Allright. I'll see what I can do. I'll try the pi branch too - so far it stopped at tensorflow once again - which I just omit in the build script for the time being.
    Maybe I need to clear the build cache from my previous attempts since it seem to use that.
    I'm down to scipy 1.4.1 build step but most likely that will fail too in the rpi-branch.
    Damian Moore
    @damianmoore
    There are a lot of packages I temporarily removed in that branch. With the current requirements.txt it build and ran for me but obviously started erroring when starting to import photos. I didn't get onto scipy yet - gradually adding the dependencies back in.
    jensbrak
    @jensbrak
    ah, I get it. Allright. And I need to actually get the correct branch to start with lol.
    chbmb
    @CHBMB
    Hi Damian, was chatting to you on reddit about adding extra users via cmd line. I was wondering if I could help, if you tell me the commands, I can submit a PR for the docs and flesh it out a bit if you'd like?
    Damian Moore
    @damianmoore
    Hi @CHBMB, thanks for joining here. Here are some commands but it's more than I'd imagined, so I'm sorry about that. I was starting to write some scripts to simplify this but thought I'd send you these if you're brave enough to try in the mean time. Otherwise, I'll let you know when I've written the scripts. Hopefully the comments make sense but do ask if you are unsure or get stuck.
    # 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()
    chbmb
    @CHBMB
    @damianmoore Looks straightforward enough to me, I'll have a play and knock something together, might take me a week or so as I have to do this sort of thing in the evenings once the kids are in bed.
    Damian Moore
    @damianmoore
    OK, cool. Good luck @CHBMB
    chbmb
    @CHBMB
    @damianmoore With photonix or the kids? :smile:
    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')>