Jump to content

Recommended Posts

Posted
Hi,

I have successfully set up my database and now tables are created in the db.

I run the curl command and got the below details,

> curl -I https://nrchoudhari.heliohost.us/
> HTTP/1.1 500 Internal Server Error
> Server: nginx
> Date: Sun, 19 Oct 2025 19:01:29 GMT
> Content-Type: text/html; charset=iso-8859-1
> Connection: keep-alive


My .htaccess file has the details below.

> Options +ExecCGI
> RewriteEngine On
> RewriteBase /
> RewriteRule ^(media/.*)$ - [L]
> RewriteRule ^(admin_media/.*)$ - [L]
> RewriteRule ^(cartracker/dispatch\.wsgi/.*)$ - [L]
> RewriteRule ^(.*)$ djangotest/djangotest/dispatch.wsgi/$1 [QSA,PT,L]


In the error_log file I can see the below error,\

> [Sun Oct 19 19:01:29.199339 2025] [core:error] [pid 2973960:tid 2973986]
> [client 103.162.74.146:0] AH00124: Request exceeded the limit of 10
> internal redirects due to probable configuration error. Use
> 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel
> debug' to get a backtrace.


One quick question came to my mind is when curl says server is nginx why we
are using .htaccess. Anyway I am totally lost, please help me to resolve
this error.

Thank you,
Nilesh R. Choudhari

On Mon, Oct 13, 2025 at 6:01?AM HelioHost Support
wrote:

> When you create or edit the MariaDB database make sure you allow remote
> connections at the bottom of the page. The default is local connections to
> improve security. Once remote connections are enabled use host=65.19.154.94
> port=3306 username=shree21_user password=
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

  • Replies 37
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Check out these two lines

> RewriteRule ^(cartracker/dispatch\.wsgi/.*)$ - [L]
> RewriteRule ^(.*)$ djangotest/djangotest/dispatch.wsgi/$1 [QSA,PT,L]

In the first line it seems like your directory is cartracker, and in the second line it says your directory is djangotest. Which one is it?

Usually I recommend people who aren't very familiar with Django yet just follow the guide at https://wiki.helionet.org/Django_on_HelioHost exactly without changing anything such as the directory name. Then if you can get that working successfully you can start making small changes and testing frequently. If you make a small change and it stops working you know where the problem is. If you start with a project that doesn't even work with massive changes from the guide that is known to work, then it's hard to even narrow down where the issue is.

Posted
Hi,

The correct directory is cartracker after making change in the second line
now the error shows "[Sun Oct 19 19:56:11.102055 2025] [wsgi:error] [pid
2973960:tid 2974001] [client 103.162.74.146:0] ModuleNotFoundError: No
module named 'djangotest', referer: https://nrchoudhari.heliohost.us/"
But could not find any reference of djangotest in any file.

Thank you,
Nilesh R. Choudahri.

On Mon, Oct 20, 2025 at 1:07?AM HelioHost Support
wrote:

> Check out these two lines > RewriteRule ^(cartracker/dispatch\.wsgi/.*)$ -
> [L] > RewriteRule ^(.*)$ djangotest/djangotest/dispatch.wsgi/$1 [QSA,PT,L]
> In the first line it seems like your directory is cartracker, and in the
> second line it says your directory is djangotest. Which one is it? Usually
> I recommend people who aren't very familiar with Django yet just follow the
> guide at https://wiki.helionet.org/Django_on_HelioHost exactly without
> changing anything such as the directory name. Then if you can get that
> working successfully you can start making small changes and testing
> frequently. If you make a small change and it stops working you know where
> the problem is. If you start with a project that doesn't even work with
> massive changes from the guide that is known to work, then it's hard to
> even narrow down where the issue is.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted
Hi,

After searching on the internet for some time I got the issue. the app is
not getting auto reload when some file gets changed, causing the issue.
Site is up and running but getting some issue in between whenever I change
some html file or some other code the change doesn't work as expected.
Sometimes it works, time it shows the last pages.
What is the best way to reload the app when some code is changed, please
suggest.

Thanks and Regards,
Nilesh R. Choudhari

On Mon, Oct 20, 2025 at 3:22?AM HelioHost Support
wrote:

> Is there a directory called djangotest inside the cartracker directory?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

Correct, Django uses server side caching, so changes to your code could take up to 2 hours to show up. You can read more about it here https://wiki.helionet.org/Django_on_HelioHost#WSGI_Uses_Server_Side_Caching If you'd like to have WSGI restart access enabled it can be, but like it says in that link your minimum monthly bill will go from $1.00 to $1.91 or so. Depending on the load it could be even higher than $1.91. If you'd like to have WSGI restart access enabled just let us know.

Posted
Hi,

Sure will let you know if I need the access to WSGI restart.
Now facing another issue, Few hours ago the website was loading fine and
working well. Now its showing Server error 500. When I checked the error
log I got "[Mon Oct 20 10:45:32.641331 2025] [wsgi:error] [pid 3946826:tid
3946858] [client 103.162.74.146:0] django.db.utils.OperationalError: (1045,
"Access denied for user 'shree21_21'@'localhost' (using password: YES)"),
referer: https://nrchoudhari.heliohost.us/accounts/register/"

Thank you,
Nilesh R. Choudhari

On Tue, Oct 21, 2025 at 1:28?AM HelioHost Support
wrote:

> Correct, Django uses server side caching, so changes to your code could
> take up to 2 hours to show up. You can read more acout it here
> https://wiki.helionet.org/Django_on_HelioHost#WSGI_Uses_Server_Side_Caching If
> you'd like to have WSGI restart access enabled it can be, but like it says
> in that link your minimum monthly bill will go from $1.00 to $1.91 or so.
> Depending on the load it could be even higher than $1.91. If you'd like to
> have WSGI restart access enabled just let us know.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

That looks like the password for the database user account (shree21_21) is incorrect, either on the server or in your application's config file. Make sure your app is configured to use the correct username and password for the database, and if it's correct, reset the database user's password in Plesk.

Posted
Hi,

The password was correct but still I changed it and now updated but still
it shows 500 server errors. Worst part is the error_logs file is not
showing any errors, it's empty.

Thank you,
Nilesh R. Choudhari

On Tue, Oct 21, 2025 at 2:20?AM HelioHost Support
wrote:

> That looks like the password for the database user account (shree21_21) is
> incorrect, either on the server or in your application's config file. Make
> sure your app is configured to use the correct username and password for
> the database, and if it's correct, reset the database user's password in
> Plesk.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

It looks like the error is generated by your code, not Apache or Nginx or WSGI, so it doesn't get logged to any system file. You could edit your code to log to a file, or display a more useful error to the browser.

Posted
Hi,

I really don't understand what exactly is going on. Few days ago my
website was working fine and now when I try to open it for further testing
I am getting the same error message.
The error messages says " [Sat Oct 25 17:38:06.102097 2025] [wsgi:error]
[pid 1741426:tid 1741445] [client 103.162.74.146:0] ModuleNotFoundError: No
module named 'djangotest', referer:
https://nrchoudhari.heliohost.us/accounts/login/"
This is the error I had encountered before and it was nothing to do with
code or configuration. Could you please let me know what's going on here.

Thank you,
Nilesh R. Choudhari

On Wed, Oct 22, 2025 at 8:05?AM HelioHost Support
wrote:

> It looks like the error is generated by your code, not Apache or Nginx or
> WSGI, so it doesn't get logged to any system file. You could edit your code
> to log to a file, or display a more useful error to the browser.
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted

All is see is "Server Error (500)" which is generated by your code, not the server, so those errors won't show up in any of the system logs. Did you ever add any logging to see what is causing that error?

Posted
Hi,

From logs I can see the error is being generated from dispatch.wsgi, the
file contents are
import os, sys

# edit your path below
sys.path.append("/home/nrchoudhari.heliohost.us/httpdocs/")

from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cartracker.settings')
application = get_wsgi_application()

Regarding your question about code and logging, The site was working fine
and I did not make any change in the code.

Thank you,
Nilesh R. Choudhari

On Sat, Oct 25, 2025 at 11:18?PM HelioHost Support
wrote:

> All is see is "Server Error (500)" which is generated by your code, not
> the server, so those errors won't show up in any of the system logs. Did
> you ever add any logging to see what is causing that error?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Posted
Hi,

There is a file error_log under the logs directory.

On Sat, Oct 25, 2025 at 11:31?PM HelioHost Support
wrote:

> Which log are you looking at?
>
> You may view the status of your ticket by visiting:
>
> https://helionet.org/index/index.php?showtopic=65745
>
> Thank you,
> HelioHost support
> https://heliohost.org/
> https://helionet.org/
>
>

Guest
This topic is now closed to further replies.

×
×
  • Create New...