PP has always stopped working after a couple of days

58 views
Skip to first unread message

Slarti Bartfass

unread,
May 10, 2021, 5:17:50 AM5/10/21
to PicApport
No Idea why. This is the last service status:
root@xyz:/opt/picapport/.picapport/logfiles# service picapport status
● picapport.service - LSB: PicApport Server
   Loaded: loaded (/etc/init.d/picapport; bad; vendor preset: enabled)
   Active: active (exited) since Fri 2021-05-07 13:36:18 CEST; 1 day 21h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6506 ExecStop=/etc/init.d/picapport stop (code=exited, status=0/SUCCESS)
  Process: 6687 ExecStart=/etc/init.d/picapport start (code=exited, status=0/SUCCESS)
   Memory: 0B
      CPU: 0

May 07 13:36:18  xyz  systemd[1]: Starting LSB: PicApport Server...
May 07 13:36:18  xyz  picapport[6687]: Would start /usr/bin/screen -d -m -S picapport bash /opt/picapport/StartPicApport.sh .
May 07 13:36:18  xyz   picapport[6687]: Starting PicApport Daemon: Daemon picapport started. To access console type: screen -R 6690.picapport
May 07 13:36:18  xyz  systemd[1]: Started LSB: PicApport Server.


Logfile says this:
******************************************************************************
/opt/picapport/.picapport/logfiles/picapport.003 created at 2021-05-07 13:36:18
allowOutputOnSystemOut=true
******************************************************************************
Copyright (c) 1997-2021 Contecon Software GmbH. All rights reserved.
2021-05-07 13:36:18
Tracelevel: ERROR
VER  @ 13:36:18.756 PicApport Version 9.1 from 26.02.2021 loaded.
VER  @ 13:36:18.757 de.contecon.picapport.PicApport.Version=V9.1.7 26.02.2021
VER  @ 13:36:18.757 java.runtime.version: 1.8.0_261-b12
VER  @ 13:36:18.757 java.version: 1.8.0_261
VER  @ 13:36:18.758 java.vm.version: 25.261-b12
VER  @ 13:36:18.758 java.vm.vendor: Oracle Corporation
VER  @ 13:36:18.758 java.vm.name: Java HotSpot(TM) 64-Bit Server VM
VER  @ 13:36:18.759 java.specification.version: 1.8
VER  @ 13:36:18.759 java.vm.specification.version: 1.8
VER  @ 13:36:18.759 java.class.path: /opt/picapport/picapport-headless.jar
VER  @ 13:36:18.760 os.name: Linux
VER  @ 13:36:18.760 os.version: 3.13.0-147-generic
VER  @ 13:36:18.760 os.arch: amd64
VER  @ 13:36:18.761 file.separator: /
VER  @ 13:36:18.761 path.separator: :
VER  @ 13:36:18.762 user.dir: /
VER  @ 13:36:18.762 user.home: /opt/picapport
VER  @ 13:36:18.763 user.name: root
MSG  @ 13:36:18.763 java.runtime totalMemory=514mb maxMemory=954mb freeMemory=506mb processors=4
MSG  @ 13:36:18.767 java.runtime.argument: -Xms512m
MSG  @ 13:36:18.768 java.runtime.argument: -Xmx1024m
MSG  @ 13:36:18.768 java.runtime.argument: -Duser.home=/opt/picapport
MSG  @ 13:36:18.768 PicApport home=/opt/picapport/.picapport
MSG  @ 13:36:18.768 PicApport logging to /opt/picapport/.picapport/logfiles
MSG  @ 13:36:18.769 org.eclipse.jetty.LEVEL set to OFF
MSG  @ 13:36:18.770 Loading config File: /opt/picapport/.picapport/picapport.properties
MSG  @ 13:36:18.834 PicApportProperties.client.video.types.json[0].ext=.mp4 mime=video/mp4
MSG  @ 13:36:18.835 PicApportProperties.client.video.types.json[1].ext=.ogv mime=video/ogg
MSG  @ 13:36:18.835 PicApportProperties.client.video.types.json[2].ext=.webm mime=video/webm
MSG  @ 13:36:18.839 Init: picApportHome=/opt/picapport/.picapport
MSG  @ 13:36:18.843 Init: geo.max.markers=200000
MSG  @ 13:36:18.844 Init: gui.enabled=false
MSG  @ 13:36:18.844 Init: gui.hideintray=true
MSG  @ 13:36:18.844 Init: robot.root.0.id=Photos
MSG  @ 13:36:18.845 Init: robot.root.0.isuploadroot=true
MSG  @ 13:36:18.845 Init: robot.root.0.path=/media/Fotos
MSG  @ 13:36:18.845 Init: server.demomode=false
MSG  @ 13:36:18.846 Init: server.port=1234
MSG  @ 13:36:18.846 Init: server.ssl=false
MSG  @ 13:36:18.846 Init: user.log.access=true
MSG  @ 13:36:18.854 PicApportRestartHandler.init: PicApport command restartpicapportserver is not available. At least Java version 9 is required.
MSG  @ 13:36:18.954 FuzzySearchManager.init.phoneticEncoder: de.contecon.picapport.fuzzysearch.PaPhonDoubleMetaphoneV1.0
MSG  @ 13:36:19.011 FuzzySearchManager No Thesaurus-Files (*.pathes) found in /opt/picapport/.picapport/thesaurus
MSG  @ 13:36:19.038 Initialize user database in /opt/picapport/.picapport/users
MSG  @ 13:36:19.041 Load users from /opt/picapport/.picapport/users
MSG  @ 13:36:19.087 Initializing User Management: CcUser2  V1.6 build:2018.06.28-##CC_BUILD##
MSG  @ 13:36:21.305 User Management: Initializing/creating UniqueId store in: /opt/picapport/.picapport/users/vars/id_counter
MSG  @ 13:36:21.355 User Management: DB-Version updated to: 8.05
MSG  @ 13:36:21.365 Search for plugins in /opt/picapport/.picapport/plugins
MSG  @ 13:36:21.373 Plugin loaded: PicApport geojson plugin 1.0 (c) 2019 Contecon Software GmbH .geojson application/geo+json (hideSubstitutes=true) implements IOtherFileFormat:de.contecon.picapport.plugins.geojson.GeoJsonPlugin
MSG  @ 13:36:25.155 Groovy-pagpExifToolSimpleInfo-ExifToolSimpleInfo: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:26.474 Groovy-pagpTagYourPhotos-TagYourPhotosFields: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:28.903 Groovy-pagpTagYourPhotos-TagYourPhotos: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:29.268 Groovy-pagpOSMGeoReverseEncoder-OSMGeoReverseEncoder: Addon loaded Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:29.419 Groovy-pagpOSMGeoReverseEncoder-OSMFields: Addon loaded Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:30.021 Groovy-pagpMetadataAnalyser-MetadataAnalyser: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:30.082 Groovy-pagcPrivateFileFilter-PrivateFileFilter: Simple Addon-Filter for private Files loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:30.103 Groovy-pagcPrivateFileFilter-PrivateFileFilter: AddonPath=/opt/picapport/.picapport/groovy/pagcPrivateFileFilter
MSG  @ 13:36:30.247 Groovy-pagfNonJpgTitleField-NonJpgTitleField: Addon loaded Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:30.663 Groovy-pagpImagga-Imagga: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:30.802 Groovy-pagpImagga-ImaggaFields: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:31.550 Groovy-pagpOpenrouteGeoJSONRoute-OpenrouteGeoJSONRoute: Addon loaded. Autor: E. Schreiner (c)2020 Contecon Software GmbH
MSG  @ 13:36:31.557 Queries loaded: 0
MSG  @ 13:36:31.562 Designs loaded: 0 from /opt/picapport/.picapport/designs
MSG  @ 13:36:31.621 PicApportDBService.startDatabase:embedded:/opt/picapport/.picapport/db (/opt/picapport/.picapport/db/db_3_0_37)
ERROR@ 13:36:33.935 PicApportDBService.recoverProblem: Database aborted on last Server startup.
MSG  @ 13:36:34.169 PicApportDBService.removeOldDatabaseVersion in: /opt/picapport/.picapport/db
MSG  @ 13:36:34.169 PicApportDBService.createDatabaseDirectory: /opt/picapport/.picapport/db
MSG  @ 13:36:45.518 DbWrapper.getAlternateDatePattern: M/d/yyyy = MM/dd/yyyy
MSG  @ 13:37:04.546 PicApport.startGui.javaFxIsAvailable=true isGuiEnabled=false
****** PicApport starts a new day at 5/7/2021 13:37:15
LOGON@ 13:41:50.662 2021-05-07 PicApport: id=picapport ip=192.168.178.21
****** PicApport starts a new day (with crawler) at 5/8/2021 00:00:01
MSG  @ 02:43:51.997 23757 thumbs loaded.
MSG  @ 13:08:09.641 2 thumbs loaded.
****** PicApport starts a new day (with crawler) at 5/9/2021 00:00:04
MSG  @ 06:20:52.467 3 thumbs loaded.  

