Skip to content

Activate your terminal error, even when creating new console #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
piyush-jaiswal opened this issue Mar 20, 2025 · 4 comments
Open
Assignees

Comments

@piyush-jaiswal
Copy link

Constantly getting "Error: Activate your terminal", even when a new console is created with POST request.


Workflow run:
Image


Workflow file:
Image

@umuttopalak
Copy link
Owner

Hello @piyush-jaiswal,
What type of terminal are you using? Instead of creating manually, delete all terminals and then run action. Action will automatically create a terminal, then go to pythonanywhere and activate that terminal, can you try action again? There should be no problem, as long as you don't open the terminal type as python etc.

@umuttopalak umuttopalak self-assigned this Mar 21, 2025
@piyush-jaiswal
Copy link
Author

I generally use bash. All my consoles were terminated during this run. Which is why, the workflow created one using a POST request (as what I can understand from the code). I've run the workflow multiple times and it has failed.

The few times it successfully ran was when I manually opened a bash console on my browser and was connected to it during the run. The action used that console, and ran commands on it, which I could see. I suspect it is because of this:

Image


Runs:
Image

@umuttopalak
Copy link
Owner

As shown in the image you sent, the pythonanywhere API only creates a terminal and leaves the activation process to the user. The code I wrote performs the following function: If no terminal exists, it creates an appropriate terminal for itself. Then, as mentioned in the error in the workflow, the terminal needs to be entered once to start the process. Otherwise, if a suitable terminal has already been used to start the process, it works without any issues.

@piyush-jaiswal
Copy link
Author

Then this isn't continuous deployment if I have to manually login to pythonanywhere and connect to the console, everytime for pushing code. I am only a git pull and a click away to reloading the site. This should be mentioned in the README, and not left to users to face errors and figure out.

I also don't see how creating a new console helps as that workflow would always fail. There's no time for the user to login and connect to that console. They would always have a failed workflow and would have to connect to the exact console (not create a new one) and somehow run the workflow again, which could involve pushing the same commit again, possibly modifying git history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants