[Solved] Sao web interface is missing


(Alfie) #1

Hello I finished setup Tryton and installed sao according to README
but when I browse to web interface I found this
sao_tryton
it seems like all component are missing. When I look at the log it turns out to 404

However, when I ran npm install --production I noticed this


but everything else were fine after this.

What am I doing it wrong here please?


(Sergi Almacellas Abellana) #2

It seems that your user have some permision issues which makes npm fail to install bower dependencies. Without this files it’s not possible to properlly install sao.

Could you upload a file containing the full output of the executed commands? This will help to diagnose the problem.

Thanks.


(Alfie) #3

Here is my npm install log I think seems ok but I don’t know please help
https://pastebin.com/etMEtZ3m


(Alfie) #4

Here is my npm install log I think seems ok but I don’t know please help
https://pastebin.com/etMEtZ3m


(Sergi Almacellas Abellana) #5

It seems that you installed the files with root user but you are executing the tryotond server in another user which is not able to read the files created by root and then it can not be returned on the server.

You should install sao with the same user you are running your trytond server.


(Cédric Krier) #6

I do not think it is a good advise. Indeed it is better to have source files as readonly for the running user.

It looks like the browser has in cache a redirect to “/index.html/” which is wrong. This happens if you tried to connect while the tryton server was not correctly configured. You should clean the browser cache and refresh.


(Alfie) #7

Thank you everyone I finally solved it! @pokoli was right the problem is about the permission of the npm command.
At first when I tried to run command ‘npm install --production’ it yield something like ‘Permission Error’ so I decided to run it with sudo and even root itself. This is how I fixed it.

Thank you again!!!