Can't create backups

My YunoHost server

Hardware: Raspberry Pi4
YunoHost version: 11.2.3

Description of my issue

I have been trying to update next cloud and keep getting a backup error as mentioned down here, but also a full backup from the interface gives me an error and does not show there, but I see the backup files in /home/yunohost.backup/archives.

Here are some logs.

https://paste.yunohost.org/raw/umagojajev

Error: Could not add the files '/var/www/nextcloud' (named in the archive 'apps/nextcloud/backup/var/www/nextcloud')

Do you have some sort of external storage mounted on /home/yunohost.app or something like this ?

No, just one HDD connected to the rpi4, no micro SD.

Input/output error

Do you know how to fix it?

Not really. It’s most likely a hardware issue, bad cable, dying disk, etc…
Try checking disk health status with smartmontools

hmm it can be, I am using an old harddisk that i removed from an old laptop…I will check it
just run a fast test and got

Error 2779 occurred at disk power-on lifetime: 14448 hours

Full log:

# smartctl --all /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-6.1.21-v8+] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Laptop SSHD
Device Model:     ST1000LM014-1EJ164
Serial Number:    W771BJ2L
LU WWN Device Id: 5 000c50 082d45833
Firmware Version: DEMB
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Aug  6 12:12:19 2023 BST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  150) seconds.
Offline data collection
capabilities: 			 (0x73) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 198) minutes.
Conveyance self-test routine
recommended polling time: 	 (   3) minutes.
SCT capabilities: 	       (0x10b5)	SCT Status supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   106   084   006    Pre-fail  Always       -       223276479
  3 Spin_Up_Time            0x0003   097   097   085    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   097   097   020    Old_age   Always       -       3548
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
  7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always       -       39050135160
  9 Power_On_Hours          0x0032   084   084   000    Old_age   Always       -       14541
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       3764
184 End-to-End_Error        0x0032   055   055   099    Old_age   Always   FAILING_NOW 45
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       2729
188 Command_Timeout         0x0032   100   096   000    Old_age   Always       -       150328770679
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   067   048   045    Old_age   Always       -       33 (Min/Max 30/39)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       180
193 Load_Cycle_Count        0x0032   086   086   000    Old_age   Always       -       28621
194 Temperature_Celsius     0x0022   033   052   000    Old_age   Always       -       33 (0 11 0 0 0)
197 Current_Pending_Sector  0x0012   100   094   000    Old_age   Always       -       8
198 Offline_Uncorrectable   0x0010   100   094   000    Old_age   Offline      -       8
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       12
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       14315 (72 186 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       52885333931
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       269586109860
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 2783 (device log contains only the most recent five errors)
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 2783 occurred at disk power-on lifetime: 14449 hours (602 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c0 6f 4c 00  Error: UNC at LBA = 0x004c6fc0 = 5009344

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 c0 6f 4c 40 00      00:40:28.749  READ FPDMA QUEUED
  35 00 38 08 9f 28 40 00      00:40:28.749  WRITE DMA EXT
  e1 00 0f 00 00 00 00 00      00:40:28.683  IDLE IMMEDIATE
  ef 03 46 00 00 00 00 00      00:40:28.683  SET FEATURES [Set transfer mode]
  ef 02 00 00 00 00 00 00      00:40:28.682  SET FEATURES [Enable write cache]

Error 2782 occurred at disk power-on lifetime: 14449 hours (602 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c0 6f 4c 00  Error: WP at LBA = 0x004c6fc0 = 5009344

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 38 08 9f 28 40 00      00:40:27.605  WRITE FPDMA QUEUED
  60 00 40 c0 6f 4c 40 00      00:40:24.207  READ FPDMA QUEUED
  ea 00 00 00 00 00 00 00      00:40:22.494  FLUSH CACHE EXT
  61 00 08 00 9f 28 40 00      00:40:22.494  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 00 00      00:40:22.492  FLUSH CACHE EXT

Error 2781 occurred at disk power-on lifetime: 14448 hours (602 days + 0 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c0 6f 4c 00  Error: UNC at LBA = 0x004c6fc0 = 5009344

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 c0 6f 4c 40 00      00:01:26.933  READ FPDMA QUEUED
  35 00 18 b8 d0 29 40 00      00:01:26.933  WRITE DMA EXT
  e1 00 0f 00 00 00 00 00      00:01:26.867  IDLE IMMEDIATE
  ef 03 46 00 00 00 00 00      00:01:26.866  SET FEATURES [Set transfer mode]
  ef 02 00 00 00 00 00 00      00:01:26.866  SET FEATURES [Enable write cache]

Error 2780 occurred at disk power-on lifetime: 14448 hours (602 days + 0 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c0 6f 4c 00  Error: WP at LBA = 0x004c6fc0 = 5009344

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 18 b8 d0 29 40 00      00:01:26.185  WRITE FPDMA QUEUED
  60 00 40 c0 6f 4c 40 00      00:01:22.363  READ FPDMA QUEUED
  61 00 08 80 82 58 40 00      00:01:22.345  WRITE FPDMA QUEUED
  61 00 08 ff ff ff 4f 00      00:01:22.345  WRITE FPDMA QUEUED
  61 00 08 90 e3 73 43 00      00:01:22.344  WRITE FPDMA QUEUED

Error 2779 occurred at disk power-on lifetime: 14448 hours (602 days + 0 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c0 6f 4c 00  Error: WP at LBA = 0x004c6fc0 = 5009344

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 08 78 28 88 48 00   9d+02:38:11.062  WRITE FPDMA QUEUED
  61 00 08 80 20 88 48 00   9d+02:38:11.062  WRITE FPDMA QUEUED
  61 00 08 00 20 88 48 00   9d+02:38:11.062  WRITE FPDMA QUEUED
  61 00 08 88 20 c9 43 00   9d+02:38:11.062  WRITE FPDMA QUEUED
  61 00 08 d8 24 c8 43 00   9d+02:38:11.062  WRITE FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%       390         -
# 2  Short offline       Completed without error       00%       390         -
# 3  Short offline       Completed without error       00%       362         -
# 4  Short offline       Completed without error       00%       308         -
# 5  Short offline       Completed without error       00%       280         -
# 6  Short offline       Completed without error       00%       164         -
# 7  Short offline       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.