Page 1 of 1
Cannot attach files... "the value of 'username' is inva
Posted: Wed Feb 01, 2006 12:57 pm
by will123195
i am unable to attach a file to an email in SWA. as soon as i click the attachment icon, an alert box pops up with this message:
the value of 'username' is invalid
i have tried attaching as different users.
Posted: Wed Feb 01, 2006 2:46 pm
by ScalixSupport
This can occur if the permissions of /tmp on the server are incorrect, they should be:
Cheers
Dave
Posted: Wed Feb 01, 2006 4:16 pm
by will123195
/tmp permissions look correct...
drwxrwxrwt 4 root root 4096 Feb 1 04:02 tmp
not sure if this is helpful or not, here's a look inside the /tmp directory....
Code: Select all
[root@host /]# cd /tmp
[root@host tmp]# ls -l
total 20
-rw-rw---- 1 root scalix 0 Jan 31 10:50 fileOYVZDY
-rw-rw---- 1 root scalix 226 Jan 31 10:51 filetxHI8M
drwx------ 2 root root 16384 Dec 10 22:58 lost+found
[root@host tmp]#
Posted: Wed Feb 01, 2006 4:46 pm
by ScalixSupport
When you sign into SWA, a directory should be created under /tmp which has the same name as the domain of the server you are signing into, i.e. mail.example.com would create a directory called /tmp/example.com. This should be retained when all the clients have signed out.
Can you sign into SWA and then check the contents of the /tmp directory. The newly-created directory should be something like:
Code: Select all
drwxr-xr-x 3 root root 4096 Feb 1 12:43 example.com
Cheers
Dave
Posted: Wed Feb 01, 2006 4:51 pm
by will123195
still no directory... the contents of /tmp looks the same as before.
Posted: Wed Feb 01, 2006 6:24 pm
by ScalixSupport
Can you post the contents of the most current scalix-swa log in $TOMCAT_HOME/logs ?
Cheers
Dave
Posted: Wed Feb 01, 2006 6:31 pm
by will123195
is there a default value for $TOMCAT_HOME? how do i determine the path to $TOMCAT_HOME?
Posted: Wed Feb 01, 2006 6:37 pm
by ScalixSupport
There is no default directory for $TOMCAT_HOME, it depends on where you installed tomcat to get Scalix working.
You can determine this by running
and this should show you something like
Code: Select all
root 13642 1 0 12:23 ? 00:00:28 /usr/java/j2sdk1.4.2_10/bin/java -server -Xms512m -Xmx512m -Djava.endorsed.dirs=/opt/tomcat/common/endorsed -classpath /usr/java/j2sdk1.4.2_10/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start
Look at the java.endorsed.dirs value and that should show you the tomcat directory. In the example above, the directory is /opt/tomcat. Your directory may be different.
Cheers
Dave
Posted: Wed Feb 01, 2006 6:53 pm
by will123195
Code: Select all
[root@host logs]# head -n500 scalix-swa_log.2006-02-01.txt
2006-02-01 04:50:22 StandardContext[/webmail]ip: 64.12.116.xxx; username: asimms21@xxxxx.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or password is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The username or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: asimms21@xxxxx.com
request method(s): login
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"><username>asimms21@xxxxx.com</username><emailDomain>com</emailDomain><fugu>Ox636d6964736238303031263423282b242d223108</fugu><ts>0</ts><rand>D660FE1C8BB0C9D01013187F286119D0</rand><rand2>15ffada1b248e54d82844628ca32ecd08337f581</rand2></credentials></SOAP-ENV:Header><SOAP-ENV:Body><m:login xmlns:m="http://scalix.com/methods"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
2006-02-01 04:50:46 StandardContext[/webmail]ip: 64.12.116.xxx; username: asimms@xxxxx.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or password is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The username or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: asimms@xxxxx.com
request method(s): login
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"><username>asimms@xxxxx.com</username><emailDomain>com</emailDomain><fugu>Ox636d69647362232c352f322f322e29252a302506</fugu><ts>0</ts><rand>3D48EED1BFBF597F9333ADF12D2CDE62</rand><rand2>28f4e90e59695606592cfcaf5202a1de0cff675d</rand2></credentials></SOAP-ENV:Header><SOAP-ENV:Body><m:login xmlns:m="http://scalix.com/methods"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
2006-02-01 10:44:10 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: download_attachment: IMAP failure: invalid message number
2006-02-01 11:32:38 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:32:47 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:33:00 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:33:07 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:33:20 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:33:40 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:33:49 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:34:03 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:35:15 StandardContext[/webmail]ip: 207.59.108.xxx; username: audrey@xxxxx.com; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:35:43 StandardContext[/webmail]ip: 68.46.174.xxx; username: will; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 11:37:07 StandardContext[/webmail]ip: 68.46.174.xxx; username: will; message: AttachmentUploader: alert('The value of \'username\' is invalid');
2006-02-01 12:44:34 StandardContext[/webmail]ip: 152.163.100.xxx; username: ej11211; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or password is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The username or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: ej11211
request method(s): login
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"><username>ej11211</username><emailDomain>com</emailDomain><fugu>Ox3930393e2c23222a2923292f2b3026222f263004</fugu><ts>0</ts><rand>E7E853026F7C8E37716804B861C6659C</rand><rand2>be9f4105516ffda055b2b53b05991f840fd09cb8</rand2></credentials></SOAP-ENV:Header><SOAP-ENV:Body><m:login xmlns:m="http://scalix.com/methods"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
2006-02-01 14:00:50 StandardContext[/webmail]ip: 207.59.108.106; username: lsalton@xxxxx.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or password is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The username or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: lsalton@xxxxx.com
request method(s): login
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"><username>lisa@xxxxx</username><emailDomain>com</emailDomain><fugu>Ox3a35393b2d27342a2d312d24252431222e2c3304</fugu><ts>0</ts><rand>99472A94B8C721C1C0C31A8BA51478FD</rand><rand2>e040fd2fdbb4b79708bf2b1bcf679bae3e176da7</rand2></credentials></SOAP-ENV:Header><SOAP-ENV:Body><m:login xmlns:m="http://scalix.com/methods"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
2006-02-01 14:04:02 StandardContext[/webmail]ip: 207.59.108.xxx; username: lisa@xxxxx.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.BadUserName</faultcode><faultstring>The username or password is incorrect. Note that passwords are case sensitive. Try again.</faultstring><detail><e:BadUserName xmlns:e="http://scalix.com/errors"><message>The username or password is incorrect. Note that passwords are case sensitive. Try again.</message><debug>user: lisa@xxxxx.com
request method(s): login
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header><credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"><username>lisa@xxxxx.com</username><emailDomain>com</emailDomain><fugu>Ox69756e6325293122352228222c2632222a293204</fugu><ts>0</ts><rand>1F1D744ABF2CC3E67CA4B2BC29B30E5D</rand><rand2>739f33d40204aa9b72292c5e57c59bffd2b96ff9</rand2></credentials></SOAP-ENV:Header><SOAP-ENV:Body><m:login xmlns:m="http://scalix.com/methods"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
[root@host logs]#
Posted: Wed Feb 01, 2006 7:20 pm
by ScalixSupport
Just for the sake of completeness, please can you create a /tmp/domain.com directory with rwxr-xr-x permissions and report back any progress.
Before you do that, can you also post the contents of $TOMCAT_HOME/logs/catalina.out from around the time the errors occurred ?
Cheers
Dave
Posted: Wed Feb 01, 2006 7:54 pm
by will123195
there are a ton of these errors in catalina.out corresponding to various users:
Code: Select all
java.lang.RuntimeException: for some reason, could not create user directory: /tmp/com/will
regarding the /tmp/domain.com directory, this is the domain of the server...not the domain of the mailnode...correct?
Posted: Wed Feb 01, 2006 8:06 pm
by ScalixSupport
Correct, this will be the server name and not the mailnode.
From the error message, you need to create a /tmp/com directory.
Cheers
Dave
Posted: Wed Feb 01, 2006 8:12 pm
by will123195
mkdir /tmp/com resolved the issue
Missing /tmp directory
Posted: Wed Feb 08, 2006 3:43 pm
by ahathaway
Interestingly, I ran into the same issue today with an SWA user. Permissions for /tmp should have allowed Tomcat to create a directory there, but it couldn't for some reason.
Once I created the domain directory manually, it worked.
--Aaron