-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftp upload not working #101
Comments
Try to run the script ftppush.sh manually and check the logs. |
How I run the script, I don't know how to do it |
Login with ssh and run the folling commands:
|
This is what I get when I run it manually by ssh, the time and date are not current because I don't have internet on the router where the camera is connected and I don't know how to manually set the date and time on the camera. root@yi-96dd: |
Line 5 says that the user does not have correct permissions. |
The ftp server user is admin, in the asus router's ftp server configuration I have created a video folder which has R / W permissions activated for the admin user and in the motion events configuration, in ftp directory I have selected the video folder that I have created on the ftp server |
Try to login manually (eg Filezilla) to the ftp and try to upload a file. |
It already works for me, the problem was that the path of the videos folder of the ftp server was incorrectly configured in the camera configuration, the path that I had set was / Videos and the correct path is / sda1 / Videos Thank you very much. |
Same here. Anon user gets cant' t change directory to /home/ftp and normal user seems not providing the correct password to the server. ftpput: unexpected server response to PASS: 530 Login authentication failed What can I do? |
I get the same here too but my error is: ftpput: unexpected server response to STOR: 553 12M00S60.mp4: Permission denied. I have tested the ftpuser in the FTP server with WinSCP and FileZilla and the user / pass works and can create directories/files. I have disabled unwanted services like ONVIF and Telnet and tried to enable the swap option., Nothing works. Any tips please? |
Run it manually and post the full log: |
In my case I'm an idiot)) I used camera's IP as ftp server address. Damn stupid)) Now it all works like a charm. Cam sends vids to a folder on the ftp server. That folder is synced to OneDrive and set as online only. So the vids don't take up any space on the ftp server and always available online. Thanks Roleo! |
Thanks so much for the replies. I have captured the output showing the error after running the ftppush start. It's here in pastebin. Is this what you meant or is there a log file I need to grab too? |
I'm certainly one of those :) - I have checked the IP, user/pass many times.... so hope that's not it. Do you use a port number in the FTP Host field? I am leaving mine as just IP as the FTP sever is on default port 21. I wonder if it can be the FTP server. I may spin up a test FTP server in a docker but I'd need to use another port... @roleoroleo does the FTP Host field support IP:PORT? |
Sorry to spam the posts. I have used an admin account (instead of my ftpuser account) and it all works. I must have a permission error at my FTP Server end. Sorry for the messing around. |
Last post, I promise! :) |
I will check it. |
I think the problem is, that the created directory has only chmod 644. If i chance the permissions to 755 at the ftp server, the uploads runs perfectly. Maybe there is a error in the scripts, which do the upload? |
The script doesn't set permission.
with this
and 174
with this
|
Check if the user you are using is able to change permissions. |
This is the FTP from my web hosting provider, I don't have access to SSH here. With the same access data, I can use everything in my FTP software, including CHMOD, etc. |
Could you try to run this command manually?
|
I have a problem with the ftp upload in the new camera, the camera is yi home ifus version the Firmware: 9.0.36.02 and I use the y211ga files version: 0.1.8, the upload to the ftp server does not work and if I run the command: / tmp / sd / yi-hack / script /ftppush.sh start by ssh I get this in the registry: root@porche:~# /tmp/sd/yi-hack/script/ftppush.sh start If I go into the motion event section, the folder of what he has recorded appears, but no file of what he has recorded appears, however if I connect by ftp to the camera if the recorded files appear. you can see it in the following images: I need to use the ftp upload function for my video surveillance system. |
Sorry, to many Problems... I've returned the camera. |
Probably the script must be updated with the new naming convention. |
By when do you think you can have it corrected? |
I need a few days. |
No problem, I'll wait patiently. |
Try this commit: |
I have replaced the files of the micro sd with the new ones and it still does not work, the files are not seen in the web interface and if I run the script by ssh it does not work. |
Something is wrong. |
I have created the files, I have copied the new content in each file, I have removed the micro sd from the camera and I have replaced the previous files, if I copy the old files again and run the script it works giving the previous error. |
Check the permissions. |
I tested it again and I can't find the problem. Are they in windows format? |
I do not know what format it is in, create the file with the Windows notepad and change the extension to .sh, my problem may be that I do not create the file correctly, I have the camera in my country house and even the weekend I can not go to test it, I will try to create the files again with visual studio code. |
I'm pretty sure that your problem is the format. |
I have created the files again in ubuntu and the eventsfile.sh already works, but the ftppush.sh still does not work, it gives the same error. |
Ok. Wait for a new release to install. |
I have upgraded to version 0.1.9 and I keep getting the same error when running the ftppush.sh script |
Let's start over. |
Yes, I was able to see the recorded files from the events page. |
Ok.
and check the output. |
What's the model of your cam? |
The camera model is a yi home ifus software version 9.0.36.02.202105081647 and the files it has is y211ga. |
Ok, I think that I found the problem.
|
I have changed the value 14 to 44 in line 64 and it already works, I have also changed it in another camera yi outdoor ifus software version 9.0.26.07_202104231123 with h30ga files that had the same problem and also works correctly. |
Hi Roleo, |
I've added the following code in the else part:
It seems to work for now and will see in a couple of days if there still are file that remain on the SD card. |
There is a var where the script stores the last file sent (only the last). Your code is ok but you should try again only if FTP_FILE_DELETE_AFTER_UPLOAD is "yes". |
You are right: for me it is the same but for who doesn't use the flag "delete after upload", it is. |
Hey, I'm running an FTPD on a non-default port. For now I've changed the ftppush.sh script with the hardcoded port for Apart from that: Would it be possible to support SSL/TLS FTPS? |
Hmm, it also doesn't seem to ever send anything. I've tried running the script manually, this is the output:
Edit: It does create the remote folder, though ( Camera is h60ga with the Edit: Scratch that, it just started uploading. |
I can't embed in the hack but you could use openssh from here: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have a problem with the ftp upload of the videos recorded by the camera, I have configured an ftp server in an asus router to which I have a pendrive connected, in the motion events settings, I have ftp upload enabled, in ftp host I have the router address 192.168.1.1, but it doesn't work, we don't upload the videos to the ftp server
The text was updated successfully, but these errors were encountered: