AlgorithmError: Exit Code: 139
After training for ~18 hours on a ml.p2.8xlarge, my algorithm errors out throwing the following error message: AlgorithmError: Exit Code: 139. This is very nondescript and very hard to debug. My logs in Cloud Watch have no indication of the failure as well. Do you have any suggestions on how to to avoid this in the future as this is costly in both time and $?
Also, now that I have a partially trained model with saved checkpoints on S3, what is the proper way to load the layer weights using SageMaker as I don't want to start from scratch? Below is relevant code and log files:
Entry Point Script:
import numpy as np
import os
import json
import pickle
import sys
import traceback
import tensorflow as tf
from tensorflow.python.estimator.export.export import build_raw_serving_input_receiver_fn
from tensorflow.python.keras._impl.keras.layers import Dense
from tensorflow.python.keras._impl.keras.layers import Dropout
from tensorflow.python.keras._impl.keras.layers import LSTM
from tensorflow.python.keras._impl.keras.layers.embeddings import Embedding
from tensorflow.python.keras._impl.keras.optimizers import Adam
from tensorflow.python.keras._impl.keras.callbacks import ModelCheckpoint
from tensorflow.python.keras._impl.keras.callbacks import CSVLogger
from tensorflow.python.keras._impl.keras.callbacks import EarlyStopping
from tensorflow.python.keras._impl.keras.callbacks import LambdaCallback
from tensorflow.python.keras._impl.keras import metrics
from tensorflow.python.keras._impl.keras.models import Model
from tensorflow.python.keras._impl.keras import layers
from tensorflow.python.keras._impl.keras import Input
NUM_CLASSES = 2
NUM_DATA_BATCHES = 5
NUM_EXAMPLES_PER_EPOCH_FOR_TRAIN = 10000 * NUM_DATA_BATCHES
BATCH_SIZE = 256
INPUT_TENSOR_NAME_1 = 'text1' # needs to match the name of the first layer + "_input"
INPUT_TENSOR_NAME_2 = 'text2' # needs to match the name of the first layer + "_input"
INPUT_TENSOR_NAME_3 = 'title1' # needs to match the name of the first layer + "_input"
INPUT_TENSOR_NAME_4 = 'title2' # needs to match the name of the first layer + "_input"
def keras_model_fn(training_dir):
"""keras_model_fn receives hyperparameters from the training job and returns a compiled keras model.
The model will transformed in a TensorFlow Estimator before training and it will saved in a TensorFlow Serving
SavedModel in the end of training.
Args:
hyperparameters: The hyperparameters passed to SageMaker TrainingJob that runs your TensorFlow training
script.
Returns: A compiled Keras model
"""
text_input_1 = Input(shape=(None,), dtype='int32', name='text1')
embedded_text_1 = layers.Embedding(50000,300)(text_input_1)
embed_drop_1=Dropout(.5)(embedded_text_1)
text_input_2 = Input(shape=(None,), dtype='int32', name='text2')
embedded_text_2 = layers.Embedding(50000,300,)(text_input_2)
embed_drop_2=Dropout(.5)(embedded_text_2)
shared_lstm_text = LSTM(256)
left_output_text = shared_lstm_text(embed_drop_1)
right_output_text = shared_lstm_text(embed_drop_2)
title_input_1 = Input(shape=(None,), dtype='int32', name='title1')
embedded_title_1 = layers.Embedding(50000,300)(title_input_1)
embed_drop_3=Dropout(.5)(embedded_title_1)
title_input_2 = Input(shape=(None,), dtype='int32', name='title2')
embedded_title_2 = layers.Embedding(50000,300)(title_input_2)
embed_drop_4=Dropout(.5)(embedded_title_2)
shared_lstm_title = LSTM(128)
left_output_title = shared_lstm_title(embed_drop_3)
right_output_title = shared_lstm_title(embed_drop_4)
# Calculates the distance as defined by the MaLSTM model
# malstm_distance = Merge(mode=lambda x: exponent_neg_manhattan_distance(x[0], x[1]), output_shape=lambda x: (x[0][0], 1))([left_output, right_output])
merged = layers.concatenate([left_output_text, right_output_text,left_output_title, right_output_title], axis=-1)
drop_1 = Dropout(.3)(merged)
dense_1 = layers.Dense(256, activation='sigmoid')(drop_1)
drop_2 = Dropout(.3)(dense_1)
dense_2 = layers.Dense(128, activation='sigmoid')(drop_2)
predictions = layers.Dense(1, activation='sigmoid')(dense_2)
# Pack it all up into a model
shared_layer_model = Model([text_input_1, text_input_2,title_input_1,title_input_2], [predictions])
shared_layer_model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
return shared_layer_model
def train_input_fn(training_dir , hyperparameters = None):
return _input_fn(training_dir,"train")
def eval_input_fn(training_dir , hyperparameters = None):
return _input_fn(training_dir,"dev")
def serving_input_fn(hyperparameters = None):
text_ph_1 = tf.placeholder(tf.int32, shape=[None,500])
text_ph_2 = tf.placeholder(tf.int32, shape=[None,500])
title_ph_1 = tf.placeholder(tf.int32, shape=[None,20])
title_ph_2 = tf.placeholder(tf.int32, shape=[None,20])
#label is not required since serving is only used for inference
feature_placeholders = {"text1":text_ph_1,"text2":text_ph_2,"title1":title_ph_1,"title2":title_ph_2}
return build_raw_serving_input_receiver_fn(feature_placeholders)()
def _input_fn(training_dir,mode):
if mode=="train":
train_text_1=np.vstack((np.load(training_dir+"/negative_"+mode+"_text_1.npy"),np.load(training_dir+"/positive_"+mode+"_text_1.npy")))
train_text_2=np.vstack((np.load(training_dir+"/negative_"+mode+"_text_2.npy"),np.load(training_dir+"/positive_"+mode+"_text_2.npy")))
else:
train_text_1=np.load(training_dir+"/"+mode+"_text_1.npy")
train_text_2=np.load(training_dir+"/"+mode+"_text_2.npy")
train_title_1=np.load(training_dir+"/"+mode+"_title_1.npy")
train_title_2=np.load(training_dir+"/"+mode+"_title_2.npy")
y=np.load(training_dir+"/"+mode+"_targets.npy")
y=y.reshape((y.shape[0],1)).astype(np.float32)
permutation = np.random.permutation(train_text_1.shape[0])
train_text_1=train_text_1[permutation]
train_text_2=train_text_2[permutation]
train_title_1=train_title_1[permutation]
train_title_2=train_title_2[permutation]
y=y[permutation]
x={INPUT_TENSOR_NAME_1: train_text_1,
INPUT_TENSOR_NAME_2: train_text_2,
INPUT_TENSOR_NAME_3: train_title_1,
INPUT_TENSOR_NAME_4: train_title_2}
dataset=tf.estimator.inputs.numpy_input_fn(x=x,y=y,batch_size=BATCH_SIZE,num_epochs=10,shuffle=False)()
return dataset
Here is my train script:
#!/usr/bin/env python
import sagemaker
from sagemaker.tensorflow import TensorFlow
TRAING_DATA_BUCKET = "s3://some_folder"
def main():
estimator = TensorFlow(
entry_point='shared_model_lstm.py',
role="some-role",
training_steps=100000,
evaluation_steps=100,
hyperparameters={'throttle_secs': 30},
train_instance_count=1,
train_instance_type='ml.p2.8xlarge',
train_volume_size=200,
base_job_name='shared-model-lstm')
estimator.fit(TRAING_DATA_BUCKET,run_tensorboard_locally=True)
if __name__ == "__main__": main()
Below is relevant log files (last several lines - doesn't say much):
2018-04-06 23:42:15.351004: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:15.400140: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2342151523058135350
2018-04-06 23:42:16.075232: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:32.946578: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2342151523058135400
2018-04-06 23:42:33.049978: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:33.063915: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.038550: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.047092: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.083440: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2342461523058166046
2018-04-06 23:42:46.083609: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.094638: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.124967: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.144941: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.152613: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2342461523058166144
2018-04-06 23:42:46.152764: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.160263: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.169976: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.179137: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.192994: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.202661: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:42:46.218745: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.299974: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.309266: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.336437: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2343021523058182309
2018-04-06 23:43:02.336599: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.344607: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.354895: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.363348: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.487307: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2343021523058182363
2018-04-06 23:43:02.487519: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.498389: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.523885: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.530996: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.605757: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.611172: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.620198: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.628240: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.638305: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.647787: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.673480: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.679415: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.688352: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.697445: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.709208: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.717317: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.741315: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.746743: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.757770: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.763678: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:02.774460: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.095630: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.101073: E tensorflow/core/platform/s3/aws_logging.cc:60] No response body. Response code: 404
2018-04-06 23:43:03.101105: W tensorflow/core/platform/s3/aws_logging.cc:57] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.
2018-04-06 23:43:03.101224: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.181484: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.219850: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2343031523058183179
2018-04-06 23:43:03.220274: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.233260: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03.372550: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:43:03,449 INFO - tensorflow - Skip the current checkpoint eval due to throttle secs (600 secs).
2018-04-06 23:45:45,033 INFO - tensorflow - global_step/sec: 0.370513
2018-04-06 23:45:45,033 INFO - tensorflow - loss = 0.42143196, step = 18401 (269.512 sec)
2018-04-06 23:45:45.033916: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:45:45.345700: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:45:45.713813: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:45:45.720086: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:47:16,508 INFO - tensorflow - Saving checkpoints for 18442 into s3://sagemaker-us-west-2-304913402249/shared-model-lstm-2018-04-06-06-08-05-338/checkpoints/model.ckpt.
2018-04-06 23:47:16.568499: I tensorflow/core/platform/s3/aws_logging.cc:54] Unable to open config file /root//.aws/credentials for reading.
2018-04-06 23:47:16.568523: I tensorflow/core/platform/s3/aws_logging.cc:54] Failed to reload configuration.
2018-04-06 23:47:16.568532: I tensorflow/core/platform/s3/aws_logging.cc:54] Unable to open config file /root//.aws/config for reading.
2018-04-06 23:47:16.568537: I tensorflow/core/platform/s3/aws_logging.cc:54] Failed to reload configuration.
2018-04-06 23:47:16.568544: I tensorflow/core/platform/s3/aws_logging.cc:54] Credentials have expired or will expire, attempting to repull from ECS IAM Service.
2018-04-06 23:47:16.568583: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:47:16.569375: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:47:16.627221: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2347161523058436568
2018-04-06 23:47:17.300766: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:07.633451: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2347161523058436627
2018-04-06 23:48:07.736073: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:07.750050: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.252091: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.265392: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.314588: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2348321523058512265
2018-04-06 23:48:32.314771: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.328950: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.356214: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.366791: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.378581: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2348321523058512366
2018-04-06 23:48:32.378803: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.388069: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.398054: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.444859: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.455645: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.469908: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:32.485158: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.874818: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.885161: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.901810: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2348451523058525884
2018-04-06 23:48:45.902060: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.914250: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.927558: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.940336: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.962258: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2348451523058525940
2018-04-06 23:48:45.962496: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:45.975902: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.002700: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.011099: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.042188: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.049864: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.060005: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.068072: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.081014: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.090594: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.124183: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.134254: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.143929: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.155619: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.165907: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.177792: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.203504: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.212080: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.221830: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.231886: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.241352: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.558991: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.564062: E tensorflow/core/platform/s3/aws_logging.cc:60] No response body. Response code: 404
2018-04-06 23:48:46.564093: W tensorflow/core/platform/s3/aws_logging.cc:57] If the signature check failed. This could be because of a time skew. Attempting to adjust the signer.
2018-04-06 23:48:46.564214: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.645112: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.821491: I tensorflow/core/platform/s3/aws_logging.cc:54] Deleting file: /tmp/s3_filesystem_XXXXXX20180406T2348461523058526643
2018-04-06 23:48:46.822033: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.835136: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.889535: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.968191: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:46.968512: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.033447: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.153573: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.387868: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.393971: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.403689: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.411664: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.422629: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.432473: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.459599: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.469829: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.482390: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.
2018-04-06 23:48:47.492789: I tensorflow/core/platform/s3/aws_logging.cc:54] Connection has been released. Continuing.```
Any help would be much appreciated; either to avoid this error or the proper way to partially trained TF models into Keras via checkpoints.
Thanks you for your continued support and development of Sagemaker!
Hi @samuelhkahn ,
Sorry to see this. We are working on investigation and will definitely refund you.
To better assist you, we need information on your specific job to debug. However, you should not post your account information here. Please private message it to me through the AWS forums: https://forums.aws.amazon.com/profile.jspa?userID=435518 And then post here to let me know that you've done so.
Remember to only send your information to verified Amazonians! Look for the Amazon icon next to the username in the profile.
We need the following information:
- account ID
- training job name
- sagemaker region
And if you want to restart training job from checkpoint, just set the argument checkpoint_path when creating the tensorflow estimator.
Doc: checkpoint_path S3 location where checkpoint data will saved and restored. The default location is bucket_name/job_name/checkpoint. If the location already has checkpoints before the training starts, the model will restore state from the last saved checkpoint. It is very useful to restart a training. See Restoring from checkpoints.
Code: https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/tensorflow/estimator.py#L156
Sorry again for the inconvenience. And thanks for using sagemaker.
Hi @yangaws,
Thanks for the response! I hae gone ahead and responsded to you with the relevant information on the AWS forums.
Any updates on this @yangaws ?
Hi @samuelhkahn ,
I messaged you on AWS forum with some updates several days ago. If things include your data, we don't update that in public places.
Sorry for the inconvenience.
Hi @samuelhkahn ,
I private-messaged you the refund info on AWS forum. Feel free to reach me if you have any questions.
Thanks for the patience!
Hello @yangaws,
I'm having the exact same error message for a similar project using text embeddings on SageMaker. Could the public get more information about error 139? This seems to be the only place that mentions it.
I'm also going to PM you with my account and job details if you could please have a look.
Best, Bruno
Also @yangaws, I'm having trouble finding where to PM you based on the link you shared (https://forums.aws.amazon.com/profile.jspa?userID=435518 )

@Brunods1001
You may be logged in via a method that doesn't allow for private messaging, perhaps through an IAM account login or similar - unfortunately I couldn't find any docs on this aspect of the AWS forums. Here's how the UI looks for me:
Does that help?
Closing due to inactivity. Feel free to reopen if necessary.