nUpdate icon indicating copy to clipboard operation
nUpdate copied to clipboard

Errors uploading package, deleting package, checking configuration file

Open Berdi2 opened this issue 3 years ago • 19 comments

This error comes up when I try to upload new packages: Screenshot(800) (German translated: The length cannot be less than 0 (null).) This didn't come up previously, I also can't delete that package anymore. Error: Screenshot(801) (German translated: The length cannot be less than 0 (null).) I think it might be connected to this error I get everytime I open up the project: Screenshot(799) But I got this error from the first time opening the project and everything worked fine, so I thought it wouldn't be an issue.

I also haven't uploaded any packages to this project after 21st May 2021 (21.05.2021)

Berdi2 avatar Jun 12 '22 18:06 Berdi2

Hi,

this is weird. Is your FTP configuration correct? The file seems to exists, but nUpdate does not seem to be able to locate it when using FTP. Does the FTP directory in any way differ from the real path?

dbforge avatar Jun 13 '22 11:06 dbforge

So I think it does a little bit, the Update-URL is http://berdi.bplaced.net/Notes/ (I hope it's ok I write the website, it's not commercial in any way though) and the Directory is berdi.bplaced.net/www/Notes. I don't know why it adds the /www/ I think it's just a bplaced thing, but I don't know how FTP Servers work. However, the updates.json file is visible in the Directory in FileZilla and at the Update URL

Edit: I could imagine the subdomain being a problem

Berdi2 avatar Jun 13 '22 11:06 Berdi2

Ah well, I remember someone also had a similar problem once. I think it was also bplaced.

So did you add the www to the directory in the project configuration? Maybe try to do so if it is missing or remove it in case it is there. If you are lucky, you may get it working by doing so. I do not know the structure of their file system, unfortunately.

Have you uploaded the file manually to the server or did the Administration do this?

dbforge avatar Jun 13 '22 15:06 dbforge

It is included and trying to remove it gives me this error: Screenshot(803)

Do you mean the updates.json file? The Administration uploaded that

Berdi2 avatar Jun 13 '22 15:06 Berdi2

Can you right click on the error message, click "Copy entire message" and paste it here? I guess it's a problem in the FTP library, but just to be sure about that.

Ok, then this is indeed weird. This indicates that your FTP configuration is correct and something else is wrong here. But I would need to have a look at the stacktrace for that, if you may post it (with the way above).

dbforge avatar Jun 13 '22 15:06 dbforge

https://pastebin.com/TEsaXHJx I hope this helps

Berdi2 avatar Jun 13 '22 15:06 Berdi2

Ok, that happened when you editted the project. Can you maybe send me the above one from the package creation?

dbforge avatar Jun 13 '22 16:06 dbforge

https://pastebin.com/BpdcJD8U Edit: The package gets created, but cannot be released

Berdi2 avatar Jun 13 '22 16:06 Berdi2

Okay, thank you. As I expected, this is a problem in the FTP library. It seems to get a response it can not parse/handle correctly. All I can do is change the underlying FTP-library in this case.

dbforge avatar Jun 13 '22 16:06 dbforge

That would be really nice! Thank you for taking the time to even look into the issue :D Edit: If you need any more data I will happily provide it!

Berdi2 avatar Jun 13 '22 16:06 Berdi2

No worries. How quick do you need this?

dbforge avatar Jun 13 '22 16:06 dbforge

No pressure, I can wait. I only use it once in a while to push my hobby project to a few friends.

Berdi2 avatar Jun 13 '22 16:06 Berdi2

Okay, I will maybe have a look at it tonight. The big advantage is that I've written clean, capsulated code back in the time.

dbforge avatar Jun 13 '22 16:06 dbforge

Hey I'm back home, did you make any progress?

Berdi2 avatar Jun 20 '22 19:06 Berdi2

Hi mate,

sorry, I was on vacation last week and did not manage to look into it that evening. I will do that now.

dbforge avatar Jun 21 '22 18:06 dbforge

Have you changed anything? I can upload and delete packages again without any problems

Berdi2 avatar Jul 03 '22 12:07 Berdi2

Hi,

no, I pushed some changes in a feature branch, but have not yet changed anything. That is nice to hear, maybe some changes from bplaced? Could be that they had difficulties.

dbforge avatar Jul 03 '22 20:07 dbforge

Possible, I'm just glad it works again!

Berdi2 avatar Jul 03 '22 21:07 Berdi2

Ok, that is nice. I will still push the feature branch soon, but then I won't have to hurry.

dbforge avatar Jul 03 '22 21:07 dbforge