Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ photoprism ] Upload cron job not working since updating to 220517-jammy #340

Closed
richard-scott opened this issue May 23, 2022 · 8 comments

Comments

@richard-scott
Copy link

richard-scott commented May 23, 2022

Which addon?

  • Addon name : PhotoPrism
  • Addon version : 220517-jammy

Describe the bug

New photos uploaded and imported do not show in search when ordered by show most recently added.
It worked in 220302-impish .

To Reproduce

  1. upload new photos
  2. import new photos
  3. look in search and order by recently added and see your new photos are not there.

Full addon log

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Photoprism
 A server-based application for browsing, organizing and sharing your personal photo collection
-----------------------------------------------------------
 Add-on version: 220517-2
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
 Home Assistant Core: 2022.5.5
 Home Assistant Supervisor: 2022.05.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
/etc/cont-init.d/32-nginx_ssl.sh: executing
/etc/cont-init.d/90-config_yaml.sh: executing
Using config file found in /config/addons_config/photoprism/config.yaml
Config file is a valid yaml
[08:27:08] INFO: Starting the app with the variables in in /config/addons_config/photoprism/config.yaml
PHOTOPRISM_SITE_URL=https://photos.blah/
/etc/cont-init.d/92-local_mounts.sh: executing
/etc/cont-init.d/92-smb_mounts.sh: executing
Mounting smb share(s)...
[08:27:09] FATAL: The structure of your "networkdisks" option : "//server/share" doesn't seem correct, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2. If you don't use it, you can simply remove the text, this will avoid this error message in the future.
/etc/cont-init.d/99-run.sh: executing
[08:27:09] INFO: Defining database
[08:27:09] INFO: Using MariaDB addon. Requirements : running MariaDB addon. Discovering values...
PHOTOPRISM_DATABASE_DRIVER=mysql
PHOTOPRISM_DATABASE_SERVER=core-mariadb:3306
PHOTOPRISM_DATABASE_NAME=photoprism
PHOTOPRISM_DATABASE_USER=service
PHOTOPRISM_DATABASE_PASSWORD=
[08:27:14] WARNING: Webtrees is using the Maria DB addon
[08:27:14] WARNING: Please ensure this is included in your backups
[08:27:14] WARNING: Uninstalling the MariaDB addon will remove any data
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 'CHARACTER SET = utf8mb4' at line 1
[08:27:15] INFO: Please wait 1 or 2 minutes to allow the server to load
[08:27:15] INFO: Default username : admin, default password: "please_change_password"
[08:27:15] INFO: App launched...
started 220517-bookworm as root (amd64-prod)
Problems? Our Troubleshooting Checklists help you quickly diagnose and solve them:
https://docs.photoprism.app/getting-started/troubleshooting/
file umask....: "0002" (u=rwx,g=rwx,o=rx)
home directory: /photoprism
assets path...: /opt/photoprism/assets
storage path..: /share/photoprism/storage
config path...: default
cache path....: default
backup path...: /share/photoprism/backup
import path...: /share/photoprism/import
originals path: /share/photoprism/originals
running as uid 0
photoprism start
time="2022-05-23T08:27:24+01:00" level=info msg="PhotoPrism® needs your support!"
time="2022-05-23T08:27:24+01:00" level=info msg="Visit https://docs.photoprism.app/funding/ to learn more."
time="2022-05-23T08:27:26+01:00" level=info msg="webdav: /originals/ enabled, waiting for requests"
time="2022-05-23T08:27:26+01:00" level=info msg="webdav: /import/ enabled, waiting for requests"
time="2022-05-23T08:27:26+01:00" level=info msg="http: starting web server at 0.0.0.0:2341"

PS. I have changed my password, so this line isn't true:

Default username : admin, default password: "please_change_password"

Full addon config

BACKUP_PATH: /share/photoprism/backup
CONFIG_LOCATION: /config/addons_config/photoprism/config.yaml
DB_TYPE: mariadb_addon
IMPORT_PATH: /share/photoprism/import
ORIGINALS_PATH: /share/photoprism/originals
STORAGE_PATH: /share/photoprism/storage
UPLOAD_NSFW: true
certfile: fullchain.pem
cifspassword: password
cifsusername: username
keyfile: privkey.pem
networkdisks: //server/share
ssl: false

System

  • Supervisor version: Home Assistant Supervisor 2022.05.2
  • Host system version: Home Assistant Core 2022.5.5
@richard-scott richard-scott added the bug Something isn't working label May 23, 2022
@alexbelgium
Copy link
Owner

Hi, thanks. To be clear, they only don't appear in this view or they aren't uploaded at all ?
I'll have to look if this is an issue with the addon, or the underlying app

@richard-scott richard-scott changed the title photoprism - new uploads don't show since updating to 220517-jammy [ photoprism ] New uploads don't show since updating to 220517-jammy May 23, 2022
@alexbelgium
Copy link
Owner

alexbelgium commented May 23, 2022

Hi, I can't replicate. I've installed the latest version and have the exact same log as you (mentioning the default username / password is still correct as it says it is the default and not current). I've uploaded a picture, approved it in the "review" tab, then it appeared on my recent files... Are you sure your files are not stuck in review?

Edit : btw are you sure you are uploading a file? Your log doesn't show an upload being done?

@richard-scott
Copy link
Author

I use the Photosync app to upload into the import folder, and then I run the following on a cron using docker exec:

photoprism mv /share/photoprism/import

Hmmm, I've never had to use the review tab before... is that enforced now?
I've got 6K of photos in there, is there any way to approve them all?

@alexbelgium
Copy link
Owner

alexbelgium commented May 23, 2022

removed

@alexbelgium alexbelgium changed the title [ photoprism ] New uploads don't show since updating to 220517-jammy [ photoprism ] Upload cron job not working since updating to 220517-jammy May 23, 2022
@alexbelgium alexbelgium removed the bug Something isn't working label May 23, 2022
@alexbelgium
Copy link
Owner

alexbelgium commented May 23, 2022

Hi, so if I understand correctly your issue, it is that your cron command stopped working ?

Several options :

@alexbelgium
Copy link
Owner

Edit : I've put files in the import folder and have tested both the import from UI option, and the command photoprism import successfully. I've therefore removed the "bug" tag as everything seems to work as intended

@richard-scott
Copy link
Author

I have no idea what the cause of the issue was now, but it's gone after a restart of Home Assistant.

@alexbelgium
Copy link
Owner

Ah ah, well in the end what is important is that it works ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants