Find answers from the community

Updated 5 months ago

container exited with code 247

At a glance

The community member is experiencing an issue with their Flask server, where the backend crashes when running the line of code mm_index = MultiModalVectorStoreIndex(text_nodes + image_nodes). The error they are encountering is "container exited with code 247". Other community members have provided some suggestions, including a link to a related Stack Overflow question, and one community member has indicated that the issue was resolved by switching to an instance with more RAM.

Useful resources
Hi, has anyone experienced container exited with code 247 when trying to run a flask server when running this:
mm_index = MultiModalVectorStoreIndex(text_nodes + image_nodes)?
The full backend crashed when trying to run this line of code.
A
W
4 comments
The full code looks like this:

print('1111111111') image_docs = SimpleDirectoryReader( input_dir=new_output_folder, required_exts=[".png"] ).load_data() text_docs = SimpleDirectoryReader( input_dir=new_output_folder, required_exts=[".txt"] ).load_data() print('22222222222') node_parser = SentenceSplitter.from_defaults() image_nodes = node_parser.get_nodes_from_documents(image_docs) text_nodes = node_parser.get_nodes_from_documents(text_docs) print('333333333333') print(image_nodes) print(text_nodes) mm_index = MultiModalVectorStoreIndex(text_nodes + image_nodes) print('444444444444')
container exited with code 247
yes thank you! Turns out that memory is just not enough. After switching to an instance with more RAM, problem solved
Add a reply
Sign up and join the conversation on Discord