Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: guest22 on November 16, 2013, 11:45:08 AM

Title: Pydio error
Post by: guest22 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
Title: Re: Pydio error
Post by: Charles2008 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
Title: Re: Pydio error
Post by: davidS 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
Title: Re: Pydio error
Post by: guest22 on November 26, 2013, 10:36:16 PM
We need to wait for Daniel. I failed in finding a (root) cause.
Title: Re: Pydio error
Post by: Daniel B. 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
Title: Re: Pydio error
Post by: HomePlayer 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.
Title: Re: Pydio error
Post by: jester 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.
Title: Re: Pydio error
Post by: Daniel B. on February 11, 2014, 11:19:47 AM
Try removing your session with

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

And access Pydio again
Title: Re: Pydio error
Post by: jester on February 11, 2014, 11:31:19 AM
Hi Daniel,
removing the session info does not work.
Title: Re: Pydio error
Post by: Daniel B. 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 ?
Title: Re: Pydio error
Post by: jester on February 11, 2014, 11:44:25 AM
If i remember correctly the sequence was:

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 ~]#
Title: Re: Pydio error
Post by: Daniel B. 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 ?
Title: Re: Pydio error
Post by: jester 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.
Title: Re: Pydio error
Post by: Daniel B. on February 11, 2014, 11:53:11 AM
You can give the admin user access through group membership....
Title: Re: Pydio error
Post by: jester on February 11, 2014, 12:00:28 PM
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
I'm sorry to say, but still the same error.
Title: Re: Pydio error
Post by: jester 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?
Title: Re: Pydio error
Post by: bosco555 on February 18, 2014, 05:28:45 AM
Hi all,

Do we have and update to this error?
thanks and best to all
gb
Title: Re: Pydio error
Post by: Daniel B. 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.
Title: Re: Pydio error
Post by: bosco555 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???
Title: Re: Pydio error
Post by: Daniel B. 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 ;-)
Title: Re: Pydio error
Post by: bosco555 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!!!