Skip to content
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

Subdomain Expiration without clear reason #806

Open
bitsnaps opened this issue Oct 15, 2024 · 3 comments
Open

Subdomain Expiration without clear reason #806

bitsnaps opened this issue Oct 15, 2024 · 3 comments
Labels
help wanted Extra attention is needed need-reprod We'd like feedback if anyone else is seeing the same thing

Comments

@bitsnaps
Copy link
Contributor

There seems to be a recurring issue where subdomains are expiring unexpectedly across multiple applications.

It has been noticed that almost every app I've created (maybe except listed app ) ends up with an expired subdomain after a certain period, even if it shows continued usage by other users in various discussions on discord.

[Possible] steps to reproduce:

  • Create an app using the platform.
  • Change the domain name in other applications linked to the same account.
  • Create a new app while the original app is still active.
  • Avoid opening the app for a few days.
  • Monitor the status of the app’s subdomain over time.

Expected behavior:

The subdomain should remain active as long as the app is in use and not be subject to expiration based on external factors like domain name changes or inactivity.

Screenshots: The provided image shows examples of subdomains that have expired without any apparent action taken on my part.

image

Deployment:

  • Production (puter.com)

What could trigger that issue:

  • Changing domain name in other apps,
  • Create a brand new app and deploy it,
  • Create a new app on existing one (not the one that gets expired subdomain),
  • Not opening that app for a couple of days!

Originally posted in issue#230

@KernelDeimos KernelDeimos added the need-reprod We'd like feedback if anyone else is seeing the same thing label Oct 15, 2024
@KernelDeimos
Copy link
Contributor

After taking a careful look we have no time-based expiry mechanism which could be affecting subdomains. I suspect that instead there is another issue where subdomains are replaced/removed/re-used because of some other action on the system. I haven't found it yet but I'm continuing to investigate.

Are you able to post exact reproduction steps? Ideally from a clean install of open-source Puter, which should have the same issue.

@bitsnaps
Copy link
Contributor Author

It is challenging to reproduce the issue as the behavior appears to be random, and subdomains are generated with unique and random names from user's eye, this variability makes it difficult to establish a consistent reproduction path.

Currently, there is no method for tracking logs from the user's perspective, which complicates the investigation into the root cause of the problem, without these insights, identifying what leads to subdomain expiration becomes more difficult.

To get to the crux of the issue, I recommend implementing a more detailed logging mechanism that specifically tracks actions related to replaced/removed/re-used subdomains, this may facilitate pinpointing the specific moment an issue arises, providing more context around the problem.

If subdomains are expiring after a period from a user side, this may suggest that external actions from other users are contributing to the issue, so isolating the behavior during a single instance of usage may not fully capture the root cause.

As a potential way forward, I suggest conducting experiments that involve creating a bulk of actions labeled replaced/removed/re-used across multiple accounts (e.g; using a batch testing tool: locust..), this might help in identifying patterns that lead to the subdomain expiration issue more effectively.

@KernelDeimos
Copy link
Contributor

Hi, thanks for your suggestions. Better logging and monitoring is always on the TODO. Contributions are welcome; adding help-wanted label in case anyone else is able to reprod this before we do.

@KernelDeimos KernelDeimos added the help wanted Extra attention is needed label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed need-reprod We'd like feedback if anyone else is seeing the same thing
Projects
None yet
Development

No branches or pull requests

2 participants