WebDAV issues

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
im sorry, i've literally now tried every configuration i can think of, even the one from above where the member says that it worked for them and still it doesn't work.

since it works in the demo site, if Adam doesn't mind, of course without revealing any version numbers, he should say what he's running on his dev or demo site and I'm willing to try that out assuming i already havent.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
so sabredav is developed by a company called fruux which is based in Münster, Germany, well i guess that explains everything, just like bmw's and benz's the germans have over engineered something again causing it not to function properly.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Same issue here: i installed nginx, php, apache on my spare server and i can create / rename / delete folders and i am also able to rename / move / delete files here in my account using webDAV but just cannot upload files.

Interestingly enough first time i got something in the webdav logs file; hopefully Adam can look at this thread and point us in the correct direction or settings we need to look at..

Code:
2016-12-08 22:41:50 - Hit WebDav plugin receiver: /plugins/webdav/site/control/index.php
2016-12-08 22:41:50 - Successful WebDav login for user 'testuser'.
===========================================================
2016-12-08 22:41:51 - Hit WebDav plugin receiver: /plugins/webdav/site/control/index.php
===========================================================
2016-12-08 22:41:52 - Hit WebDav plugin receiver: /plugins/webdav/site/control/index.php
2016-12-08 22:41:52 - Curl request to: http://testsite.com/core/page/ajax/api_upload_handler.ajax.php
2016-12-08 22:41:52 - Curl params: Array
(
    [folderId] => -1
    [api_key] => 9954587e763f7f80a61bd504af3b18c9
    [username] => testuser
    [action] => upload
    [files] => CURLFile Object
        (
            [name] => /tmp/6c34c272f1776999114d109edb79737b8yYgXr
            [mime] => 
            [postname] => sample-upload-file.zip
        )

)

2016-12-08 22:42:13 - *** ERROR *** Failed reading response from: http://testsite.com/core/page/ajax/api_upload_handler.ajax.php. Response: <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>404 - Not Found</title>
	</head>
	<body>
		<h1>404 - Not Found</h1>
		<script type="text/javascript" src="http://gp1.wpc.edgecastcdn.net/00222B/beluga/pilot_rtm/beluga_beacon.js"></script>
	</body>
</html>
I also checked this location as mentioned in the logs: "/tmp/6c34c272f1776999114d109edb79737b8yYgXr" but there is no file. so it seems like its not even uploading even though it says successful.

Hopefully someone here know what else we can try to fix this issue. Seems like there is some code in the api_upload_handler.ajax.php file that is causing the error.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
thats not a bad idea bro, you should see if Adam will list it on the website after for some sort of profit sharing between you guys, theyve listed themes from 3rd party developers that have unfortunately ripped people off, why not actually list something from a trusted member like yourself. you can sell that for alot more money than the other plugins. im on a mac so im not gonna hold my breath :(
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
interesting, 404, i was getting a 405,

unfortunately im 9000km away from home, if i could i would setup a test site on a home server and try to trace where the files going, because mine "uploads" as well, just no clue where its actually going
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
my webDAV client does say upload successful but the file is nowhere on the server.

I found something in the 'cross_site_action' table: When i upload the file manually the "Data" column says ("_logged_in_user_id":"1") but when the file gets uploaded via webDAV client, the column says ("_logged_in_user_id":""). Below is the copy of the row:
Code:
44   2e27a68d76260373661d488b819ff8c462e36c14014ea4efd8ec66f0442115f4 7472d9c96514b7cc1f295f4e715d1f448403f5631ec968dba554b5b1a97b18 {"_session_id":"bvg1bkri4mokmsvnivbe9pitq1","_logged_in_user_id":""}	2016-12-08 22:32:35
Not sure if this means anything. but this is the only different thing i see in the database between uploading file manually and uploading via webDAV client.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
interesting, i'll take another look, regardless even if its some sort of write to db issue it still doesnt explain where the file physically went on the server.

ill experiment again tomorrow as a good friend of mine is letting me test on his dedicated server that he's not doing much with.

one thing to note though is that all my experiments are on centos 7, i dont like ubuntu servers, in my experience they run memory heavy and that takes away resources from stuff i want to run.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
also all my tests have been on vps to date, ill update you tomorrow or the day after
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
All i tested was on dedicated server and the uploaded file eventhough it says successful, cant be found on the server hard drive.
I also only use centos for my servers. i probably will try it on ubuntu server next and update here in this thread.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
holy sh#t, i've made some progress, files actually upload and show up in the account and exist in newly created folders in the files dir, however files are created with 0 bytes, this may be some sort of nginx rules, or some sort of nginx module that needs to be configured and nginx recompiled, at this point, going to follow the guides that Adam recommended.

fyi, this is the conf im running now

os: centos 7.2
control panel: centminmod (LEMP), site: centminmod.com
sql: mariadb 10

if you choose to run this conf left me know n ill help you out as the nginx rules are tricky as centmin splits nginx rules in a strange way, took me 3 hrs just to figure that one out alone.

also a point to note that this is on a ded server not my old vps
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
do you know if cron is reqd for any of the sites file upload ops, i dont even want to bother with cron until i get this working so all i setup was the main site and the webdav plugin
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
cool! that is one step closer. For uploads, you do not need cron unless you are working on remote upload feature.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
slight delay, nginx crapped out after i misconfigured it and permanently refused to be resurrected so i had to resort to the dreaded reimage option. I should have a definitive success or fail within a few days hopefully
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
still no luck, im wondering if i should set up cloudflare as the yetishare demo site does

not sure if this is worth it as i'd have to change dns around

what do you think Sukhman, is the cloudflare experiment worth it at this point
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Hey buddy, i honestly don't think its worth spending any more time on this anymore. I had a brief message with Adam and he mentioned that they will have an API developed in the next release (which is supposed to come out in 4 weeks from now) so i was just hoping to develop a file upload and download software myself and then maybe go for a sync client programmed for different OS's and mobile OS's.

I actually found more issues in the demo webDAV, the download URL that webDAV client provides for the files, is not correct, it basically just gives out. www.fhscript.com/filename.jpg , It misses the short URL path in the URL so you would need to upload the file and then go to the website File Manager to get download URLs to share with others. Not sure how many people will like this..

What do you think? We can probably work together in developing the file upload and download software later if you wish ?
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
Fair enough bro, what you're saying makes sense, I'm willing to work with you but am in no way anything more than a beginner in php so i'm not sure what i can offer in this case
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
on the bright side i finally got gfuse working so i have my upload directory mounted on the local file system and exists on a google bucket, wont work for streaming videos but it should work well for uploads/downloads, i think, im going to test it out, Adam should introduce this feature as a plugin
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
It's all good bro, i am not an expert either but i am sure we can fiddle around and learn from it and get something working.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Alrighty guys, i got webDAV to work fully. My setup: centos 6.8 running nginx with php 7.1 & Maria DB
I can create / delete / rename folders and files. i can upload / delete / rename files.

Happy new Year.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
nice, well done bro, for me i cant run php 7.1 and im also running centos 7

What did you compile your nginx with args wise, did you add the webdav module or without, and also did you add anything extra on top of the nginx conf.

I'd love u forever if you posted your nginx conf file (just remove any ref of your domain)

thanks bro