Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

403 Error and "You must be logged into NuBuilder"

Questions related to using nuBuilder Forte.
Post Reply
woodhome
Posts: 18
Joined: Mon Oct 19, 2020 8:50 am
Has thanked: 1 time

403 Error and "You must be logged into NuBuilder"

Unread post by woodhome »

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
n9yty
Posts: 47
Joined: Thu Oct 15, 2020 8:43 pm

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

Unread post by n9yty »

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.
woodhome
Posts: 18
Joined: Mon Oct 19, 2020 8:50 am
Has thanked: 1 time

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

Unread post by woodhome »

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.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

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

Unread post by kev1n »

Do you have access to the server error logs? Then you might figure out the reason for the error.
woodhome
Posts: 18
Joined: Mon Oct 19, 2020 8:50 am
Has thanked: 1 time

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

Unread post by woodhome »

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: 18
Joined: Mon Oct 19, 2020 8:50 am
Has thanked: 1 time

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

Unread post by woodhome »

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: 18
Joined: Mon Oct 19, 2020 8:50 am
Has thanked: 1 time

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

Unread post by woodhome »

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.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

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

Unread post by kev1n »

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
Post Reply