Uninstalling Photoprism Removed Application View

My YunoHost server
Hardware: Dell R720
YunoHost version: 11.0.7 (testing).
I have access to my server : SSH, direct access
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : not really. I have a RAID server, where /home = ~2TB and /var = 20TB so most of my storage needs to be on /var

Hello!

I made a mistake when I configured my Photoprisim to use /var/Multimedia/Pictures for its library but also had its cache in /var/Multimedia/Pictures/photoprism/cache. Basically it just reindexed itself forever. I’ve now made a /var/Multimedia/Other/photoprism/cache folder, and then I deleted Photoprism and all of the files I could find related to it in /home and /var.

The uninstall had an error: https://paste.yunohost.org/raw/sugujegaye

I went to reinstall photoprism and also ran into a similar error: https://paste.yunohost.org/raw/epitexeqon

It may be worth saying: I initally installed Photoprism on photos.maindomain.tld/prism but had to move it to photos.maindomain.tld becuase I kept getting the login page for the old app that was installed at that domain (photoview)

I’ve just noticed this additional issue—all my applications are missing from the webadmin:

Please share the log of the “permission create” step related to that app install attempt.

Please also share the ouputs of:

sudo yunohost app list
sudo ls /etc/yunohost/apps

Logs

Sure, here it is. You can see from here and below that it thinks photoprisim is still installed: https://paste.yunohost.org/raw/ocojurudew

The delete operation also had a failed permssion: https://paste.yunohost.org/raw/yazafuboge

Commands:

