On Thu, Oct 08, 2015 at 10:46:13AM +0200, Robert C. Helling wrote: > Dirk, > > > On 08 Oct 2015, at 00:54, Dirk Hohndel <[email protected]> wrote: > > > > I'd appreciate if you could take a look. Hopefully this will make a lot > > more sense to you and will be an easy fix. Right now people using our > > cloud storage don't get to see their pictures on the website and I find > > that disappointing. Not catastrophically terrible, not a show stopper, but > > if you have a moment... :-) > > I need some more information to be helpful. > > I built export-html and ran it. It complained > > QIODevice::write: device not open > QIODevice::write: device not open > copy of "/Users/helling/Library/Application > Support/Subsurface/picturedata/c97bd444a4b4044e88c69c4449e58a73195e90fc.jpg" > to "htmlexport/_files//photos/c97bd444a4b4044e88c69c4449e58a73195e90fc.jpg" > failed > copy of "/Users/helling/Library/Application > Support/Subsurface/picturedata/6df9b591b6a6a088c80311d4d96a780ed7cedaf6.jpg" > to "htmlexport/_files//photos/6df9b591b6a6a088c80311d4d96a780ed7cedaf6.jpg" > failed > copy of "/Users/helling/Pictures/subsurfaceimages/IMG_0031.jpg" to > "htmlexport/_files//photos/IMG_0031.jpg" failed > copy of "/Users/helling/Pictures/subsurfaceimages/IMG_0954.JPG" to > "htmlexport/_files//photos/IMG_0954.JPG" failed > copy of "/Users/helling/Pictures/subsurfaceimages/IMG_0955.JPG" to > "htmlexport/_files//photos/IMG_0955.JPG" failed > copy > > and so on. The problem seems to be that the first two errors are actually > saying that it could not create the directories _files and _files/photos.
That could be a problem. I think I explicitly create those directories in the hook - I need to double check that. For me it looked like the hashes weren't found. OK, more digging. > If I create them manually, stuff (including my images) gets copied. But > except _files there is nothing in the export directory, in particular no html > file. > > But my images get copied, so my problem seems to be unrelated to yours. > > To debug the image problem, you could try the following: Make sure the > translation hashes are actually populated, e.g. do > > qDebug() << hashOf << localFilenameOf; That's a good one. I'll try that. > The other thing that could go wrong is that in your log, your images don’t > have a hash yet, i.e. make sure that in the files in the Pictures directory, > there is hash information: > > filename "/Users/helling/Pictures/subsurfaceimages/IMG_0979.JPG" > hash „259772f12ccf5ef3cba54a50c7c43ff7fcd6beb3" > > in one of my files. Sorry, which directory is this? Since this is running on the server and the files come from a bare git repo I create them on the fly... so how can I make sure that the images get a hash? /D _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
