403 Error and "You must be logged into NuBuilder"

Questions related to using nuBuilder Forte.

403 Error and "You must be logged into NuBuilder"

Postby woodhome » Mon Oct 19, 2020 4:32 pm

In a new install of NuBuilder I am able to log in using the Globaladmin account created in user settings, but clicking on any option listed results in the message: "You must be logged into NuBuilder..." No buttons work. Refreshing the page returns you to the login screen. Same behavior in FireFox, Chrome, and Edge. When any button is clicked a 403 error is recorded in the console:
XHR POST https://www.myDomain.org/MyData/nuapi.php [HTTP/1.1 403 Forbidden 124ms]
Commercail web host running LAMP with PHP 7.3 and MySQL 5.6.32
woodhome
 
Posts: 5
Joined: Mon Oct 19, 2020 4:20 pm

Re: 403 Error and "You must be logged into NuBuilder"

Postby n9yty » Mon Oct 19, 2020 4:37 pm

Usually a 403 error is a web server permission denied. Are the files set to an owner/group that your web server software can access? I don't know platform you are on, so don't know to give you much more than that. But be sure that your web server is configured to serve up the files in that folder and has access rights to them. I don't know if you have to set up the web server to handle PHP separately or not.

Also look for settings on your web host, if it has an application firewall or other software, to see if it is limiting XHR transactions.
n9yty
 
Posts: 39
Joined: Fri Oct 16, 2020 4:13 am

Re: 403 Error and "You must be logged into NuBuilder"

Postby woodhome » Mon Oct 19, 2020 5:50 pm

Thanks for the quick response. I thought it might be a permission's issue too so checked, and reset them all with no change. In the network monitor I see that a successful call to the same file is made when the home page first loads, but with the rather suspicious difference that the first call is marked as type json and the second, that fails with 403, is marked as type: html.
woodhome
 
Posts: 5
Joined: Mon Oct 19, 2020 4:20 pm

Re: 403 Error and "You must be logged into NuBuilder"

Postby kev1n » Mon Oct 19, 2020 5:54 pm

Do you have access to the server error logs? Then you might figure out the reason for the error.
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (82)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
 
Posts: 1084
Joined: Mon Oct 15, 2018 2:13 am

Re: 403 Error and "You must be logged into NuBuilder"

Postby woodhome » Mon Oct 19, 2020 6:50 pm

Unfortunately I only have access logs on this server. Not very helpful. Tried downgrading the PHP used, and shutting off caching, but no change. I do, however have access to an entirely separate server and MySQL DB hosted through a university, so did a quick install there with the same codebase to see what would happen. Unfortunately It's showing an entirely different problem. On that machine the 'Setup' doesn't display at all, only the builders tab shows, and there are several Uncaught TypeErrors from nuformclass.js
woodhome
 
Posts: 5
Joined: Mon Oct 19, 2020 4:20 pm

Re: 403 Error and "You must be logged into NuBuilder"

Postby kev1n » Mon Oct 19, 2020 6:55 pm

If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (82)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
 
Posts: 1084
Joined: Mon Oct 15, 2018 2:13 am

Re: 403 Error and "You must be logged into NuBuilder"

Postby woodhome » Tue Oct 20, 2020 7:57 am

Thanks Kev1n,
I on a commercial host I'm not able to directly edit /etc/alternatives content, but I examined the current values through SHOW VARIABLES on MySQL and they look completely reasonable and either reflect the instructions on 5) or are more generous.

port 3306
socket /var/mysql/ipw03/mysql.sock
key_buffer_size 536870912
max_allowed_packet 33554432
sql_mode NO_ENGINE_SUBSTITUTION

I'm checking to see if someone somewhere can inspect the Apache error log.
woodhome
 
Posts: 5
Joined: Mon Oct 19, 2020 4:20 pm

SOLVEDish Re: 403 Error and "You must be logged into NuBuild

Postby woodhome » Tue Oct 20, 2020 10:11 am

After much struggle and gnashing of teeth, the host provider increased php memory on the server to 256M and the 403 error suddenly vanished. In case anyone runs across this issue in the future, try that.
woodhome
 
Posts: 5
Joined: Mon Oct 19, 2020 4:20 pm

Re: SOLVEDish Re: 403 Error and "You must be logged into NuB

Postby kev1n » Tue Oct 20, 2020 11:43 pm

woodhome wrote:After much struggle and gnashing of teeth, the host provider increased php memory on the server to 256M and the 403 error suddenly vanished. In case anyone runs across this issue in the future, try that.


:D :D
If you like nuBuilder, please leave a review on SourceForge

nuBuilder Code Library (82)
Installation Guides
Updating nuBuilder

Join Discord to talk about nuBuilder!
kev1n
 
Posts: 1084
Joined: Mon Oct 15, 2018 2:13 am


Return to General