Slarti Bartfass

unread,
May 21, 2021, 3:25:24 AM5/21/21
to PicApport
So, the current memory optimized config seams to work mostly for our 300k images and videos on the 6 GB RAM dual-core Intel core i3. I only noticed that a lot of video thumbnails never turned up after I added the video thumbnail plugin. The debug log showed an out-of-memory-exception for all later attempts to create a thubmbnail. A manual restart did fix this temporarily.

This a the same section appearing for every video:

DEBUG@ 05:30:28.588 PicApportCmdQueue.queueCmd: crawlermessage /some/dir/with/media/2012-02-09/2012-02-09
INFO @ 05:30:28.589 PicApportCmdQueue.execCmd: doCmd_crawlermessage(/some/dir/with/media/2012-02-09/2012-02-09)
DEBUG@ 05:30:28.590 DbWrapper.updateDirectory: /some/dir/with/media/2012-02-09/2012-02-09, 3
DEBUG@ 05:30:28.591 DirectoryStatistic.updateToDocument 2012-02-09 (DSC_0382.JPG): 2/9/2012 <--> 2/9/2012
DEBUG@ 05:30:28.592 DbWrapper.closed
DEBUG@ 05:30:28.597 PicApportCmdQueue.queueCmd: crawlermessage /some/dir/with/media/2012-02-08/2012-02-08
INFO @ 05:30:28.597 PicApportCmdQueue.execCmd: doCmd_crawlermessage(/some/dir/with/media/2012-02-08/2012-02-08)
DEBUG@ 05:30:28.598 DbWrapper.updateDirectory: /some/dir/with/media/2012-02-08/2012-02-08, 2
DEBUG@ 05:30:28.599 DirectoryStatistic.updateToDocument 2012-02-08 (DSC_0380.JPG): 2/8/2012 <--> 2/8/2012
DEBUG@ 05:30:28.599 DbWrapper.closed
DEBUG@ 05:30:28.600 PicApportCmdQueue.queueCmd: crawlermessage /some/dir/with/media/2012-02-07/2012-02-07
INFO @ 05:30:28.600 PicApportCmdQueue.execCmd: doCmd_crawlermessage(/some/dir/with/media/2012-02-07/2012-02-07)
INFO @ 05:30:28.602 de.contecon.picapport.plugin.video.PicapportVideoThumbnailPlugin: Video : /some/dir/with/media/2012-02-07/2012-02-07/MOV_0349.mp4
EXCEP@ ============================================================
EXCEP@ Exception at: 2021-05-20 05:30:35
EXCEP@          Msg:
EXCEP@ Cannot allocate new PointerPointer(8): totalBytes = 24, physicalBytes = 3951M
EXCEP@ ------------------------------------------------------------
EXCEP@ java.lang.OutOfMemoryError: Cannot allocate new PointerPointer(8): totalBytes = 24, physicalBytes = 3951M
EXCEP@     at org.bytedeco.javacpp.PointerPointer.<init>(PointerPointer.java:149)
EXCEP@     at org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe(FFmpegFrameGrabber.java:864)
EXCEP@     at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:846)
EXCEP@     at org.bytedeco.javacv.FFmpegFrameGrabber.start(FFmpegFrameGrabber.java:841)
EXCEP@     at de.contecon.picapport.plugin.video.PicapportVideoThumbnailPlugin.createJpegFile(Unknown Source)
EXCEP@     at de.contecon.picapport.plugins.otherformats.OtherFormatsDescriptor.createSubstitute(Unknown Source)
EXCEP@     at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.createSubstituteIfReqired(Unknown Source)
EXCEP@     at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.consume(Unknown Source)
EXCEP@     at de.contecon.picapport.directoryservices.PhotoCrawler$DirectoryConsumer.run(Unknown Source)
EXCEP@     at java.lang.Thread.run(Thread.java:748)
EXCEP@ Caused by: java.lang.OutOfMemoryError: Physical memory usage is too high: physicalBytes (3951M) > maxPhysicalBytes (3641M)
EXCEP@     at org.bytedeco.javacpp.Pointer.deallocator(Pointer.java:700)
EXCEP@     at org.bytedeco.javacpp.Pointer.init(Pointer.java:126)
EXCEP@     at org.bytedeco.javacpp.PointerPointer.allocateArray(Native Method)
EXCEP@     at org.bytedeco.javacpp.PointerPointer.<init>(PointerPointer.java:141)
EXCEP@     ... 9 more



Reply all
Reply to author
Forward
0 new messages