apps: 
  0: 
    description: Network-wide ads & trackers blocking DNS server
    domain_path: util.domain.tld/adguard
    id: adguardhome
    name: AdGuard Home
    version: 0.107.7~ynh1
  1: 
    description: Archiving solution to collect, save, and view sites you want to preserve offline
    domain_path: archive.domain.tld/
    id: archivebox
    name: ArchiveBox
    version: 0.6.2~ynh9
  2: 
    description: Automatic backups
    id: archivist
    name: Archivist
    version: 1.3.2~ynh1
  3: 
    description: Audiobook server for managing and playing your audiobooks
    domain_path: audiobook.domain.tld/
    id: audiobookshelf
    name: Audiobookshelf
    version: 2.0.22~ynh1
  4: 
    description: Open-source document-oriented NoSQL database
    domain_path: domain.tld/obssync
    id: couchdb
    name: CouchDB
    version: 3.1.1~ynh3
  5: 
    description: Online diagram software for making flowcharts, process diagrams, org charts, UML, ER and network diagrams
    domain_path: util.domain.tld/diagram
    id: diagramsnet
    name: Diagrams.net
    version: 20.0.4~ynh1
  6: 
    description: Real-time collaborative spreadsheet editor
    domain_path: office.domain.tld/
    id: ethercalc
    name: EtherCalc
    version: 20201228~ynh5
  7: 
    description: Online editor providing collaborative editing in real-time
    domain_path: util.domain.tld/pad
    id: etherpad_mypads
    version: 1.8.17~ynh2s
  8: 
    description: Web File Browser
    domain_path: util.domain.tld/filebrowser
    id: filebrowser
    name: Filebrowser
    version: 2.22.2~ynh1
  9: 
    description: Self-hosted financial manager
    domain_path: money.domain.tld/firefly
    id: firefly-iii
    name: Firefly III
    version: 5.7.9~ynh1
  10: 
    description: Self-hosted alternative to Trello, Notion, and Asana
    domain_path: board.domain.tld/
    id: focalboard
    name: Focalboard
    version: 7.0.1~ynh1
  11: 
    description: Publishing, memberships, subscriptions and newsletters platform
    domain_path: space.domain.tld/blog
    id: ghost
    name: Ghost
    version: 5.2.2~ynh1
  12: 
    description: A modern open source flat-file CMS
    domain_path: util.domain.tld/grav
    id: grav
    name: Grav
    version: 1.7.33~ynh1
  13: 
    description: Web-based groceries & household management solution for your home
    domain_path: food.domain.tld/
    id: grocy
    name: Grocy
    version: 3.3.1~ynh1
  14: 
    description: Collaborative editor to work on notes written in Markdown
    domain_path: util.domain.tld/hedge
    id: hedgedoc
    name: HedgeDoc
    version: 1.9.3~ynh1
  15: 
    description: Home automation platform
    domain_path: ha.domain.tld/
    id: homeassistant
    name: Home Assistant
    version: 2022.6.7~ynh1
  16: 
    description: Improved File Manager
    domain_path: domain.tld/ifm
    id: ifm
    name: IFM
    version: 2.6.3~ynh3
  17: 
    description: Media System that manage and stream your media.
    domain_path: jellyfin.domain.tld/
    id: jellyfin
    name: Jellyfin
    version: 10.8.0~ynh1
  18: 
    description: Multilingual grammar, style, and spell checker (API)
    domain_path: lang.domain.tld/
    id: languagetool
    name: LanguageTool server
    version: 5.7~ynh1
  19: 
    description: A drop-in, low-overhead monitoring web dashboard for GNU/linux machine.
    domain_path: db.domain.tld/dash
    id: linuxdash
    name: Linux-Dash
    version: 2.0~ynh3
  20: 
    description: Online spreadsheet that is powerful, simple to configure
    domain_path: util.domain.tld/luckysheet
    id: luckysheet
    name: Luckysheet
    version: 2.1.13~ynh1
  21: 
    description: Offers a user experience similar to virtual machines but using Linux containers instead.
    id: lxd
    name: LXD
    version: 5.2~ynh2
  22: 
    description: Tool for making mind maps
    domain_path: domain.tld/mindmaps
    id: mindmaps
    name: Mindmaps
    version: 0.0.20201010~ynh2
  23: 
    description: High Performance, Kubernetes Native Object Storage
    domain_path: minio.domain.tld/
    id: minio
    name: MinIO server
    version: 2022.05.19~ynh1
  24: 
    description: A monitoring tools
    domain_path: db.domain.tld/monitorix
    id: monitorix
    name: Monitorix
    version: 3.12.0~ynh2
  25: 
    description: Workflow Automation Tool. Easily automate tasks across different services
    domain_path: util.domain.tld/n8n
    id: n8n
    name: n8n
    version: 0.138.0~ynh1
  26: 
    description: Real-time performance and health monitoring
    domain_path: db.domain.tld/netdata
    id: netdata
    name: NetData
    version: 1.33.0~ynh2
  27: 
    description: No-code platform that turns any database into a smart spreadsheet
    domain_path: noco.domain.tld/
    id: nocodb
    name: NocoDB
    version: 0.90.11~ynh1
  28: 
    description: Web publication system for universities, galleries, libraries, archives, and museums
    domain_path: omeka.domain.tld/
    id: omeka-s
    name: Omeka S
    version: 3.2.1~ynh1
  29: 
    description: AI-Powered Photos App for the Decentralized Web
    id: photoprism
    name: Photoprism
    version: 2022.06.17~ynh1
  30: 
    description: AI-Powered Photos App for the Decentralized Web
    id: photoprism__2
    name: Photoprism
    version: 2022.06.17~ynh1
  31: 
    description: Manage MySQL databases over the web
    domain_path: db.domain.tld/phpmyadmin
    id: phpmyadmin
    name: phpMyAdmin
    version: 5.1.3~ynh1
  32: 
    description: Customizable PHP script that displays information about your system nicely
    domain_path: db.domain.tld/phpsysinfo
    id: phpsysinfo
    name: PhpSysInfo
    version: 3.4.1~ynh1
  33: 
    description: A web interface for the Docker engine management
    domain_path: portainer.domain.tld/
    id: portainer
    name: Portainer
    version: 1.0
  34: 
    description: Create a redirection or a proxy to another path
    domain_path: changes.domain.tld/
    id: redirect
    name: ChangeDetector.io
    version: 1.0.1~ynh1
  35: 
    description: Create a redirection or a proxy to another path
    domain_path: domain.tld/n8n
    id: redirect__2
    name: Redirect
    version: 1.0.1~ynh1
  36: 
    description: Emulate videogames system and play videogames through your web browser
    domain_path: util.domain.tld/retroarch
    id: retroarch
    name: Retroarch Web Player
    version: 1.10.3~ynh1
  37: 
    description: RSS and Atom feed generator for websites that don't have one
    domain_path: util.domain.tld/rss-bridge
    id: rss-bridge
    name: RSS-Bridge
    version: 2021.04.25~ynh1
  38: 
    description: Web based AJAX terminal emulator
    domain_path: util.domain.tld/ssh
    id: shellinabox
    name: Shell In A Box
    version: 2.21~ynh2
  39: 
    description: News feed (RSS/Atom) reader and aggregator
    domain_path: util.domain.tld/ttrss
    id: ttrss
    name: Tiny Tiny RSS
    version: 20220606~ynh1
  40: 
    description: Open source powerful wiki app built on Node.js, Git and Markdown
    domain_path: wikijs.domain.tld/
    id: wikijs
    name: Wiki.js
    version: 2.5.285~ynh1

