-
Notifications
You must be signed in to change notification settings - Fork 91
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
Unexpected error Cannot read properties of undefined (reading 'FileModifyDate') #342
Comments
Update: I tried moving half the files in my pics directory and all the subdirectories to a temporary directory, and then running thumbsup on the pics directory. My plan was to keep removing or adding half until I can narrow down what file is doing it. But upon removing half of them and all the subdirectories, I get this: Gallery generated successfully! │ Even though I still have hundreds of pics in the directory. I tried
|
Update: I tried leaving just one file in pics, and I got this error:
My only guess is that I'm getting three different failure modes depending on which file that it doesn't like it comes across first. I'm guessing it's because of the filenames, which are coming from Windows. The one pic I left in pics this time has the name |
Update: I renamed |
So I did |
Hi @inhahe, thanks for your troubleshooting and for reporting this. Regarding the # character it seems that:
I can reproduce this with:
In any case this is an issue, because even if it's not the only file it would get ignored. Regarding the other issues, were they also solved by running |
Yes, using detox solves my problems. It seems without using detox, there are at least three different kinds of errors I get as a result of three different possibilities in filenames. One is spaces, I forget what the other ones are (I guess one was the # symbol). It seems it would be more ideal if it weren't necessary to use detox to fix all the filenames before running thumbsup. And as it is I have to keep copies of all my pic directories that I want to put on the web, and every time I save a new pic in one of those directories I have to save it in two places, because I store my pics on Windows, and every now and then I rsync them to my Linux VM to run thumbsup on them, and I don't want to run detox on my main Windows directories, but if I just rsynced them to Linux where I run detox on the directories, then it would re-add all the filenames that are different from their detoxed names, so I have to have copies of them all in directories on Windows that I detox every time I update my web pics. So that's four copies of my pics in total that I have to store on my PC: my main Windows directories, my detoxed Windows directories for the web, my detoxed Linux directory to use as the source for the thumbsup command (since it doesn't seem to work if I try to run it directly on my mounted Windows directory for some reason), and the destination directory for Thumbsup. |
Bug description
GNU nano 7.2 thumbsup.log
2023-05-31T02:20:38.800Z thumbsup:warn dcraw (https://www.cybercom.net/~dcoffin/dcraw/) is not installed. You will not be able to process RAW photos.
2023-05-31T02:20:41.219Z thumbsup:error TypeError: Cannot read properties of undefined (reading 'FileModifyDate')
2023-05-31T02:20:41.219Z thumbsup:error at Stream. (/thumbsup/node_modules/thumbsup/src/components/index/index.js:85:45)
2023-05-31T02:20:41.219Z thumbsup:error at Stream.emit (node:events:513:28)
2023-05-31T02:20:41.219Z thumbsup:error at stream.write (/thumbsup/node_modules/event-stream/index.js:61:10)
2023-05-31T02:20:41.219Z thumbsup:error at Stream.ondata (node:internal/streams/legacy:20:31)
2023-05-31T02:20:41.219Z thumbsup:error at Stream.emit (node:events:513:28)
2023-05-31T02:20:41.219Z thumbsup:error at Stream.reemit (/thumbsup/node_modules/duplexer/index.js:70:25)
2023-05-31T02:20:41.219Z thumbsup:error at Stream.emit (node:events:513:28)
2023-05-31T02:20:41.219Z thumbsup:error at drain (/thumbsup/node_modules/through/index.js:36:16)
2023-05-31T02:20:41.219Z thumbsup:error at stream.queue.stream.push (/thumbsup/node_modules/through/index.js:45:5)
2023-05-31T02:20:41.219Z thumbsup:error at parser.onValue (/thumbsup/node_modules/JSONStream/index.js:118:16)
Steps to reproduce
I followed the instructions for running the docker image at https://thumbsup.github.io/docs/2-installation/docker/.
sudo docker run -t -v "$(pwd):/home/inhahe/" -u $(id -u):$(id -g) ghcr.io/thumbsup/thumbsup thumbsup --input /home/inhahe/pics --output /home/inhahe/pics2
I noticed that my pics have Modify dates earlier than their Change, Birth and Access dates, I guess as a side effect of copying them from the host (Windows) on VirtualBox. Maybe that's the problem?
update: I just "touch"ed all the pics and also removed a subdirectory of the input directory that I'd previously specified as the output directory, and the error went away. Not sure which thing I did made it go away. But now I have another problem. I'll post another issue for it.
update 2: I just changed my docker command to
sudo docker run -t -v "/home/inhahe:/home/inhahe" -u $(id -u):$(id -g) ghcr.io/thumbsup/thumbsup thumbsup --input /home/inhahe/pics --output /home/inhahe/pics2 --log trace
so that it actually recognizes all the files now, and now I'm getting this error again.Here's the full log trace output:
The text was updated successfully, but these errors were encountered: