Search Our Support Knowledge Base

Find product articles and support information.

My Cloud Amazon S3 Backup Failure

My Cloud Amazon S3 Backup Failure
View the Use of Third-Party Software or Websites disclaimer.
Western Digital Support cannot help with third-party software or hardware.


Description


My Cloud backups to Amazon S3 fail.


Resolution


Try one fix at a time and test before doing to the next step.


Amazon Regions


Try a different region.
Regions not listed are not supported.
Undefined means not supported.


  • United States
  • Northern California
  • Ireland
  • Singapore
  • Tokyo
  • Oregon (Undefined and not supported)
  • Sydney (Undefined and not supported)
  • Sau Paulo (Undefined and not supported)




Network and Router


  1. Make sure the network, router and ISP allow Amazon S3 inbound and outbound traffic.
    Access on TCP/IP ports 80 and 443 is needed.
    Contact the Internet Service Provider (ISP).

  2. Get the name and IP address of s3.amazonaws.com.

  3. Open Windows Command or macOS Terminal.
    Copy and paste this command.
    Press the enter key on the keyboard.

    nslookup s3.amazonaws.com

    Image



    The IP address and name may not be the same in the example above.


Amazon Bucket

  1. Make sure the S3 Buckets meet the Amazon Bucket Restrictions and Limitations and Bucket Naming.

    Need more help?
    Amazon Article: Bucket restrictions and limitations


    • Best Practices

      • Letters and Numbers
        Use lower case letters (a-z) or numbers (0-9).
        Do not use capital letters.

          mycloudbackups (Good)
          MyCloudBackups (Bad)

      • Do not use special characters.

          mycloudbackups (Good)
          my_cloud_backups (Bad)

      • Case Sensitive
        Make sure the Bucket Name in S3 is the same in the My Cloud config.
        Amazons3, amazons3, amaZons3, AmazonS3 or AMAZONS3 are different buckets.

      • Backup Bucket
        Create a special bucket for My Cloud backups.

      • Top Level Bucket
        Use the top-level bucket instead of a folder inside of it.
          All Buckets/mycloudbackups (Good)
          All Buckets/backups/mycloudbackups (Bad)

  2. Use the correct Amazon Access and Secret Access Key (Private Key) on the My CLoud.

    • Remove white space that could have been copied.
    • Check for typos.

  3. Check Network Time Protocol (NTP) on the My Cloud.

    • NTP must be turned on.
    • The My Cloud must be in sync with the Amazon S3 service region being used.
    • Add an In Region NTP server.
      • My Cloud Dashboard -> Settings -> Network -> NTP

  4. Make sure the bucket is set to List, Upload and Delete.

  5. Make sure the Amazon and My Cloud Regions match up.


My Cloud Errors

Amazon S3 Backup errors are in the /etc/s3.conf file.
Use SSH to see the file.
Cross check the error_code in the file with the S3 Error Code Chart.


  1. Turn on SSH and access the My Cloud.

    Need more help?
    Answer ID 26497: How to Access WD My Cloud Using SSH (Secure Shell)

  2. Copy and paste this command.
    Press the enter key on the keyword.
    Get the error_code.
    Find the error_code in the S3 Error Code Chart.

    cat /etc/s3.conf

    EXAMPLE
    # Example s3 configuration
    Usr admin Job Ex2UltraBackups dir 0
    state 4
    error_code 96
    count 0
    backuptype 0 location 5
    AccessesKey XXXXXXXXXXXXXXXXXXX=
    PrivateKey XXXXXXXXXXXXXXXXXXXXXXXXXX=
    BucketPath mycloudbackups
    NASPath /mnt/HD/HD_a2/AmazonS3
    Encrypt 0
    Schedule Mode=Daily,Date=,Wday=1,Time=1:0

