Giter Site home page Giter Site logo

Comments (10)

007revad avatar 007revad commented on May 25, 2024

I'm also using DMS 7.2-63216 Beta (on a DS1821+) and I'm not getting that error message. That section of code has been all 42 versions of the script, so I'm not sure why it is causing an issue now.

Can you try the previous script version and report back if it gives the same error for you?
https://github.com/007revad/Synology_HDD_db/releases/tag/v2.1.38

from synology_hdd_db.

p1ranha avatar p1ranha commented on May 25, 2024

I have the same error with that version.

from synology_hdd_db.

007revad avatar 007revad commented on May 25, 2024

Have you got 1 or 2 HDDs in the DS723+? And what brand are they?

from synology_hdd_db.

p1ranha avatar p1ranha commented on May 25, 2024

I have 2HDD slots, only one is occupied by Seagate ST6000VN001-2BB186

SSDs:
M.2 Drive 1 - Micron (SSD) - NOT joined yet (not supported)
M.2 Drive 2 - Toshiba KBG30ZMS128G NVMe TOSHIBA 128.. (cache)

from synology_hdd_db.

007revad avatar 007revad commented on May 25, 2024

That error is occurring in a section of the script that sorts the HDD list to remove duplicates. I wonder if the bug only occurs when there's only 1 HDD. I'll run some tests and see if I can reproduce the error.

from synology_hdd_db.

007revad avatar 007revad commented on May 25, 2024

I can't reproduce the error. I've even tried with just 1 HDD.

Can you try this short test script to see if it gives you the same error:
https://gist.github.com/007revad/e7ca1c185f593b2d93cccf5bd0ccd0c2

If it does give you the same error can you run it with --debug then reply with the output.
/<path-to-script>/test.sh --debug

from synology_hdd_db.

007revad avatar 007revad commented on May 25, 2024

Okay, I have been able to reproduce the error by running the script in sh instead of bash.

It seem like you are trying to run the script with:
sh sudo -i /<path-to-script>/syno_hdd_db.sh

Instead run it with:
sudo -i /<path-to-script>/syno_hdd_db.sh

from synology_hdd_db.

p1ranha avatar p1ranha commented on May 25, 2024

I have executed it as you said, still with error:
piranha@nas:~$ sudo -i syno_hdd_db.sh
-ash: syno_hdd_db.sh: command not found

Then I did sudo mc and executed it using mc. That worked.

from synology_hdd_db.

007revad avatar 007revad commented on May 25, 2024

I'm glad you got it working.

The "syno_hdd_db.sh: command not found" error would have been because you didn't include the path to where the file is located. Like sudo i /volume1/homes/p1ranha/syno_hdd_db.sh

from synology_hdd_db.

p1ranha avatar p1ranha commented on May 25, 2024

thanks for all the help!

from synology_hdd_db.

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.