Error on /etc/cron.weekly/openmediavault-update-smart-drivedb: broken pipe

  • This is what I get weekly:


    /etc/cron.weekly/openmediavault-update-smart-drivedb:
    Updating smartmontools 5.41 drive database ...
    sed: couldn't write 32 items to stdout: Broken pipe
    cat: write error: Broken pipe
    /usr/share/smartmontools/drivedb.h updated from branches/RELEASE_5_41_DRIVEDB


    Any tips on how to resolve this?


    Thanks, Ralph

    ASRock H97 Pro4 | 8Gb 1600 | i3 4130T | 3x WD Red 4TB with SnapRAID | Backup to Crashplan & External HDD

  • I'm getting the same error. No idea what it means.

    OMV 5.6.26-1 (Usul); Shuttle XPC SH67H3; Intel Core i5-2390T; 8 GB DDR3-1333 RAM; 128GB SanDisk Z400s SSD (OS); Samsung 860 EVO 1TB (primary storage); WD Red 2TB (backup and archive storage).

  • Yes, but I don't remember now how I did it. I should have posted back. Sorry 'bout that.

    OMV 5.6.26-1 (Usul); Shuttle XPC SH67H3; Intel Core i5-2390T; 8 GB DDR3-1333 RAM; 128GB SanDisk Z400s SSD (OS); Samsung 860 EVO 1TB (primary storage); WD Red 2TB (backup and archive storage).

  • You might try searching for that error as it relates to Debian.

    OMV 5.6.26-1 (Usul); Shuttle XPC SH67H3; Intel Core i5-2390T; 8 GB DDR3-1333 RAM; 128GB SanDisk Z400s SSD (OS); Samsung 860 EVO 1TB (primary storage); WD Red 2TB (backup and archive storage).

  • I mean search the web, not just OMV forums.

    OMV 5.6.26-1 (Usul); Shuttle XPC SH67H3; Intel Core i5-2390T; 8 GB DDR3-1333 RAM; 128GB SanDisk Z400s SSD (OS); Samsung 860 EVO 1TB (primary storage); WD Red 2TB (backup and archive storage).

  • I think I found it:
    https://www.thomas-krenn.com/d…ve_Database_aktualisieren


    update-smart-drivedb verwendet veralteten Download-Link


    Aufgrund von Änderungen in der Infrastruktur von Sourceforge stimmt seit mindestens Anfang August 2013 der ursprüngliche Download-Link in update-smart-drivedb nicht mehr.[2][3]


    Es erscheint dabei folgende Fehlermeldung:


    $ sudo update-smart-drivedb
    /usr/share/smartmontools/drivedb.h.error: rejected by /usr/sbin/smartctl, probably no longer compatible


    Durch Änderung der URL in /usr/sbin/update-smart-drivedb kann das Problem behoben werden:


    # ViewVC repository browser
    ## MANUALLY UPDATED: commented orginial URL and inserted URL from script of smartmontools v6.2 package.
    ## SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
    SRCEXPR='http://sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'


    After changing the link with nano I could run update-smart-drivedb again and everything the email was fixed!


    Hope this helps!

  • For me, even after the above update I got the same error. To make it work, I had to replace 'http' with 'https' in the file, so:
    $ nano /usr/sbin/update-smart-drivedb


    replace lines

    Code
    # ViewVC repository browser
    SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'


    with

    Code
    # ViewVC repository browser
    ## MANUALLY UPDATED: commented orginial URL and inserted URL from script of smartmontools v6.2 package.
    ## SRCEXPR='http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/$location/smartmontools/drivedb.h?revision=HEAD'
    SRCEXPR='https//sourceforge.net/p/smartmontools/code/HEAD/tree/$location/smartmontools/drivedb.h?format=raw'
  • mhm - I also fear I celebrated too early. With the above changes (also including the https change!) I still get the error when the weekly job is executed automatically.


    But now it gets interesting:


    The openmediavault weekly script has also the correction:


    I am no sed-Expert - but is it possible there is an issue because the script is trying to change the path again? May anyone help me please?

  • After many many testings I did a restart and the restart fixed it... Didn't know this windows approach also works on Linux ;)

    The number of times I've experienced this has lead me to always doing a reboot and testing before posting any questions. It usually has to do with a service not being restarted which I am unaware needed to be restarted, or depending on the problem just logging into a new session to refresh user permissions.

    OMV 5.6.26-1 (Usul); Shuttle XPC SH67H3; Intel Core i5-2390T; 8 GB DDR3-1333 RAM; 128GB SanDisk Z400s SSD (OS); Samsung 860 EVO 1TB (primary storage); WD Red 2TB (backup and archive storage).

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!