cancel
Showing results for 
Search instead for 
Did you mean: 

My Tasks - Always Fails

theslacker
Champ in-the-making
Champ in-the-making
Hi all. I downloaded Alfresco Community 3.3 and am evaluating it for my company. I really like some aspects of it, but I am having trouble with one feature right out of the box. I installed on win XP using the exe installer. Install went well. Using Share works well except whenever I try to do anything in the My Tasks Dashlet, it never works. I get a Failed To Action Task message.

Here is an example:
- User requests access to site
- site owner has the activity in My Tasks to approve or reject
- site owner clicks either option and the Fail message comes up

I tried a whole variety of other tasks and they all fail.

Another example is accepting a workflow request.

I looked in the error log and one error I've seen is "Invalid Global ID" errors.

Any ideas? I really want to get this working as Alfresco looks awesome. I would think that out of the box the features would work.

Thanks!
38 REPLIES 38

mwasilewski
Champ in-the-making
Champ in-the-making
I updated to 3.3g version and Tasks stops working.
In my installation tasks works fine if user connects without reverse proxy between (<server>:8080/share)
But if user browse via reverse proxy (<server>/share) after trying to perform any action on Task user gets "Task action Failed"

nadaoneal
Champ in-the-making
Champ in-the-making
Hey mwasilewski, that is an extremely interesting note.

I'm running on a server with multiple IPs, and only one of the IPs is officially Alfresco's. Other sites are running off the other IP addresses - though no other site on this machine is using 8080 or 8443. In 3.2 and earlier versions of Alfresco, I was able to deal with this in the same way that we deal with Alfresco being on a special port - changing the same files to specify Alfresco's hostname and/or IP address in these files worked like a charm.

However, in 3.3g these old familiar fixes no longer worked - I was frustratingly getting the "your password may be incorrect or the remote server may not be responding" errors when trying to log into Share. I messed around with config files for a bit, then gave up and just wrote rules in iptables to direct traffic from whatever:8080 and whatever:8443 to Alfresco. I was then able to log into Share.

So now I'm wondering if the tasks issue is related to Share trying to contact itself, or Share trying to contact Alfresco, using http://localhost/ or something. If so, is there something in one of the js files I could hardcode to test this?

Also, MikeH, thanks for the note about clearing the browser's cache - that's not the issue in my case, but hopefully it will help someone.

aleks_sh
Champ in-the-making
Champ in-the-making
I updated to 3.3g version and Tasks stops working.
In my installation tasks works fine if user connects without reverse proxy between (<server>:8080/share)
But if user browse via reverse proxy (<server>/share) after trying to perform any action on Task user gets "Task action Failed"

Hi all
please see http://issues.alfresco.com/jira/browse/ALF-3543?page=com.atlassian.jira.plugin.system.issuetabpanels...

It helped me.

This is my current apache vhost config:
….
    ProxyRequests Off
    RewriteEngine On
    RewriteLogLevel 3
    RewriteLog "/var/log/apache2/rewrite.log"
    ProxyPass /share http://localhost:8080/share
    ProxyPassReverse /share http://localhost:8080/share
    RewriteRule ^/share/proxy/(.*) /share/page/proxy/$1 [QSA,PT]


My tasks is working now!

nadaoneal
Champ in-the-making
Champ in-the-making
aleks_sh, thank you! Adding in that one line Apache rewrite rule has fixed the issue for me.

datogee
Champ in-the-making
Champ in-the-making
Hi Guys,

Datogee here. I am new to alfresco. Seems that you guys have resolve the "Failed to action task" error. However from your replied I do not seem to understand where did you made those changes to solve the issue. Could you kindly detail out the steps to fix that isssue. I appreciate your kind assistance.

Thanks a bunch.

nadaoneal
Champ in-the-making
Champ in-the-making
Hi datogee,
The workaround we've used, which is not a solution, just a band-aid, involves software outside of Alfresco. We've edited our Apache config files to include a rewrite rule to redirect a bad Alfresco request to the right place. You may or may not be running Apache, so this may or may not apply to you. If you're not sure how to edit your Apache config files, this is not a good forum for you to get that advice. There's a lot to learn about Apache, and you can easily mess up your web server.

qwerty20
Champ in-the-making
Champ in-the-making
aleks_sh wrote:

This is my current apache vhost config:
….
ProxyRequests Off
RewriteEngine On
RewriteLogLevel 3
RewriteLog "/var/log/apache2/rewrite.log"
ProxyPass /share http://localhost:8080/share
ProxyPassReverse /share http://localhost:8080/share
RewriteRule ^/share/proxy/(.*) /share/page/proxy/$1 [QSA,PT]

I tried this configuration on my apache but I still get the "failed action task".
I am sure that the problem is on apache because when I tried to turn it off, everything's working fine, and My Tasks works.
On our setup, we have Haproxy, then the Alfresco server. I installed apache on our alfresco to redirect access to alfresco explorer to alfresco share.
here is my apache original config:

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyRequests       Off
ProxyPreserveHost On
ProxyPass           /share       http://serverip:8080/share
ProxyPassReverse    /share    http://serverip:8080/share

Adding the rewrite rule doesn't make any changes.
Note: I already enabled rewrite using sudo a2enmod rewrite.

Thanks.

kevinr
Star Contributor
Star Contributor
Fortunately this is a relatively easy fix. The problem is with the urlrewrite.xml configuration in Share. You can either upgrade to 3.4b Community, or you can simply manually edit the urlrewrite.xml within the Share web-app that you have deployed:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">
<urlrewrite use-query-string="true">

   <!– Spring Surf –>
   <rule>
      <from>/proxy/(.*)</from>
      <to>/page/proxy/$1</to>
   </rule>
   <rule>
      <from>/res/(.*)</from>
      <to>/page/resource/$1</to>
   </rule>
   <rule>
      <from>/service/(.*)</from>
      <to>/page/$1</to>
   </rule>
   <rule>
      <from>/feedservice/(.*)</from>
      <to>/page/feed/$1</to>
   </rule>
   <rule>
      <from>/system/(.*)</from>
      <to>/page/system/$1</to>
   </rule>

</urlrewrite>

Hope this helps,

Kev

qwerty20
Champ in-the-making
Champ in-the-making
It Worked!. Thanks kevin.  Smiley Happy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.