# After building image Studio is not working

**URL:** https://discuss.openedx.org/t/after-building-image-studio-is-not-working/9227
**Category:** Tutor Help
**Tags:** tutor
**Created:** [January 27, 2023, 7:29am UTC](https://discuss.openedx.org/t/after-building-image-studio-is-not-working/9227 "2023-01-27T07:29:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shukurlu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/shukurlu/32/342_2.png) [@Shukurlu](https://discuss.openedx.org/u/Shukurlu)
#### Post date: [January 27, 2023, 7:29am UTC](https://discuss.openedx.org/t/after-building-image-studio-is-not-working/9227/1 "2023-01-27T07:29:22Z")

</div>

Hi friends,

I run my custom edx-platform with this code :

> tutor images build openedx --build-arg EDX\_PLATFORM\_REPOSITORY={repository} --build-arg EDX\_PLATFORM\_VERSION={branch} --no-cache

After restarting the server the studio part not working,  
The error running platform :

> tutor\_local\_cms-worker\_1 exited with code 1  
> caddy\_1 | {“level”:“info”,“ts”:1674804291.480642,“logger”:“tls.issuance.zerossl”,“msg”:“generated EAB credentials”,“key\_id”:“bxVRSzQ5mmqMT35pIZyu9w”}  
> cms-worker\_1 | Traceback (most recent call last):  
> cms-worker\_1 | File “/openedx/edx-platform/cms/envs/production.py”, line 34, in get\_env\_setting  
> cms-worker\_1 | return os.environ[setting]  
> cms-worker\_1 | File “/opt/pyenv/versions/3.8.12/lib/python3.8/os.py”, line 675, in **getitem**  
> cms-worker\_1 | raise KeyError(key) from None  
> cms-worker\_1 | KeyError: ‘STUDIO\_CFG’  
> cms-worker\_1 |  
> cms-worker\_1 | During handling of the above exception, another exception occurred:

The error in log file :

> Traceback (most recent call last):  
> File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 47, in inner  
> response = get\_response(request)  
> File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 181, in \_get\_response  
> response = wrapped\_callback(request, \*callback\_args, \*\*callback\_kwargs)  
> File “/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py”, line 75, in inner  
> return func(\*args, \*\*kwds)  
> File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/cache.py”, line 44, in \_wrapped\_view\_func  
> response = view\_func(request, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped\_view  
> return view\_func(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_django/utils.py”, line 46, in wrapper  
> return func(request, backend, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_django/views.py”, line 31, in complete  
> return do\_complete(request.backend, \_do\_login, user=request.user,  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/actions.py”, line 45, in do\_complete  
> user = backend.complete(user=user, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/base.py”, line 40, in complete  
> return self.auth\_complete(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/auth\_backends/backends.py”, line 98, in auth\_complete  
> user = super().auth\_complete(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/utils.py”, line 248, in wrapper  
> return func(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/oauth.py”, line 375, in auth\_complete  
> state = self.validate\_state()  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/oauth.py”, line 87, in validate\_state  
> raise AuthStateMissing(self, ‘state’)  
> social\_core.exceptions.AuthStateMissing: Session value state missing.  
> 2023-01-26 13:20:07,209 ERROR 18 [django.request] [user 1598] [ip 192.168.221.59] log.py:224 - Internal Server Error: /complete/edx-oauth2/  
> Traceback (most recent call last):  
> File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 47, in inner  
> response = get\_response(request)  
> File “/openedx/venv/lib/python3.8/site-packages/django/core/handlers/base.py”, line 181, in \_get\_response  
> response = wrapped\_callback(request, \*callback\_args, \*\*callback\_kwargs)  
> File “/opt/pyenv/versions/3.8.12/lib/python3.8/contextlib.py”, line 75, in inner  
> return func(\*args, \*\*kwds)  
> File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/cache.py”, line 44, in \_wrapped\_view\_func  
> response = view\_func(request, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped\_view  
> return view\_func(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_django/utils.py”, line 46, in wrapper  
> return func(request, backend, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_django/views.py”, line 31, in complete  
> return do\_complete(request.backend, \_do\_login, user=request.user,  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/actions.py”, line 45, in do\_complete  
> user = backend.complete(user=user, \*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/base.py”, line 40, in complete  
> return self.auth\_complete(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/auth\_backends/backends.py”, line 98, in auth\_complete  
> user = super().auth\_complete(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/utils.py”, line 248, in wrapper  
> return func(\*args, \*\*kwargs)  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/oauth.py”, line 375, in auth\_complete  
> state = self.validate\_state()  
> File “/openedx/venv/lib/python3.8/site-packages/social\_core/backends/oauth.py”, line 87, in validate\_state  
> raise AuthStateMissing(self, ‘state’)  
> social\_core.exceptions.AuthStateMissing: Session value state missing.

The edx-platform version is : maple

tutor, version 14.0.5

Thanks in Advance!

---

<div class="post-metadata">

### Author: ![regis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/regis/32/2640_2.png) [@regis](https://discuss.openedx.org/u/regis)
#### Post date: [January 30, 2023, 12:29pm UTC](https://discuss.openedx.org/t/after-building-image-studio-is-not-working/9227/2 "2023-01-30T12:29:16Z")

</div>

> [@Shukurlu](#):
>
> The edx-platform version is : maple
> 
> tutor, version 14.0.5

I see an inconsistency here. If you want to run Maple then you need to run Tutor v13, not v14. Tutor v14 is for Nutmeg. I’m pretty sure this inconsistency is going to cause issues, such as the one you are facing.

---

<div class="post-metadata">

### Author: ![Shukurlu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/shukurlu/32/342_2.png) [@Shukurlu](https://discuss.openedx.org/u/Shukurlu)
#### Post date: [February 7, 2023, 9:02am UTC](https://discuss.openedx.org/t/after-building-image-studio-is-not-working/9227/3 "2023-02-07T09:02:38Z")

</div>

Hi @regis thank you much,

I have reinstalled tutor 13.3.1,

But now while building image with custom edx-platform gives an error :

Step 22/102 : RUN git fetch --depth=2 [GitHub - open-craft/edx-platform: the edX learning management system (LMS) and course authoring tool, Studio](https://github.com/open-craft/edx-platform/) 03731f19459e558f188c06aac5cc9ca1bbc675c2 && git cherry-pick 03731f19459e558f188c06aac5cc9ca1bbc675c2  
—\> Running in aac9e27bc76c  
From [GitHub - open-craft/edx-platform: the edX learning management system (LMS) and course authoring tool, Studio](https://github.com/open-craft/edx-platform)

- branch 03731f19459e558f188c06aac5cc9ca1bbc675c2 → FETCH\_HEAD  
Auto-merging lms/djangoapps/discussion/tasks.py  
The previous cherry-pick is now empty, possibly due to conflict resolution.  
If you wish to commit it anyway, use:

Otherwise, please use ‘git cherry-pick --skip’  
On branch customized\_edu  
Your branch is up to date with ‘origin/customized\_edu’.

You are currently cherry-picking commit 03731f1.  
(all conflicts fixed: run “git cherry-pick --continue”)  
(use “git cherry-pick --skip” to skip this patch)  
(use “git cherry-pick --abort” to cancel the cherry-pick operation)

nothing to commit, working tree clean  
The command ‘/bin/sh -c git fetch --depth=2 [GitHub - open-craft/edx-platform: the edX learning management system (LMS) and course authoring tool, Studio](https://github.com/open-craft/edx-platform/) 03731f19459e558f188c06aac5cc9ca1bbc675c2 && git cherry-pick 03731f19459e558f188c06aac5cc9ca1bbc675c2’ returned a non-zero code: 1
