Hi everyone, I am pretty new at solaris, and am trying to set up some SMF manifests on our new server. I have gotten 2 out of 3 to work. The third one has been giving us grief all week. We've tried creating it every which way and still keep receiving "Method failed." errors. The odd thing, we are using the exact same process for all three manifests, the only difference is they are running as different users.
What it boils down to is we have created three users. Each user is going to be running a mongrel process for a Rails application. The first two user's setups work great. But the third, which shouldn't be any different fails. Here is the manifest we are using: <?xml version='1.0'?> <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> <service_bundle type='manifest' name='mongrel/app3com'> <service name='network/mongrel/app3com' type='service' version='0'> <create_default_instance enabled='true'/> <dependency name='fs' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/local'/> </dependency> <dependency name='net' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/network/loopback'/> <service_fmri value='svc:/network/nfs/client'/> </dependency> <dependency name='app3com_mongrel_multiuser-server' grouping='require_all' restart_on='error' type='service'> <service_fmri value='svc:/milestone/multi-user-server:default'/> </dependency> <exec_method name='start' type='method' exec='/opt/csw/bin/mongrel_rails start -d -p 8001 -e production -P log/mongrel-1.pid' timeout_seconds='60'> <method_context working_directory='/home/user3/domains/app3domain/web'> <method_credential user='user3' group='user3' /> <method_environment> <envvar name="PATH" value="/usr/bin:/bin:/opt/csw/bin" /> </method_environment> </method_context> </exec_method> <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'> <method_context/> </exec_method> </service> </service_bundle> This is exactly the same as the other manifests, except app3 and user3 are replaced with the corresponding values for that user and application. Other things to note: 1. We can log on as user3 and run the command just fine as that user from that directory. 2. If we change the method_credential to root:root or user1:user1, the manifest loads correctly. Of course, the app doesn't if its user1, because they don't have permissions, but the manifest and mongrel process work. This leads us to wonder if it isn't something wrong with this user. I just finished recreating it with a different groupID, but it is still failing. My only guess at this point is that user3 got on some SMF_banned list, or user3's username is invalid somehow - it starts with two numerals, where the other two users don't. Any insight into this issue will be MUCH appreciated. Thanks, Trey This message posted from opensolaris.org