Language:
switch to room list switch to menu My folders
Go to page: First ... 14 15 16 17 [18]
[#] Wed May 04 2022 16:07:03 EDT from BobS

Subject: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

I am running Citadel server v 950 on a Raspberry Pi.  All mail is local.  Nothing is sent to the outside.   If I attach a file, say 33 KB, to a mail message and send it, the person receiving the file gets a file of 7.7 KB and it is corrupted.  In several test of various size files, each comes out the other end corrupted and with a size of 7.7 KB.

I have look thru the knowledge base but I don't see any reference to anything relating to attachments.'

Any thoughts on how to resolve the issue and get a usable file to the recipient?

Bob S

Sequim, WA

 



[#] Thu May 05 2022 15:07:46 EDT from BobS

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

Will not send attachments with Ubuntu OS either.

Bob

Sequim, WA



[#] Fri May 06 2022 00:40:54 EDT from IGnatius T Foobar

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

You're not the first to report trouble with attachments on a Raspberry Pi but the problem has been elusive to reproduce. What OS are you running on the Pi, and is it 32 or 64 bit, how much installed RAM, how much swap is configured, and how did you install Citadel?

[#] Fri May 06 2022 04:02:01 EDT from BobS

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

"What OS are you running on the Pi, and is it 32 or 64 bit, how much installed RAM, how much swap is configured, and how did you install Citadel?"

 

What OS...   I tried Buster, 32 bit, on a 32GB SD card, I believe the Pi has 256 MB of RAM. I did not enable any additional swap space,   I used the easy install.

I also tried an install (on the same Pi board) of Ubuntu 20.4, 32 bit on a 32GB SD card, I believe the Pi has 256 MB of RAM. I did not enable any additional swap space,   I used the easy install.

 

Bob

Sequim, WA



[#] Fri May 06 2022 06:31:14 EDT from BobS

Subject: RAM and Swap

[Reply] [ReplyQuoted] [Headers] [Print]

Currently using the Ubuntu 20.4 OS.  Typing    sudo free -h     I get:

RAM  total 917mi, used 136mi, free 144mi, shared 3.0mi, buffer 636 mi, available 757

Swap = 0

Bob

Sequim, WA



[#] Sun May 08 2022 09:08:36 EDT from BobS

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

Put Ubuntu 20 on an old PC along with Citadel loaded from the easy install.  Initially I noticed the same thing.  I would get kicked out of the application about 80% of the time as soon as I posted an attachment.  I began to notice if I waited for 5 to 10 seconds after i did the attachment before closing the page and going back to the email, putting some words in the email, waiting another 5 seconds, then click send, the mail and attachment would go almost 100% of the time. 

i will go  back to the RPi and see if the same scenario plays out when putting the delays in the process.

Bob

Sequim, WA



[#] Sun May 08 2022 15:09:29 EDT from IGnatius T Foobar

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

That's a good thought. I've also got a Pi set up with a Citadel environment and I think we've got at least some part of your problem reproduced. People have reported problems with attachments on Pi before, but it's been elusive.
I always assumed it had something to do with memory management, but maybe you're onto something and it's a race condition. Will look into this more!

[#] Wed May 11 2022 09:59:41 EDT from IGnatius T Foobar

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]


Just as a quick update ... so far, what I have been able to reproduce is that I get s software crash while attempting to upload large attachments on a Pi. The debugger says its crashing inside the base64-encode library. Does this sound like what you miht be experiencing? Incoming mail from the outside would be encoded somewhere else, so it wouldnt crash the library.

[#] Thu May 12 2022 00:16:19 EDT from BobS

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

Size of the attachment did not make any difference.    I could reproduce it 100% of the time if I did an attachment, quickly hit close and then, again, quickly hit send.  Also, leave the document blank with no words. 

 

Bob



[#] Mon May 16 2022 11:28:08 EDT from IGnatius T Foobar

Subject: Re: Attachments to mail

[Reply] [ReplyQuoted] [Headers] [Print]

All right, I found at least one bug where it was calculating an encoding buffer size incorrectly on memory-constrained systems such as raspberry pi. Now I am also seeing attachments being cut off before completion; working on that now."

Go to page: First ... 14 15 16 17 [18]