Error during scan_next_folder.
errno: -22,
code: ‘EINVAL’,
syscall: ‘scandir’,
path: ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ’
Any ideas? On windowsOS all is OK.
When using Chromebook/Linux I can mount the volume attached to LAN without problem and read photos ok, but tonfotos doesn’t start scanning the volume.
When using e.g. USB stick all is OK on both ChromeOS and WindowsOS, meaning photos are indexed and shown as it should.
BRgs

    Aikiman I’m afraid, we need much more information. Let’s first start from what OS you are using? Then, can you please describe step-by-spep instruction what you do in order to get to this error.

    Google Chrome OS
    Version 130.0.6723.126 (Officiell version) (64 bitar)
    Linux penguin
    Operating System: Debian GNU/Linux 12 (bookworm)
    Kernel: Linux 6.6.50-05090-g02ec56928355
    Architecture: x86-64

    1. Run Linux development in Settings - default.
    2. Run as described in https://tonfotos.com/download.html.
    3. In Files - Allocate SMB-fileresource
    4. Select Share with Linux.
    5. Start tonfotos.
    6. Select File - Library locations.
    7. Add location - mnt/chromeos/SMB/0f…92/Negativ
    8. Click Done button.
    9. Waiting - nothing happens.
    10. Checking log - and here we are. Error -22 etc. etc.

      —DEBUG OUTPUT STARTED—
      /usr/lib/tonfotos/tonfotos undefined
      Arch: x64 Platform: linux
      OS Version: #1 SMP PREEMPT_DYNAMIC Fri, 8 Nov 2024 00:13:13 +0000
      OS Release: 6.6.50-05090-g02ec56928355

      Tue Dec 10 2024 14:25:07 GMT+0100 (Central European Standard Time)

      +0ms | checkpoint config: 6 ms
      +163ms | checkpoint app ready: 169 ms
      +4ms | Metrics signal: AppStart
      +1ms | Metrics signal: ScreenSize 1536×864
      +0ms | Metrics signal: Arch x64
      +1ms | Metrics signal: Platform linux
      +0ms | Metrics signal: OsVersion #1 SMP PREEMPT_DYNAMIC Fri, 8 Nov 2024 00:13:13 +0000
      +0ms | Metrics signal: OsRelease 6.6.50-05090-g02ec56928355
      +0ms | Metrics signal: Commercial true
      +1ms | Metrics signal: UiTheme dark
      +0ms | Metrics signal: UiLanguage en
      +0ms | Metrics signal: MediaSources 3
      +0ms | Metrics signal: TelegramConnected false
      +45ms | Database unused space: 11.10Mb, 40%, no compacting needed at this moment
      +21ms | Metrics signal: ScreenView mainWindow
      +74ms | scan_next [ ‘1733827867732’, ‘1733827867733’, ‘1733827867734’ ]
      +3ms | scanning 1733827867732 Pictures
      +1ms | V+R+path: /home/margitaberg/Pictures name: Pictures stats id:1733827867732 CALLBACK
      +1ms | Auto update URL: https://tonfotos.com/distribution/tonfotos/release/linux/x64
      +0ms | G_SLICE= always-malloc
      +4ms | Directory /home/margitaberg/Pictures excluded= undefined , excluded_dirs= []
      +0ms | — Unplugged? Skip /home/margitaberg/Pictures
      +1ms | on_scan_finished
      +1ms | scan_next [ ‘1733827867733’, ‘1733827867734’ ]
      +0ms | scanning 1733827867733 Desktop
      +1ms | V+R+path: /home/margitaberg/Desktop name: Desktop stats id:1733827867733 CALLBACK
      +17ms | Directory /home/margitaberg/Desktop excluded= undefined , excluded_dirs= []
      +1ms | — Unplugged? Skip /home/margitaberg/Desktop
      +0ms | on_scan_finished
      +1ms | scan_next [ ‘1733827867734’ ]
      +1ms | scanning 1733827867734 Downloads
      +0ms | V+R+path: /home/margitaberg name: Downloads stats id:1733827867734 CALLBACK
      +3ms | Directory /home/margitaberg excluded= undefined , excluded_dirs= []

      Skipping rows from default empty directories

      +664ms | MenuCommand menu-locations
      +1ms | Metrics signal: MenuCommand menu-locations
      +9ms | Metrics signal: ScreenView archiveWindow
      +1ms | []
      +33ms | intercepted file:///usr/lib/tonfotos/resources/app/.webpack/renderer/archieve_window/index.html
      +88ms | No scanning needed
      +0ms | {
      ‘1733827867732’: ‘/home/margitaberg/Pictures’,
      ‘1733827867733’: ‘/home/margitaberg/Desktop’,
      ‘1733827867734’: ‘/home/margitaberg’
      }
      Added library location here

      +1002ms | scan_next [ ‘1733837133970’ ]
      +2ms | estimating 1733837133970 Negativ
      +1ms | V-R-path: /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ name: Negativ stats estimate id:1733837133970 CALLBACK
      +86ms | Directory /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ excluded= undefined , excluded_dirs= []
      +0ms | ————————- Error during scan_next_folder /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ
      +1ms | Error
      at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373386)
      at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2965782)
      at node:fs:196:23
      at req.oncomplete (node:fs:1416:9)
      +0ms | [Error: EINVAL: invalid argument, scandir ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ’] {
      errno: -22,
      code: ‘EINVAL’,
      syscall: ‘scandir’,
      path: ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ’
      }
      +1ms | Error
      at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373386)
      at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2965846)
      at node:fs:196:23
      at req.oncomplete (node:fs:1416:9)
      +0ms | on_estimate_finished
      +1ms | scan_next [ ‘1733837133970’ ]
      +0ms | scanning 1733837133970 Negativ
      +0ms | V+R+path: /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ name: Negativ stats id:1733837133970 CALLBACK
      +107ms | Directory /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ excluded= undefined , excluded_dirs= []
      +0ms | ————————- Error during scan_next_folder /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ
      +0ms | Error
      at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373386)
      at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2965782)
      at node:fs:196:23
      at req.oncomplete (node:fs:1416:9)
      +0ms | [Error: EINVAL: invalid argument, scandir ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ’] {
      errno: -22,
      code: ‘EINVAL’,
      syscall: ‘scandir’,
      path: ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/Negativ’
      }
      +1ms | Error
      at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373386)
      at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2965846)
      at node:fs:196:23
      at req.oncomplete (node:fs:1416:9)
      +0ms | on_scan_finished
      +0ms | scan_next []
      +1ms | Next invalidated person id= undefined changes= undefined faces= undefined
      +1ms | No clustering required.
      Irrelevant info

      +1005ms | Next invalidated person id= undefined changes= undefined faces= undefined
      +1ms | No clustering required.

      +339ms | ApplicationClosed
      +0ms | Metrics signal: ApplicationClosed
      +3ms | cancel_background_processing
      +1007ms | Faces description cache saved.

        Aikiman Based on the logs, something is fundamentally wrong with those mounted folders. System funtion that should return list of files just fails.

        Will switch to Ubuntu for better troubleshooting.
        I have already reinstalled Linux/tonfotos on the Chromebook device using up two licenses. Is there a way to get these two licenses back. I have paid some hundred of dollars for a familypack as I believe this could be a great software for me and my wife. Me running Windows (without any tonfotos issues), and my spouse runnint Chromebook (with issues). For each time I reinstall I use up one license which is kind of costly… Perhaps this should be in another forum but is there any recommendation while testing?

          Aikiman Don’t worry about those activations. Tonfotos has built-in mechanism for tranfer of old activations when you activate on a new PC. In case of troubles you can always wtite to support@tonfotos.com

          OK, FYI: As ubuntu 18.04 gave me some headache I went for 22.04 (the development version) and came up with the same result as before = ERROR -22. Will retry ubuntu 18.04 tomorrow… meanwhile part of the log:
          +1001ms | scan_next [ ‘1733932572123’ ]
          +1ms | estimating 1733932572123 2016-10
          +2ms | V-R-path: /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10 name: 2016-10 stats estimate id:1733932572123 CALLBACK
          +39ms | Directory /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10 excluded= undefined , excluded_dirs= []
          +0ms | ————————- Error during scan_next_folder /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10
          +1ms | Error
          at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373483)
          at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2966191)
          at node:fs:196:23
          at req.oncomplete (node:fs:1416:9)
          +0ms | [Error: EINVAL: invalid argument, scandir ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10’] {
          errno: -22,
          code: ‘EINVAL’,
          syscall: ‘scandir’,
          path: ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10’
          }
          +1ms | Error
          at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373483)
          at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2966255)
          at node:fs:196:23
          at req.oncomplete (node:fs:1416:9)
          +0ms | on_estimate_finished
          +1ms | scan_next [ ‘1733932572123’ ]
          +0ms | scanning 1733932572123 2016-10
          +0ms | V+R+path: /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10 name: 2016-10 stats id:1733932572123 CALLBACK
          +47ms | Directory /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10 excluded= undefined , excluded_dirs= []
          +1ms | ————————- Error during scan_next_folder /mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10
          +1ms | Error
          at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373483)
          at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2966191)
          at node:fs:196:23
          at req.oncomplete (node:fs:1416:9)
          +0ms | [Error: EINVAL: invalid argument, scandir ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10’] {
          errno: -22,
          code: ‘EINVAL’,
          syscall: ‘scandir’,
          path: ‘/mnt/chromeos/SMB/0f636d39919e6531e3b40b4ad517017f7a390725202c6a2621f102664f0baf92/2016-10’
          }
          +1ms | Error
          at _e (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:373483)
          at k (/usr/lib/tonfotos/resources/app/.webpack/main/index.js:2:2966255)
          at node:fs:196:23
          at req.oncomplete (node:fs:1416:9)
          +0ms | on_scan_finished
          BRgds

          One strange thing though: When I select “Store dossier of people” and “Store faces in metadata”, tonfotos creats a file on the resource called people.tnfp, so tonfotos can obviously access and write to the resource ( but not scan photos ). On this resource I saved a couple of jpg pictures, nothing strange…
          BRgds
          P

            Aikiman Yes, that looks strange. Neverheless, the erros above, they do not come from application code. They came from OS function scandir.

            I cannot find relevant information for Linux and errno: -22, but I can rule out any path length issues as the path length is less than 100 chars. Where can I find Linux scandir issues, anyone knows?

            Write a Reply...