# Autotrain Image Classification Server Error 500

**URL:** <https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159>\
**Category:** 🤗AutoTrain\
**Created:** [May 17, 2024, 12:46pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159 "2024-05-17T12:46:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GuntramG](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GuntramG](https://discuss.huggingface.co/u/GuntramG)\
**Post date:** [May 17, 2024, 12:46pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/1 "2024-05-17T12:46:28Z")

</div>

During the past weeks, I’ve succesfully autotrained two models based on facebook/convnextv2-tiny-1k-224. It worked well.

Today, I wanted to do the same thing again (with some additional folders for training). I fired up the space and ran into my first issue: there was some error and the space wouldn’t boot, so I (foolishly) just deleted it and created a new space (went to the facebook/convnextv2-tiny-1k-224 model page → “Train” dropdown → Finetune this model without code) I created the space with Docker / Autotrain and a T4 small.

During the autotrain setup assistant, I selected facebook/convnextv2-tiny-1k-224 for Image Classification, selected the zip folder (this time containing five subfolders instead of three as I did during the last time). I clicked on “Start Training”, confirmed the pop-up, waited for a couple of seconds, then I got a server error 500 message. This was in the logs:

INFO: 10.16.2.201:9635 - “POST /ui/create\_project HTTP/1.1” 500 Internal Server Error  
ERROR: Exception in ASGI application  
Traceback (most recent call last):  
File “/app/env/lib/python3.10/site-packages/uvicorn/protocols/http/h11\_impl.py”, line 407, in run\_asgi  
result = await app( # type: ignore[func-returns-value]  
File “/app/env/lib/python3.10/site-packages/uvicorn/middleware/proxy\_headers.py”, line 69, in **call**  
return await self.app(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/fastapi/applications.py”, line 1054, in **call**  
await super(). **call** (scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/applications.py”, line 123, in **call**  
await self.middleware\_stack(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 186, in **call**  
raise exc  
File “/app/env/lib/python3.10/site-packages/starlette/middleware/errors.py”, line 164, in **call**  
await self.app(scope, receive, \_send)  
File “/app/env/lib/python3.10/site-packages/starlette/middleware/sessions.py”, line 85, in **call**  
await self.app(scope, receive, send\_wrapper)  
File “/app/env/lib/python3.10/site-packages/starlette/middleware/exceptions.py”, line 65, in **call**  
await wrap\_app\_handling\_exceptions(self.app, conn)(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/\_exception\_handler.py”, line 64, in wrapped\_app  
raise exc  
File “/app/env/lib/python3.10/site-packages/starlette/\_exception\_handler.py”, line 53, in wrapped\_app  
await app(scope, receive, sender)  
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 756, in **call**  
await self.middleware\_stack(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 776, in app  
await route.handle(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 297, in handle  
await self.app(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 77, in app  
await wrap\_app\_handling\_exceptions(app, request)(scope, receive, send)  
File “/app/env/lib/python3.10/site-packages/starlette/\_exception\_handler.py”, line 64, in wrapped\_app  
raise exc  
File “/app/env/lib/python3.10/site-packages/starlette/\_exception\_handler.py”, line 53, in wrapped\_app  
await app(scope, receive, sender)  
File “/app/env/lib/python3.10/site-packages/starlette/routing.py”, line 72, in app  
response = await func(request)  
File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 278, in app  
raw\_response = await run\_endpoint\_function(  
File “/app/env/lib/python3.10/site-packages/fastapi/routing.py”, line 191, in run\_endpoint\_function  
return await dependant.call(\*\*values)  
File “/app/env/lib/python3.10/site-packages/autotrain/app/ui\_routes.py”, line 331, in handle\_form  
raise NotImplementedError  
NotImplementedError

Googling this error didn’t help. Autotrain is supposed to be codeless, so I think I should expect either an error message that would help me solve the problem, or there is a bug on HF’s side.

Any help is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [May 17, 2024, 1:30pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/2 "2024-05-17T13:30:32Z")

</div>

thats weird. do you have screenshot of the ui? or do you know the version showed?

---

<div class="post-metadata">

**Author:** ![GuntramG](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GuntramG](https://discuss.huggingface.co/u/GuntramG)\
**Post date:** [May 17, 2024, 1:49pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/3 "2024-05-17T13:49:00Z")

</div>

![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/6/567d17d0be2eef4e9ccd57dc191570f6b853d616.png)

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [May 17, 2024, 3:15pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/4 "2024-05-17T15:15:59Z")

</div>

thank you for reporting this.  
issue has now been resolved. you should factory rebuild your autotrain space and make sure its on version 0.7.97 or higher.  
apologies for the inconvenience.

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [May 17, 2024, 7:53pm UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/5 "2024-05-17T19:53:15Z")

</div>

please let me know if you still face this issue

---

<div class="post-metadata">

**Author:** ![GuntramG](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@GuntramG](https://discuss.huggingface.co/u/GuntramG)\
**Post date:** [May 21, 2024, 8:47am UTC](https://discuss.huggingface.co/t/autotrain-image-classification-server-error-500/87159/6 "2024-05-21T08:47:14Z")

</div>

Thank you for your swift support, the issue is solved!
