Cannot attach files... "the value of 'username' is inva

Discuss the Scalix web client

Moderators: ScalixSupport, admin

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Cannot attach files... "the value of 'username' is inva

Postby will123195 » Wed Feb 01, 2006 12:57 pm

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.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 2:46 pm

This can occur if the permissions of /tmp on the server are incorrect, they should be:

Code: Select all

drwxrwxrwt


Cheers

Dave

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 4:16 pm

/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]#

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 4:46 pm

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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 4:51 pm

still no directory... the contents of /tmp looks the same as before.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 6:24 pm

Can you post the contents of the most current scalix-swa log in $TOMCAT_HOME/logs ?

Cheers

Dave

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 6:31 pm

is there a default value for $TOMCAT_HOME? how do i determine the path to $TOMCAT_HOME?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 6:37 pm

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

Code: Select all

ps -ef | grep tomcat
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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 6:53 pm

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:
&lt;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/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;asimms21@xxxxx.com&lt;/username&gt;&lt;emailDomain&gt;com&lt;/emailDomain&gt;&lt;fugu&gt;Ox636d6964736238303031263423282b242d223108&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;rand&gt;D660FE1C8BB0C9D01013187F286119D0&lt;/rand&gt;&lt;rand2&gt;15ffada1b248e54d82844628ca32ecd08337f581&lt;/rand2&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&#xd;
</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:
&lt;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/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;asimms@xxxxx.com&lt;/username&gt;&lt;emailDomain&gt;com&lt;/emailDomain&gt;&lt;fugu&gt;Ox636d69647362232c352f322f322e29252a302506&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;rand&gt;3D48EED1BFBF597F9333ADF12D2CDE62&lt;/rand&gt;&lt;rand2&gt;28f4e90e59695606592cfcaf5202a1de0cff675d&lt;/rand2&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&#xd;
</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:
&lt;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/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;ej11211&lt;/username&gt;&lt;emailDomain&gt;com&lt;/emailDomain&gt;&lt;fugu&gt;Ox3930393e2c23222a2923292f2b3026222f263004&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;rand&gt;E7E853026F7C8E37716804B861C6659C&lt;/rand&gt;&lt;rand2&gt;be9f4105516ffda055b2b53b05991f840fd09cb8&lt;/rand2&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&#xd;
</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:
&lt;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/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;lisa@xxxxx&lt;/username&gt;&lt;emailDomain&gt;com&lt;/emailDomain&gt;&lt;fugu&gt;Ox3a35393b2d27342a2d312d24252431222e2c3304&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;rand&gt;99472A94B8C721C1C0C31A8BA51478FD&lt;/rand&gt;&lt;rand2&gt;e040fd2fdbb4b79708bf2b1bcf679bae3e176da7&lt;/rand2&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&#xd;
</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:
&lt;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/"&gt;&lt;SOAP-ENV:Header&gt;&lt;credentials xmlns="http://scalix.com/schemas/gofish" SOAP-ENV:mustUnderstand="1"&gt;&lt;username&gt;lisa@xxxxx.com&lt;/username&gt;&lt;emailDomain&gt;com&lt;/emailDomain&gt;&lt;fugu&gt;Ox69756e6325293122352228222c2632222a293204&lt;/fugu&gt;&lt;ts&gt;0&lt;/ts&gt;&lt;rand&gt;1F1D744ABF2CC3E67CA4B2BC29B30E5D&lt;/rand&gt;&lt;rand2&gt;739f33d40204aa9b72292c5e57c59bffd2b96ff9&lt;/rand2&gt;&lt;/credentials&gt;&lt;/SOAP-ENV:Header&gt;&lt;SOAP-ENV:Body&gt;&lt;m:login xmlns:m="http://scalix.com/methods"/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&#xd;
</debug></e:BadUserName></detail></SOAP-ENV:Fault>
[root@host logs]#

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 7:20 pm

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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 7:54 pm

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?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Feb 01, 2006 8:06 pm

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

will123195
Posts: 25
Joined: Thu Sep 29, 2005 12:52 pm

Postby will123195 » Wed Feb 01, 2006 8:12 pm

mkdir /tmp/com resolved the issue

ahathaway
Posts: 55
Joined: Fri Nov 18, 2005 2:20 pm
Location: San Francisco, CA
Contact:

Missing /tmp directory

Postby ahathaway » Wed Feb 08, 2006 3:43 pm

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


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 2 guests