Koozali.org: home of the SME Server

Pydio error

guest22

Pydio error
« on: November 16, 2013, 11:45:08 AM »
Hi,

I've installed Pydio as per the how-to. When trying to access https://myserver.com/pydio I get the follwoing error:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<tree>
<message type="ERROR">Invalid argument supplied for foreach()</message>
</tree>

There is a /var/log/pydio directory, but it's empty.

(myserver.com is an example)

TIA
guest

Offline Charles2008

  • *
  • 174
  • +0/-0
Re: Pydio error
« Reply #1 on: November 16, 2013, 03:18:52 PM »
I installed recently on an up-to-date SME8 (1 month ago) and all went reasonably smoothly before my server upgrade.

My install seemed perfectly functional from within the LAN. I never tried to access from WAN.
Charles

Offline davidS

  • ***
  • 80
  • +0/-0
Re: Pydio error
« Reply #2 on: November 26, 2013, 10:33:34 PM »
hi
i have the same error when i entering https://my-domain/pydio

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<tree>
<message type="ERROR">Invalid argument supplied for foreach()</message>
</tree>

is there any solution ?
thanks

guest22

Re: Pydio error
« Reply #3 on: November 26, 2013, 10:36:16 PM »
We need to wait for Daniel. I failed in finding a (root) cause.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #4 on: November 27, 2013, 09:10:57 AM »
hi
i have the same error when i entering https://my-domain/pydio

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<tree>
<message type="ERROR">Invalid argument supplied for foreach()</message>
</tree>

is there any solution ?
thanks

This error seems to indicate you don't have a shared folder with Pydio access enabled (or you logged on Pydio interface before enabling Pydio access on a Shared Folder). Try:

- To create a Shared Folder, be sure Pydio access is enabled
- Then run signal-event webapps-update (it will close all active sessions)

Then try again to access Pydio interface
C'est la fin du monde !!! :lol:

Offline HomePlayer

  • **
  • 55
  • +0/-0
Re: Pydio error
« Reply #5 on: November 27, 2013, 10:58:43 PM »
Hey,

I had the same error,
Daniel B. is right. After I did that i did work. SME 8.1 beta2 64bit

Only thing is, after a log in, logging out didn't work.  :shock:
I cant test now server needs to be replaced(down), and local network reworked.

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #6 on: February 11, 2014, 11:14:25 AM »
Hi,

I'm having the same trouble because i did not make a Shared Folder before accessing pydio...
Thing is though, creating a shared folder with Pydio access enabled and running "signal-event webapps-update" does not change the situation. No clues in the pydio and httpd logs. Anyone with a thought?

It's a clean SME8 (virtual) and Pydio install by the way.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #7 on: February 11, 2014, 11:19:47 AM »
Try removing your session with

rm -f /var/lib/pydio/tmp/sess_*

And access Pydio again
C'est la fin du monde !!! :lol:

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #8 on: February 11, 2014, 11:31:19 AM »
Hi Daniel,
removing the session info does not work.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #9 on: February 11, 2014, 11:35:10 AM »
So, you installed Pydio, you login (as which user btw ?) before Pydio access was enabled on a Shared Folder, then you have enabled Pydio access on a Shared Folder, ran signal-event webapps-update and still the same error ?

Does the user you used to login has at least read access to the Shared Folder with Pydio enabled ?
C'est la fin du monde !!! :lol:

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #10 on: February 11, 2014, 11:44:25 AM »
If i remember correctly the sequence was:
  • Clean install SME8 and Pydio
  • Try to login to Pydio as admin
  • Create share with Pydio access enabled
  • Created a new user
  • Enable RW access to the share for that user
  • Ran "signal-event webapps-update"

I've noticed a /var/lib/pydio/tmp/failedAJXP.log (don't know if related)
Code: [Select]
[root@teamshare ~]# cat /var/lib/pydio/tmp/failedAJXP.log
a:0:{}[root@teamshare ~]#

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #11 on: February 11, 2014, 11:46:26 AM »
Have you closed your browser ? first time you loggued with admin, does the admin user has access to this Shared Folder ?
C'est la fin du monde !!! :lol:

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #12 on: February 11, 2014, 11:52:16 AM »
Browser has been closed (was yesterday). Cannot give admin user access to the Shared Folder (admin user does not appear under user permissions), that's why i created different user. Have only been using new user since.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #13 on: February 11, 2014, 11:53:11 AM »
You can give the admin user access through group membership....
C'est la fin du monde !!! :lol:

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #14 on: February 11, 2014, 12:00:28 PM »
  • Created an administrators group and added admin user
  • Set RW access to this group on the Shared Folder
  • Ran:
Code: [Select]
[root@teamshare ~]# rm -f /var/lib/pydio/tmp/sess_*
[root@teamshare ~]# rm -f /var/lib/pydio/tmp/failedAJXP.log
[root@teamshare ~]# signal-event webapps-update
  • New browser session
  • Logged in as admin
I'm sorry to say, but still the same error.

Offline jester

  • *
  • 496
  • +1/-0
Re: Pydio error
« Reply #15 on: February 11, 2014, 12:27:03 PM »
Running another test install to see if i can reproduce this....

... Yes it can be reproduced!

On a clean SME8 installation (with latest upds) and running the sequence as i described in my earlier post, Pydio is inaccessible with the "Invalid argument supplied for foreach()" error message.

Also done another new installation and walked through the steps as described in the wiki: created a user, a Shared Folder with Pydio Access enabled, assigned the user access rights to the Shared Folder, ONLY THEN opened the Pydio WebGUI => This works.

@Daniel: do you deem this bugtracker worthy?
« Last Edit: February 11, 2014, 03:53:21 PM by jester »

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Pydio error
« Reply #16 on: February 18, 2014, 05:28:45 AM »
Hi all,

Do we have and update to this error?
thanks and best to all
gb

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #17 on: February 18, 2014, 09:38:54 AM »
Ok, I was able to reproduce this, so I should be able to fix it. Waiting for a fix, the problem occures when the shares with Pydio access enabled are only accessible to specific users. To work arround this, just create a group, and grant at least read access on the share to this group.
C'est la fin du monde !!! :lol:

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Pydio error
« Reply #18 on: February 18, 2014, 09:49:09 AM »
HI Daniel,

thank you for your reply.  No problem..I can do that as a workaround, however we are going to have problems if some users have access to sensitive/private areas.  I guess we could maybe create other shares and groups if we want to keep areas/shares invisible to some users..No probs..

Thanks again for your effort..It's appreciated a lot!!

And mais oui..c'est la fin du monde vraiment....Pouvoir nous chasser les zombies et les extra - terrestres  s'il vous plait???

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Pydio error
« Reply #19 on: February 18, 2014, 09:54:13 AM »
thank you for your reply.  No problem..I can do that as a workaround, however we are going to have problems if some users have access to sensitive/private areas.  I guess we could maybe create other shares and groups if we want to keep areas/shares invisible to some users..No probs..
In fact, you don't have to grant access to a shared folder to any group. The problem only occures when you haven't created a group at all. Just create a group (you don't have to add members, or to grant access to any share) and everything should start working. I'm testing a definitive fix which should be available today.

And mais oui..c'est la fin du monde vraiment....Pouvoir nous chasser les zombies et les extra - terrestres  s'il vous plait???
Of course ;-)
C'est la fin du monde !!! :lol:

Offline bosco555

  • ****
  • 152
  • +0/-0
Re: Pydio error
« Reply #20 on: February 18, 2014, 10:27:11 AM »
Thank you very much Daniel...this contrib is going to make a world of difference...thanks again!!!