S3 Error Code Chart

    Code

    Meaning

    0

    S3StatusOK

    1

    S3StatusInternalError

    2

    S3StatusOutOfMemory

    3

    S3StatusInterrupted

    4

    S3StatusInvalidBucketNameTooLong

    5

    S3StatusInvalidBucketNameFirstCharacter

    6

    S3StatusInvalidBucketNameCharacter

    7

    S3StatusInvalidBucketNameCharacterSequence

    8

    S3StatusInvalidBucketNameTooShort

    9

    S3StatusInvalidBucketNameDotQuadNotation

    10

    S3StatusQueryParamsTooLong

    11

    S3StatusFailedToInitializeRequest

    12

    S3StatusMetaDataHeadersTooLong

    13

    S3StatusBadMetaData

    14

    S3StatusBadContentType

    15

    S3StatusContentTypeTooLong

    16

    S3StatusBadMD5

    17

    S3StatusMD5TooLong

    18

    S3StatusBadCacheControl

    19

    S3StatusCacheControlTooLong

    20

    S3StatusBadContentDispositionFilename

    21

    S3StatusContentDispositionFilenameTooLong

    22

    S3StatusBadContentEncoding

    23

    S3StatusContentEncodingTooLong

    24

    S3StatusBadIfMatchETag

    25

    S3StatusIfMatchETagTooLong

    26

    S3StatusBadIfNotMatchETag

    27

    S3StatusIfNotMatchETagTooLong

    28

    S3StatusHeadersTooLong

    29

    S3StatusKeyTooLong

    30

    S3StatusUriTooLong

    31

    S3StatusXmlParseFailure

    32

    S3StatusEmailAddressTooLong

    33

    S3StatusUserIdTooLong

    34

    S3StatusUserDisplayNameTooLong

    35

    S3StatusGroupUriTooLong

    36

    S3StatusPermissionTooLong

    37

    S3StatusTargetBucketTooLong

    38

    S3StatusTargetPrefixTooLong

    39

    S3StatusTooManyGrants

    40

    S3StatusBadGrantee

    41

    S3StatusBadPermission

    42

    S3StatusXmlDocumentTooLarge

    43

    S3StatusNameLookupError

    44

    S3StatusFailedToConnect

    45

    S3StatusServerFailedVerification

    46

    S3StatusConnectionFailed

    47

    S3StatusAbortedByCallback

    48

    S3StatusErrorAccessDenied

    49

    S3StatusErrorAccountProblem

    50

    S3StatusErrorAmbiguousGrantByEmailAddress

    51

    S3StatusErrorBadDigest

    52

    S3StatusErrorBucketAlreadyExists

    53

    S3StatusErrorBucketAlreadyOwnedByYou

    54

    S3StatusErrorBucketNotEmpty

    55

    S3StatusErrorCredentialsNotSupported

    56

    S3StatusErrorCrossLocationLoggingProhibited

    57

    S3StatusErrorEntityTooSmall

    58

    S3StatusErrorEntityTooLarge

    59

    S3StatusErrorExpiredToken

    60

    S3StatusErrorIllegalVersioningConfigurationException

    61

    S3StatusErrorIncompleteBody

    62

    S3StatusErrorIncorrectNumberOfFilesInPostRequest

    63

    S3StatusErrorInlineDataTooLarge

    64

    S3StatusErrorInternalError

    65

    S3StatusErrorInvalidAccessKeyId

    66

    S3StatusErrorInvalidAddressingHeader

    67

    S3StatusErrorInvalidArgument

    68

    S3StatusErrorInvalidBucketName

    69

    S3StatusErrorInvalidBucketState

    70

    S3StatusErrorInvalidDigest

    71

    S3StatusErrorInvalidLocationConstraint

    72

    S3StatusErrorInvalidObjectState

    73

    S3StatusErrorInvalidPart

    74

    S3StatusErrorInvalidPartOrder

    75

    S3StatusErrorInvalidPayer

    76

    S3StatusErrorInvalidPolicyDocument

    77

    S3StatusErrorInvalidRange

    78

    S3StatusErrorInvalidRequest

    79

    S3StatusErrorInvalidSecurity

    80

    S3StatusErrorInvalidSOAPRequest

    81

    S3StatusErrorInvalidStorageClass

    82

    S3StatusErrorInvalidTargetBucketForLogging

    83

    S3StatusErrorInvalidToken

    84

    S3StatusErrorInvalidURI

    85

    S3StatusErrorKeyTooLong

    86

    S3StatusErrorMalformedACLError

    87

    S3StatusErrorMalformedPOSTRequest

    88

    S3StatusErrorMalformedXML

    89

    S3StatusErrorMaxMessageLengthExceeded

    90

    S3StatusErrorMaxPostPreDataLengthExceededError

    91

    S3StatusErrorMetadataTooLarge

    92

    S3StatusErrorMethodNotAllowed

    93

    S3StatusErrorMissingAttachment

    94

    S3StatusErrorMissingContentLength

    95

    S3StatusErrorMissingRequestBodyError

    96

    S3StatusErrorMissingSecurityElement

    97

    S3StatusErrorMissingSecurityHeader

    98

    S3StatusErrorNoLoggingStatusForKey

    99

    S3StatusErrorNoSuchBucket

    100

    S3StatusErrorNoSuchKey

    101

    S3StatusErrorNoSuchLifecycleConfiguration

    102

    S3StatusErrorNoSuchUpload

    103

    S3StatusErrorNoSuchVersion

    104

    S3StatusErrorNotImplemented

    105

    S3StatusErrorNotSignedUp

    106

    S3StatusErrorNotSuchBucketPolicy

    107

    S3StatusErrorOperationAborted

    108

    S3StatusErrorPermanentRedirect

    109

    S3StatusErrorPreconditionFailed

    110

    S3StatusErrorRedirect

    111

    S3StatusErrorRestoreAlreadyInProgress

    112

    S3StatusErrorRequestIsNotMultiPartContent

    113

    S3StatusErrorRequestTimeout

    114

    S3StatusErrorRequestTimeTooSkewed

    115

    S3StatusErrorRequestTorrentOfBucketError

    116

    S3StatusErrorSignatureDoesNotMatch

    117

    S3StatusErrorServiceUnavailable

    118

    S3StatusErrorSlowDown

    119

    S3StatusErrorTemporaryRedirect

    120

    S3StatusErrorTokenRefreshRequired

    121

    S3StatusErrorTooManyBuckets

    122

    S3StatusErrorUnexpectedContent

    123

    S3StatusErrorUnresolvableGrantByEmailAddress

    124

    S3StatusErrorUserKeyMustBeSpecified

    125

    S3StatusErrorUnknown

    126

    S3StatusHttpErrorMovedTemporarily

    127

    S3StatusHttpErrorBadRequest

    128

    S3StatusHttpErrorForbidden

    129

    S3StatusHttpErrorNotFound

    130

    S3StatusHttpErrorConflict

    131

    S3StatusHttpErrorUnknown



