You receive the error “Problem creating OS user” when you attempt to create a user on a node in Console with Shares On Demand. Users are added in the Console interface by editing a node (on its Node Maintenance page), under the Accounts tab.
This is due to a change that was introduced from upgrading SHOD 3.4.6 to 3.5.4. The Aspera On Demand system added some additional tools and changed their names and paths to support other cloud platforms. The existing Console packages have no way of knowing about the new conventions in the new tools package.
The following steps will fix the issue:
Modify an entry in the MySQL database.
First log into your system as root. Then connect to the MySQL database:
# /opt/aspera/common/mysql/bin/mysql -u root -p
Once you are logged into MySQL, use these commands to view the setting, change the setting and then confirm the change was completed:
mysql> use aspera_console;
mysql> select setting, value from console_configs where setting="os_cmd_path"; mysql> update console_configs set value="/opt/aspera/ondemand/sbin" where setting="os_cmd_path";
mysql> select setting, value from console_configs where setting="os_cmd_path";
- Modify the Console application so it is aware of the new tool names:
# vi /opt/aspera/console/lib/ami/os_user.rb
Change the following:
- Modify the paths in the
visudo -f /etc/sudoers
Change the beginning of this line:
aspera_console ALL = NOPASSWD: /opt/aspera/ec2/sbin/asp-ec2-os-users,/opt/aspera/ondemand/sbin/asp-ec2-os-config, ...
aspera_console ALL = NOPASSWD: /opt/aspera/ondemand/sbin/asp-ondemand-os-users,/opt/aspera/ondemand/sbin/asp-ondemand-os-config, ...
- Restart Console application:
At this point the Console feature for adding new transfer users should work as expected.