YunoHost-Apps / photoprism_ynh

AI-Powered Photos App for the Decentralized Web
GNU Affero General Public License v3.0
7 stars 6 forks source link

Update to latest Version #37

Open Delegator9176 opened 1 year ago

Delegator9176 commented 1 year ago

I saw upstream that we are a little bit behind. The latest updates also contained some security improvements so I would be very happy if someone would like to take care?

https://github.com/photoprism/photoprism/releases/tag/230625-17242fb07

Thanks in advance

Thovi98 commented 1 year ago

Thanks for your issue! Indeed, I expercienced some troubles to update to the latest version of Photoprism on Yunohost. You will have to wait for now until Yunohost supports Bookworm (or I find another way to go).

pirboazo commented 8 months ago

Hi If you have need person to test . I have time for that. I have installed yunohost 12. how i can help ?

I

Thovi98 commented 8 months ago

Thanks for your help offer! If you want to test, the following branch must work (althought I will probably refactor it a bit to ditch the docker extraction and use proper builds).

yunohost app install https://github.com/Thovi98/photoprism_ynh/tree/upgrade-for-bookworm --debug

Thovi98 commented 8 months ago

Or better, use this branch without the docker-extraction but with proper builds:

yunohost app install https://github.com/Thovi98/photoprism_ynh/tree/official_builds --debug

xplosionmind commented 3 months ago

Hey @Thovi98! I was finally able to install Photoprism using the last command you sent. It looks ok! Here is the log!

It would be great if you could update everything to the latest version and push it to the main repository!

Thovi98 commented 3 months ago

Thanks @xplosionmind for your feadback! I will try to update soon.

As you are on Bookworm, is it a test server?

xplosionmind commented 3 months ago

As you are on Bookworm, is it a test server?

Yep! Not prod.

Thovi98 commented 3 months ago

@xplosionmind Could you please try an update?

And if you don’t mind, I would be glad to know if now the upgrade from actual master to my branch is working 😇

xplosionmind commented 3 months ago

Sorry could you type out for me the terminal command I should run? I don’t know how to run an upgrade from a different branch/repo

Thovi98 commented 3 months ago

Yes of course, thanks! It would first be to uninstall photoprism (new version will be able to be multi_instances normally 🤞).

Then just install photoprism like you would do for any app (yunohost app install photoprism).

Finally upgrade the app with yunohost app install https://github.com/Thovi98/photoprism_ynh/tree/official_builds --debug and see if you can still login and average features works.

xplosionmind commented 3 months ago

Thanks for the help, @Thovi98!

I uninstalled photoprism, then I installed it normally (it seems to be working well), and lastly I run yunohost app upgrade app photoprism -u https://github.com/Thovi98/photoprism_ynh/tree/official_builds --debug—I substituted install with upgrade app photoprism -u, because It would not work otherwise.

The last upgrade command failed, see the logs here

Thovi98 commented 3 months ago

Sorry for the late reply! I don’t understand why you have dependencies problems since it works on CI 😐

xplosionmind commented 3 months ago

TBH, I have no idea… How can I help you debug it? If you want, you can send me your SSH key and I can give you access, since it is a clean server I use for testing only.

Thovi98 commented 2 months ago

Thanks for your offer! I’ve updated my instance to bookworm so I could debug. I could successfully update thanks to latest commit. Don’t hesitate to try :)

xplosionmind commented 1 month ago

Hi @Thovi98! Sorry for the late reply. Should I install PhotoPrism normally from the web interface and then update from your repo? Give me instructions and I will follow them.

Thanks a lot for your efforts!