Code Monkey home page Code Monkey logo

Comments (21)

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024 1

@retokromer if I write one that solves the issue I will šŸ˜Š

from ltopers.

dericed avatar dericed commented on June 18, 2024

uh oh. Do they write when LTO_LOGS is set but not when it is unset?

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

They write when LTO_LOGS is set. In our case this is to something other than $HOME/Documents
I haven't checked when LTO_LOGS is unset.

But the issue we have is that they do not write to the specified LTO_LOGS directory, but to the default of $HOME/Documents

This is weird because everything else that is supposed to write to LTO_LOGS does write to the correct, set directory. I can't see why .schema files are going rogue.

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

@dericed The schema file will only write after the tape is ejected. I tried moving everything in writelto before case "${TAPE_EJECT}" in y|Y) umount "${TAPE_PATH}" ;; *) echo "Done writing but not ejecting ${TAPE_SERIAL}." ;; esac
but the schema file still wont' write until the tape ejects and when it does write still writes to $HOME/Documents and not to the location defined for $LTO_LOGS in mmconfig.
I think the timing of the schema file writing after tape eject and the writing to the wrong location may be connected. I can't figure out how or why.

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

@BleakleyMcD, if you could submit a PR, that would be indeed fantastic!

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

@BleakleyMcD Iā€™m teaching in Chennai at the moment, and I cannot do it myself. Yet Iā€™m happy to review, if you can do it. Thank you also for opening the issue.

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

I guess, this is resolved in #128.

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

Actually, I don't think either issue is resolved with #128 , unfortunately. I will check momentarily.

From earlier:

@dericed The schema file will only write after the tape is ejected. I tried moving everything in writelto before case "${TAPE_EJECT}" in y|Y) umount "${TAPE_PATH}" ;; *) echo "Done writing but not ejecting ${TAPE_SERIAL}." ;; esac
but the schema file still wont' write until the tape ejects and when it does write still writes to $HOME/Documents and not to the location defined for $LTO_LOGS in mmconfig.
I think the timing of the schema file writing after tape eject and the writing to the wrong location may be connected. I can't figure out how or why.

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

Thank you, @BleakleyMcD, for reporting. I re-opened the issue then.

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

Confirming with the latest ltopers that this is still an issue. The .schema file will not write until the tape has been ejected and, when it does, it writes to $HOME/Documents/ rather than the location specified for LTO_INDEX_DIR in mmconfig. I'm unsure if these two issues are directly related or not. Anyone else having the same behavior? I can't see what the issue is in the code.

from ltopers.

dericed avatar dericed commented on June 18, 2024

Hey @BleakleyMcD, we started looking at it today. Hopefully will have a fix soon.

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

Cooool! Thank you! Interested to see what the problem is...

from ltopers.

aeschweik avatar aeschweik commented on June 18, 2024

Hi @BleakleyMcD, I think the issue may stem from the mountlto script, where LTO_LOGS was still assigned "${HOME}/Documents/lto_indexes." (May have been overlooked in this commit: d48143f?)

When I test it with that change (42f0e83), my .schema files get saved in the directory I specify in mmconfig; however, the .schema files do only write upon mounting and ejecting. (Not sure why as the default LTFS sync time is 5 min.)

Let me know if the first part works for you for now at least!

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

Grrrreat! Thank you! I will test next week!

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

Is this now resolved?

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

And is the documentation up-to-date?

from ltopers.

aeschweik avatar aeschweik commented on June 18, 2024

It is working for us at CUNY TV, but hoping it's also working at NMAAHC for @BleakleyMcD?

Thanks for the reminder about documentation. I made a pull request to update the readme (#139) but since I didn't put in the original changes, I'd love other sets of eyes to make sure it's correct.

from ltopers.

BleakleyMcD avatar BleakleyMcD commented on June 18, 2024

Almost!
.schema files are writing to {LTO_LOGS} but not into {LTO_LOGS}/schema directory, which is the defined {SCHEMADIR}

Our .schema files still do not write until after the tape ejects which is kind of annoying but I'm not sure if that is fixable.

Thank you @aeschweik

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

Is this still an issue with the last release (or the HEAD) or has it been resolved?

from ltopers.

aeschweik avatar aeschweik commented on June 18, 2024

Should be fixed in #140, thanks @BleakleyMcD for pointing out my typo! Hope it's working on your end?

from ltopers.

retokromer avatar retokromer commented on June 18, 2024

This was my impression too. Thank you, @aeschweik, for confirming it!

from ltopers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.