--> -->
CLI does not find files while GUI works perfect
#1
While the GUI version of tmm2.9.5 works fine, the command line interface seems not to find any files on SMB shares. Please have a look at this part of the log file:

2017-10-28 17:57:56,462 ERROR [tmmpool-unnamed-task-T1-G3] o.t.c.m.c.MovieToKodiNfoConnector:511 - setData V:\12 Monkeys (1995)\12 Monkeys (1995).nfo
java.nio.file.NoSuchFileException: V:\12 Monkeys (1995)\12 Monkeys (1995).nfo
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.spi.FileSystemProvider.newOutputStream(Unknown Source)
at java.nio.file.Files.newOutputStream(Unknown Source)
at java.nio.file.Files.write(Unknown Source)
at org.tinymediamanager.core.Utils.writeStringToFile(Utils.java:1456)
at org.tinymediamanager.core.movie.connector.MovieToKodiNfoConnector.writeNfoFiles(MovieToKodiNfoConnector.java:505)
at org.tinymediamanager.core.movie.connector.MovieToKodiNfoConnector.setData(MovieToKodiNfoConnector.java:219)
at org.tinymediamanager.core.movie.entities.Movie.writeNFO(Movie.java:1425)
at org.tinymediamanager.scraper.trakttv.TraktTv.syncTraktMovieWatched(TraktTv.java:462)
at org.tinymediamanager.scraper.trakttv.TraktTv.syncTraktMovieWatched(TraktTv.java:546)
at org.tinymediamanager.scraper.trakttv.SyncTraktTvTask.doInBackground(SyncTraktTvTask.java:81)
at org.tinymediamanager.core.threading.TmmTask.run(TmmTask.java:125)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

The file is definitely in the given path and they are readable...

What am i doing wrong? :-)
-->
#2
Probably i found the reason for the behaviour described in the above posting. I tried to tell tmm the paths to my network drives not by using Win drive letters like "V:\Movies" but in UNC, like "\\server\share". For me now it works. Please see this snippet of the log:


Code:
2017-10-30 18:51:17,485 DEBUG [tmmpool-mediainfo-T1-G2186] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\Das Leben des David Gale (2003).ts
2017-10-30 18:51:30,697 DEBUG [tmmpool-mediainfo-T1-G2186] o.t.core.entities.MediaFile:2053 - found language 'german' in 'Das Leben des David Gale (2003).ts
2017-10-30 18:51:30,700 DEBUG [tmmpool-mediainfo-T1-G2186] o.t.core.entities.MediaFile:2053 - found language 'german' in 'Das Leben des David Gale (2003).ts
2017-10-30 18:51:30,731 DEBUG [tmmpool-mediainfo-T1-G2188] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\Das Leben des David Gale (2003)-poster.jpg
2017-10-30 18:51:30,815 DEBUG [tmmpool-mediainfo-T1-G2189] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\Das Leben des David Gale (2003)-fanart.jpg
2017-10-30 18:51:30,878 DEBUG [tmmpool-mediainfo-T1-G2190] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\banner.jpg
2017-10-30 18:51:30,962 DEBUG [tmmpool-mediainfo-T1-G2191] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\clearlogo.png
2017-10-30 18:51:30,999 DEBUG [tmmpool-mediainfo-T1-G2192] o.t.core.entities.MediaFile:1657 - start MediaInfo for \\Raspberrypi\v2\Das Leben des David Gale (2003)\thumb.jpg


Does anybody else experience this behaviour of the tmm-CLI?
-->
#3
thanks for the hint - I saw we have a problem in the tinyMediaManagerCMD.exe - will fix that asap
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
-->
#4
You're welcome.

TmmCMD.exe saves lots of time in automatically updating the database after new movies have arrived.

Here is a copy of the Win batch file i am using, just for those who want to run it without opening a console:

Code:
@echo off
start "TMM-CLI"  F:\tmm_2.9.5_1bf3695_win\tinyMediaManagerCMD.exe -update -scrapeUnscraped -renameNew
It is not necessary to redirect the huge output to a file because everything is copied to the log.
-->
#5
having a deeper look into the cmd version shows me, that there is no relevant difference..

are you sure, that V:\ is connected and authenticated BEFORE you run the cmd?
are you also sure that the paths inside V:\ match?
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
-->
#6
Sorry, but currently i cannot reproduce the problem in my setup. For a test have one of my external drive paths named with a Windows drive letter, and the others named in UNC. All the movies are found both by the GUI and the CLI versions of tmm. Should there be any strange behaviour in the future i will tell.

Anyway, thank you very much for this extremely fast and reliable tool. Keep up that good job!
-->

Logout Mark Read Team Forum Stats Members Help
-->
CLI does not find files while GUI works perfect0