-
Notifications
You must be signed in to change notification settings - Fork 277
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
Getting 401 Unauthorized for xAPI response #1627
Comments
@ksourabh45 have you selected the store in the clients xAPI section? On Settings -> Clients expand the client you are trying to use and check that your store is selected here (will say LRS (optional) in grey if not): |
Hi @ToranSharma , Thanks for your response. Yes it has store selected. |
Hello, may I ask if your installation was successful? Does the Xapi service report no error? What is your system configuration like? After I installed it on my Ubuntu18, the Xapi service could not be started, and I have not been able to find a solution. |
Do you have all in one server or Mongo is running on its own server ? |
Hi all, I was able to fix it. It was due to node libraries version mismatch in xAPI plugin and learning locker. |
Hi @looperEit , Have you tried with latest ubuntu? I have had issues with the same and it works with latest version. Thanks, |
Yes, I installed all services on one server, including services such as mongoDB and Xapi. |
hello, thanks for your replying. Did you mean the ubuntu20? but the official recommendation is to use Ubuntu16 or 18. I have tried to use Ubuntu20, but the installation process prompts to use 18, so I use 18 to complete. |
Could you please tell me which version I am using? I am using the officially recommended version 14.0 of nodejs. |
I have been troubled by this problem for a long time, it is very painful. If you can please tell me your configuration and your known solution, thank you. I have tried to install it many times. |
hello? |
I used to, but I decided to go HA, so now the only thing running on my server is nginx and all the LRS roles. databases are separate, same as statements files and env files. |
|
Hi @looperEit , I had the same error. Please follow below: First install learning locker using installation script and for xAPI use custom installation because it run on node version greater than >16 and learninglocker service uses node version 10.
Install both node versions 17.6.0 and 10.24.1 and use 17.6.0 while installing xAPI. |
thanks for your replying. i will try it. |
May I ask, should I start the manual installation directly, or use the script to install learninglocker first, and then use node17 to start the xapi service? |
|
If you use node10 to execute the LL installation script, then when you use node17 to install xapi, there will be a problem of inconsistent pm2 versions, and pm2 cannot start all services. How to solve this? |
I have used nvm to switch node versions, but the problem now is that if I only have one server, should I switch node10 to install pm2, and then install node17 to install pm2? |
I think part of the issue is that the Hopefully this will let you just use a single node version for all processes in pm2. If node 10 worked for you previously try that again. I think this is the default in the |
|
How to modify this version number? |
This is passed in a the point of running ./deployll.sh -x v6.2.3 The version number come from the releases pages for the xAPI-Service: |
|
Hi, I have installed it according to your method. The installation has been completed, and the xapi is running smoothly, but it still cannot be sent. I am thinking whether my use process is wrong? |
Is the EDIT: This now looks to be the state that it was in #1626. Maybe these updates should go in that issue. |
Thank you very much, it is ready to use. I have found a complete solution. |
Hi all,
I have setup learning locker on EC2 instance and trying to insert xAPI statements but getting 401 Unauthorized error.
I have setup store and client as required and also added Basic Authorization header but getting error while trying to insert statements through postman.
Added screenshot below:
Please help me in resolving the issue.
Thanks in advance.
Sourabh
The text was updated successfully, but these errors were encountered: