Go to advanced search

by Rilhas
Sun Jul 30, 2017 5:48 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Renaming the old directory and creating a new directory solved it. I would really like to know why, though. I'm sure I'll run into this problem again as the new folder becomes populated, and I'm sure it will let me still create more files except for some specific names. I've already done this a few ...
by Rilhas
Sun Jul 30, 2017 5:36 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

... crap... replacing the underscores with hyphens doesn't solve it. Now the problem happens with some other random file (page 2): ../HTML_Server_Cache/http---www.era.pt-imoveis--pg-2-o-1-t--a--dd--cc--ff--z--cp--nq--p--ar--ca-00000000-ct-0000-or-41-idioma-pt1_ck-0x3c51fac3.txt My next test is to re...
by Rilhas
Sun Jul 30, 2017 5:16 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

I think we are going a bit off-topic here, but I've seen a lot of people still believe on old myths and old practices of the past century, and never got to learn the new features and new protections on modern equipment. I'm not saying that this is your case, but the fact is that no one here that com...
by Rilhas
Sun Jul 30, 2017 4:14 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

I didn't explain myself correctly. I meant "pull the plug" as in "pull the Raspberry Pi power plug", not the USB power plug to which the disk is connected to. Nevertheless, I can't avoid power outages, and a big UPS isn't practical (and I've bought 3 over the years and they all f...
by Rilhas
Sun Jul 30, 2017 3:41 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

I respect your opinion (and I understand that I was the one coming here asking for help), but for the last 15 years I've pulled the plug on hundreds of Windows machines (used in professional environments, with power cut automatically through relay switches) and I ran into exactly 0 file system probl...
by Rilhas
Sun Jul 30, 2017 3:13 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Ok, thanks. I will keep on pulling the plug though, Windows can take it perfectly, and I think the Raspberry Pi should too. I understand SD card corruptions if I pull the plug (there is not enough electronics in them to handle power outages gracefully), but I don't find it acceptable that in the 21s...
by Rilhas
Sun Jul 30, 2017 2:44 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Here are the result: pi@RILHAS-SRV ~ $ sudo fdisk -l /dev/sda Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal):...
by Rilhas
Sun Jul 30, 2017 2:22 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

The code is in use for years, and used extensively on Raspberry Pi's, production servers, my Windows desktop and laptop, and for various applications. It is a kind of C++ "platform", but ultimately what it does is: 1) replace all invalid file name characters with an underscore (like '/' an...
by Rilhas
Sun Jul 30, 2017 1:55 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

No, scratch that. The copy/paste was not being done properly. Pasting the file name from your message doesn't work after all.
by Rilhas
Sun Jul 30, 2017 1:54 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Well, now adding to weird (or maybe less weird after all) if I copy the file name from your message it works on my system, and the file is created. My theory now is that my software must be using some invalid characters that are not visible, and that are lost in the copy/paste from the forum and the...
by Rilhas
Sun Jul 30, 2017 1:48 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Thanks for your help!

That means that it is some problem specific to me... maybe something is corrupted, although I have no idea how that results in the refusal to create specific files, complaining that there is not enough free space.

Thanks again!
by Rilhas
Sun Jul 30, 2017 1:36 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

... trying the absolute path also fails, as long as the path is /RILHAS-SRV/app/HTML_Server_Cache/http___www.era.pt_imoveis__pg_1966_o_1_t__a__dd__cc__ff__z__cp__nq__p__ar__ca_00000000_ct_0000_or_41_idioma_pt1.txt
by Rilhas
Sun Jul 30, 2017 1:34 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

In your experiment you tried with a different path, so I'm not surprised you didn't run into the problem. As I explained, if I change a character the file succeeds, and changing the path results in changing lots of characters. I also tried doing this experiment from a different source folder, and if...
by Rilhas
Sun Jul 30, 2017 10:12 am
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Re: Weirdest thing ever with some specific file names

Hi! Thank you for your reply. Yes, it is an EXT4 file system: pi@RILHAS-SRV ~ $ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/root 1221600 100267 1121333 9% / devtmpfs 109302 390 108912 1% /dev tmpfs 110381 314 110067 1% /run tmpfs 110381 2 110379 1% /run/lock tmpfs 110381 3 110378 1% /r...
by Rilhas
Thu Jul 27, 2017 5:10 pm
Forum: Troubleshooting
Topic: Weirdest thing ever with some specific file names
Replies: 24
Views: 3498

Weirdest thing ever with some specific file names

Hi, I've been using the Pi for a long time now, went through multiple hardware versions, multiple Raspbian versions, and one thing that happens every now and then is the inability to create specific files. This is hard to see, because the occurrence is rare to watch, but today I got a series of them...
by Rilhas
Thu Nov 06, 2014 1:32 pm
Forum: Troubleshooting
Topic: SSH - Server Closed Connection Unexpectedly after password
Replies: 3
Views: 2550

Re: SSH - Server Closed Connection Unexpectedly after passwo

That happens to me periodically. Usually a restart solves it. I have no explanation for that, but I have a theory that something gets corrupted (in RAM). When it happens, the Pi can become completely unresponsive, sort of like dead. On other occasions, some applications are still running, while othe...
by Rilhas
Sun Aug 26, 2012 1:52 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

As I don't know what's in said file I can only say that It should likely exist as a bunch of services in /etc/init.d/, or called from /etc/rc.local. The autoexec file just contains a sequence of "start this", "start that", "wait a little", "start that other thing&...
by Rilhas
Tue Aug 21, 2012 5:55 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

Thanks for the explanation! Is autoexec.sh some kind of hacky replacement for crontab? It is not really intended as a hack. Its primary purpose is to provide an OS-independent startup sequence. Since I started messing with startup sequences back in the old MS-DOS days what beter name than autoexec? ...
by Rilhas
Wed Aug 15, 2012 12:57 am
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

Interesting. They are all using the same deleted file for fd/2, which is stderr, the stream that UNIX programs conventionally write their error messages to. To see what they have written to the file, try "less /proc/1652/fd/2" where 1652 is any of the processes that still exist. Wow!!! Wh...
by Rilhas
Tue Aug 14, 2012 11:50 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

pi@raspberrypi /media/RPIDISK/app $ lsof -a | grep tmp -bash: lsof: command not found pi@raspberrypi /media/RPIDISK/app $ sudo apt-get install laof Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package laof pi@raspberrypi /media/RPIDISK...
by Rilhas
Tue Aug 14, 2012 11:41 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

sudo sh -c "ls -ld /proc/*/fd/*" 2>&1 |grep /tmp |grep deleted pi@raspberrypi /Temp $ sudo sh -c "ls -ld /proc/*/fd/*" 2>&1 |grep /tmp |grep deleted lrwx------ 1 pi pi 64 Aug 14 23:53 /proc/1652/fd/2 -> /tmp/tmpfM6EBoC (deleted) lrwx------ 1 pi pi 64 Aug 14 23:53 /proc/1...
by Rilhas
Tue Aug 14, 2012 10:56 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

Run lsof -a | grep tmp pi@raspberrypi /media/RPIDISK/app $ lsof -a | grep tmp -bash: lsof: command not found pi@raspberrypi /media/RPIDISK/app $ sudo apt-get install laof Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package laof pi@ras...
by Rilhas
Tue Aug 14, 2012 8:18 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

Does "ls -laR /tmp" show any large files? Hi, The problem is manifesting itself again. pi@raspberrypi /media/RPIDISK/app $ ls H<TAB pressed>-bash: cannot create temp file for here-document: No space left on device -bash: cannot create temp file for here-document: No space left on device A...
by Rilhas
Sun Aug 12, 2012 2:35 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

Re: SSH - -bash: cannot create temp file for here-document:

Does "ls -laR /tmp" show any large files? Thanks for your quick reply. Unfortunately I was getting a little annoyed so I rebooted it, so the problem is no longer present. Anyway, invoking the command you suggested: pi@raspberrypi /media/RPIDISK/app $ ls -laR /tmp /tmp: total 8 drwxrwxrwt ...
by Rilhas
Sun Aug 12, 2012 1:59 pm
Forum: Networking and servers
Topic: SSH - -bash: cannot create temp file for here-document:
Replies: 16
Views: 34144

SSH - -bash: cannot create temp file for here-document:

Hi, I'm having a problem with my SSH server where after a few days on it becomes unable to perform TAB-completion. It still accepts connections and allows me to do anything except use the TAB-completion. So, every time I press TAB to complete a file name or path it fails with the message "-bash...

Go to advanced search