adguardhome  audiobookshelf  ethercalc        firefly-iii  grav      homeassistant  languagetool  lxd       monitorix  nocodb      photoprism__2  portainer    retroarch    ttrss                             
archivebox   couchdb         etherpad_mypads  focalboard   grocy     ifm            linuxdash     mindmaps  n8n        omeka-s     phpmyadmin     redirect     rss-bridge   wikijs                            
archivist    diagramsnet     filebrowser      ghost        hedgedoc  jellyfin       luckysheet    minio     netdata    photoprism  phpsysinfo     redirect__2  shellinabox  

sorry — forgot to hit the reply button in case you were waiting for a notification

Thanks!

Wow that’s quite an unhelpful log. xD

Can you check that your photos.maindomain.tld domain is registered within YunoHost? If not, recreate it. If yes, delete and recreate it. Try uninstalling Photoprism again afterwards.

I know right!

I tried that already. (Was able to delete domain and recreate)

I still can’t get to the applications to uninstall it. Would you know the CLI command?

yunohost app remove photoprism

1 Like

results

Info: Removing photoprism...
Info: [+...................] > Loading installation settings...
Info: [#++.................] > Stopping and removing the systemd service...
Info: [###+................] > Removing logrotate configuration...
Info: [####++..............] > Removing the MySQL database...
Warning: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Info: [######+.............] > Removing app main directory...
Warning: ynh_secure_remove called with empty argument, ignoring.
Info: [#######++...........] > Removing NGINX web server configuration...
Info: '/etc/nginx/conf.d/.d/photoprism.conf' wasn't deleted because it doesn't exist.
Info: [#########+..........] > Removing dependencies...
Warning: E: Unable to locate package photoprism-ynh-deps
Info: [##########++........] > Removing various files...
Info: '/var/log/photoprism' wasn't deleted because it doesn't exist.
Info: [############+.......] > Removing the dedicated system user...
Warning: The user photoprism was not found
Info: [#############++.....] > Removal of photoprism completed
Success! photoprism uninstalled

edit: I still cannot see the applications

I ran this again

adguardhome  audiobookshelf  ethercalc        firefly-iii  grav      homeassistant  languagetool  lxd       monitorix  nocodb         phpmyadmin  redirect     rss-bridge   wikijs                            
archivebox   couchdb         etherpad_mypads  focalboard   grocy     ifm            linuxdash     mindmaps  n8n        omeka-s        phpsysinfo  redirect__2  shellinabox                                    
archivist    diagramsnet     filebrowser      ghost        hedgedoc  jellyfin       luckysheet    minio     netdata    photoprism__2  portainer   retroarch    ttrss   

what the heck is photoprism__2

so I went and tried to remove that too

sudo yunohost app remove photoprism__2                                                                                                                                                      
Info: Removing photoprism__2...
Info: [+...................] > Loading installation settings...
Info: [#++.................] > Stopping and removing the systemd service...
Info: [###+................] > Removing logrotate configuration...
Info: [####++..............] > Removing the MySQL database...
Warning: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Info: [######+.............] > Removing app main directory...
Warning: ynh_secure_remove called with empty argument, ignoring.
Info: [#######++...........] > Removing NGINX web server configuration...
Info: '/etc/nginx/conf.d/.d/photoprism__2.conf' wasn't deleted because it doesn't exist.
Info: [#########+..........] > Removing dependencies...
Warning: E: Unable to locate package photoprism--2-ynh-deps
Info: [##########++........] > Removing various files...
Info: '/var/log/photoprism__2' wasn't deleted because it doesn't exist.
Info: [############+.......] > Removing the dedicated system user...
Warning: The user photoprism__2 was not found
Info: [#############++.....] > Removal of photoprism__2 completed
Success! photoprism__2 uninstalled

and I can see the application view again! yay!

1 Like

I think you tried to install while the previous instance was still installed. If you install two Wordpress apps, the second one will be called wordpress__2 for example.

Try removing it too: yunohost app remove photoprism__2

Then run sudo ls /etc/yunohost/apps and sudo yunohost app list again.

Great!

1 Like

already did it! I re-ran the command—I’m gonna try a reboot before trying to install photoprisim again!

seems to be working again! thanks a lot :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.