First, I’m not a Linux admin, nor do I play one on TV - with that said, I’m running into some issues installing the Asset Server on our Ubuntu Linux server.
I believe I’ve gotten it to compile correctly, but receive the following error:
.: 10: Can't open /etc/init.d/functions
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.10733"?
Could not update database template1.
I have full access to the server - so any help/hints/suggestions* would be greatly appreciated!
We have not tested the asset server on Unbuntu or other debian based distributions. We reccomend either running the asset server on Mac OS X or a RPM based Linux distribution such as CentOS, Fedora or RedHat.
Well… when I was on the alpha list I posted some things that needed to be changed, but I guess they didn’t all get implemented. The files may have changed since then (was alpha then). The problem is that
and
is red hat (maybe rpm?) specific. So you need to comment out or get rid of them in the script, which I posted to the alpha list…
#!/bin/sh is the way to go. I just ran a quick test on Ubuntu and got most of it working by doing:
Add --without-readline to postgres configure (line 41) and change update-rc.d (line 123) in install.sh:
Starting Unity Asset Server: [ OK ]
System startup links for /etc/init.d/unity_asset_server already exist.
You are about to change the admin password for the Unity Asset Server
Please enter the password below. For security reasons, the characters
you enter will not be echoed back to the screen.
After entering the new password, you will be prompted to enter it again.
This is to verify that the password does not contain any typos.
read: 32: Illegal option -s
read: 32: Illegal option -s
[: 32: ==: unexpected operator
did the first and the second change and it gives me this error, any suggestion?.
I’m having the same problem here in the read command.
It seems that the -s -a and -p parameters of the read command is the problem.
Should we install any other package to make this work ?
I had the same problem as raphaelb and naruse. The problem is located in reset_admin_password script. It defines /bin/sh as the interpreter, but uses features specific to /bin/bash.
The problem shows up under recent Ubuntu versions because the default system shell, /bin/sh, was changed from bash to dash (and the feature set of dash is a subset of that offered by bash). https://wiki.ubuntu.com/DashAsBinSh
FIX: change the first line in reset_admin_password from #!/bin/sh to #!/bin/bash
You can either make the change in:
unpacked source (unity_asset_server-1.0.0/unity_build/reset_admin_password.sh) and call ./install.sh
or, if you have installed the app already and you saw the error,
installed app (/opt/unity_asset_server/bin/reset_admin_password) and call that script afterwards.
P.S. Using code from lgoss007, freyr and the fix above I made the Asset Server work under Ubuntu Server 8.04.
Just wanted to add: We are running running the asset server on a VMWared Mandriva Live One 2009, without any problems (and without much of work as the centos rpm works without any problem through urpmi)
I got the server to compile and run based on the patches above in this thread but the pg configuration appears to be incomplete.
If I run reset_admin_password (having directed output to STDOUT not /dev/null) I see
ERROR: role “admin” does not exist
Where is the schema defined? Any thoughts on checking the config manually and debugging the setup scripts?
BTW I appreciate that the server is intended for redhat/centos but clearly it can be made to work with some effort and will save me money in this case.
We could fix the problem now. We have taken the database setup from the rpm-tarball of the asset server and run it manually with psql. Now the database and the asset server work.
I have made an updated patch that makes the UAS install on Ubuntu 9.04 Server Edition (I suspect it works on other Ubuntu versions as well). You can find it on Unify.
There are no 64-bit packages of the Asset Server available. You have to build the Asset Server from sources yourself, but it shouldn’t be too hard. Building Asset Server from sources.