Amazon S3 Bucket Logs

View the Use of Third-Party Software or Websites disclaimer.
Western Digital Support cannot help with third-party software or hardware.

Turn On Logging

  1. Sign into Amazon Web Service (AWS) Console.

    Need more help?
    Amazon Web Service (AWS) Console Login

  2. Turn on S3 Bucket Logging.

    Need more help?
    Amazon Article: Logging requests with server access logging

  3. Reboot the My Cloud.

  4. Start and S3 backup.
    This will create the Amazon S3 log.


Analyze Logs


Amazon S3 logs are inside the Amazon Bucket.
They are not on the My Cloud.

    EXAMPLE:

    Image



The S3log file has error codes and messages about the backup.
Check with Amazon Technical Support for help with the logs.

Need more help?
Amazon Technical Support


  1. Search for the errors in S3log.

      EXAMPLES:

      The REST API command to GET LIFECYCLE details on the bucket returns an error 404 NoSuchLifecycleConfiguration

      57c24860fe0d90b3e71a9b27f5575930570bb628786bc42b0905cdbef6b92c05 aypnasbackups [24/Aug/2016:22:15:11 +0000] 148.75.232.27 57c24860fe0d90b3e71a9b27f5575930570bb628786bc42b0905cdbef6b92c05 564206E7668C54CC REST.GET.LIFECYCLE - "GET /mycloudbackups?lifecycle HTTP/1.1" 404 NoSuchLifecycleConfiguration 314 - 14 - "-" "S3Console/0.4" -

      The REST API command to PUT OBJECT (send data to S3 bucket) fails with: Error 400 RequestTimeout

      57c24860fe0d90b3e71a9b27f5575930570bb628786bc42b0905cdbef6b92c05 aypnasbackups [30/Aug/2016:16:14:16 +0000] 148.75.232.27 arn:aws:iam::524595918159:user/mycloud 86B9C0BBB7C17489 REST.PUT.OBJECT 1stPublicFull_20160830153625/Shared%2BApps/MS%2BOffice%2B2010/MS%2BOffice%2B2010%2BProfessional%2Bx86%2B%252B%2BCrack%2BToolkit%2BPro/Admin/ja-jp/access14.opal "PUT /mycloudbackups/1stPublicFull_20160830153625/Shared+Apps/MS+Office+2010/MS+Office+2010+Professional+x86+%2B+Crack+Toolkit+Pro/Admin/ja-jp/access14.opal HTTP/1.1" 400 RequestTimeout 360 87566 20032 - "-" "Mozilla/4.0 (Compatible; s3; libs3 2.0; Linux armv7l)" -


  2. Check the Backup Error Code Chart.
    Check online resources for the meaning of the messages.

      REST Error Responses
      http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses

      Error Code Chart
      http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList

      Operations on Service
      http://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceOps.html

      Operations on Buckets
      http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketOps.html

      Operations on Objects
      http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectOps.html

Return to Top


Details
Answer ID 1053
Published 08/20/2018 12:08 AM
Updated 03/28/2024 01:56 PM

Please rate the helpfulness of this answer