Open georgeoftown opened 4 years ago
What are you running this on? Seeing as I see that the tvservice is missing. Please try to provide more details since all the logs do is show me why the app potentially died. Knowing what you did at the time and what you're running this on helps a lot 😄
I am seeing the same issue
Jun 24 14:10:14 raspberrypilcd35 photoframe[439]: self.flush() Jun 24 14:10:14 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/socket.py", line 307, in flush Jun 24 14:10:14 raspberrypilcd35 photoframe[439]: self._sock.sendall(view[write_offset:write_offset+buffer_size]) Jun 24 14:10:14 raspberrypilcd35 photoframe[439]: error: [Errno 32] Broken pipe Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:18,377 - INFO - Internal display detected Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:18,387 - ERROR - Failed to decode JSON file, maybe it was corrupted? Size is 933888 Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: Traceback (most recent call last): Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: File "/root/photoframe/services/svc_googlephotos.py", line 291, in getImagesFor Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: images = json.load(f) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/init.py", line 291, in load Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: kw) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/init.py", line 339, in loads Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: return _default_decoder.decode(s) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/decoder.py", line 364, in decode Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: obj, end = self.scan_once(s, idx) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: ValueError: Unterminated string starting at: line 1 column 928930 (char 928929) Jun 24 14:10:18 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:18,532 - ERROR - Since file is corrupt, we try to save a copy for later analysis (/root/photoframe_config/services/1a5adc2f91ad7fdc71f94b805a7fa816a5b569d7/private/b220ee2eb110e04999d6aaa434a9d965cd98a2e3.json.corrupt) Jun 24 14:10:21 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:21,926 - INFO - Internal display detected Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: Traceback (most recent call last): Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/SocketServer.py", line 599, in process_request_thread Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: self.finish_request(request, client_address) Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: self.RequestHandlerClass(request, client_address, self) Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/SocketServer.py", line 657, in init Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: self.finish() Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/SocketServer.py", line 716, in finish Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: self.wfile.close() Jun 24 14:10:38 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/socket.py", line 283, in close Jun 24 14:10:39 raspberrypilcd35 photoframe[439]: self.flush() Jun 24 14:10:39 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/socket.py", line 307, in flush Jun 24 14:10:39 raspberrypilcd35 photoframe[439]: self._sock.sendall(view[write_offset:write_offset+buffer_size]) Jun 24 14:10:39 raspberrypilcd35 photoframe[439]: error: [Errno 32] Broken pipe Jun 24 14:10:39 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:39,862 - INFO - Internal display detected Jun 24 14:10:43 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:43,850 - INFO - Internal display detected Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:53,244 - ERROR - Failed to decode JSON file, maybe it was corrupted? Size is 1496254 Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: Traceback (most recent call last): Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: File "/root/photoframe/services/svc_googlephotos.py", line 291, in getImagesFor Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: images = json.load(f) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/init.py", line 291, in load Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: kw) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/init.py", line 339, in loads Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: return _default_decoder.decode(s) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/decoder.py", line 364, in decode Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: obj, end = self.scan_once(s, idx) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: ValueError: Invalid control character at: line 1 column 425985 (char 425984) Jun 24 14:10:53 raspberrypilcd35 photoframe[439]: 2020-06-24 14:10:53,282 - ERROR - Since file is corrupt, we try to save a copy for later analysis (/root/photoframe_config/services/1a5adc2f91ad7fdc71f94b805a7fa816a5b569d7/private/b220ee2eb110e04999d6aaa434a9d965cd98a2e3.json.corrupt) Jun 24 14:11:03 raspberrypilcd35 photoframe[439]: 2020-06-24 14:11:03,056 - INFO - Internal display detected Jun 24 14:11:08 raspberrypilcd35 photoframe[439]: 2020-06-24 14:11:08,951 - INFO - Internal display detected Jun 24 14:11:51 raspberrypilcd35 photoframe[439]: 2020-06-24 14:11:51,773 - INFO - Internal display detected Jun 24 14:15:03 raspberrypilcd35 photoframe[439]: 2020-06-24 14:15:03,630 - INFO - Internal display detected Jun 24 14:17:35 raspberrypilcd35 photoframe[440]: 2020-06-24 14:17:35,814 - INFO - No http-auth.json found, disabling http authentication Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: 2020-06-24 14:17:36,081 - INFO - Internal display detected Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: 2020-06-24 14:17:36,499 - INFO - ColorSensor not available Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Importing svc_picasaweb.py Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Importing svc_googlephotos.py Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Importing svc_usb.py Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Importing svc_simpleurl.py Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Serving Flask app "frame" (lazy loading) Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Environment: production Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: WARNING: Do not use the development server in a production environment. Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Use a production WSGI server instead. Jun 24 14:17:36 raspberrypilcd35 photoframe[440]: Debug mode: off Jun 24 14:17:37 raspberrypilcd35 photoframe[440]: 2020-06-24 14:17:37,958 - INFO - Garbage Collector was able to free up 0.5MB of disk space! Jun 24 14:20:08 raspberrypilcd35 photoframe[440]: 2020-06-24 14:20:08,975 - INFO - Internal display detected Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: 2020-06-24 14:20:14,026 - INFO - Starting presentation Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: Exception in thread Thread-4: Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: Traceback (most recent call last): Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: self.run() Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/threading.py", line 754, in run Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: self.__target(self.args, **self.kwargs) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/modules/slideshow.py", line 273, in presentation Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: result = self.services.servicePrepareNextItem(cacheFolder, self.supportedFormats, displaySize, randomize) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/modules/servicemanager.py", line 400, in servicePrepareNextItem Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: result = svc.prepareNextItem(destinationDir, supportedMimeTypes, displaySize, randomize) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/base.py", line 397, in prepareNextItem Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: result = self.selectImageFromAlbum(destinationFile, supportedMimeTypes, displaySize, randomize) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/svc_googlephotos.py", line 240, in selectImageFromAlbum Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: result = BaseService.selectImageFromAlbum(self, destinationDir, supportedMimeTypes, displaySize, randomize) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/base.py", line 471, in selectImageFromAlbum Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: image = self.selectImage(images, supportedMimeTypes, displaySize, randomize) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/base.py", line 519, in selectImage Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: if randomize and self.memorySeen(image['id']): Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/base.py", line 663, in memorySeen Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: self._fetchMemory(keywords) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/root/photoframe/services/base.py", line 621, in _fetchMemory Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: self._MEMORY = json.load(f) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/json/init.py", line 291, in load Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: **kw) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/json/init.py", line 339, in loads Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: return _default_decoder.decode(s) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/json/decoder.py", line 364, in decode Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: obj, end = self.raw_decode(s, idx=_w(s, 0).end()) Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: raise ValueError("No JSON object could be decoded") Jun 24 14:20:14 raspberrypilcd35 photoframe[440]: ValueError: No JSON object could be decoded