"Missing" file

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

"Missing" file

Post by Boca » Tue Feb 20, 2018 9:24 am

Using Document Viewer, I saved a file kat.pdf to my desktop but now cannot see it using either CLI or file manager ( even showing hidden files) .

If I search for the file kat.pdf, using Catfish or CLI, I cannot find anything

If I go back into recent docs within the Document Viewer it shows the properties of the file as file:///home/tony/Desktop/kat.pdf and can open the file.

I feel I am missing something obvious here (?)

Tony

PS quick edit... there is only one user account

Code: Select all

tony@tony-Latitude-E6430 ~/Desktop $ inxi -Fxz
System:    Host: tony-Latitude-E6430 Kernel: 4.4.0-112-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: MATE 1.18.0 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Dell (portable) product: Latitude E6430 v: 01
           Mobo: Dell model: 0CPWYR v: A00 Bios: Dell v: A07 date: 10/08/2012
CPU:       Dual core Intel Core i5-3210M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9968
           clock speeds: max: 3100 MHz 1: 1238 MHz 2: 1278 MHz 3: 1296 MHz
           4: 1282 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz, 1024x768@60.00hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card Intel 7 Series/C210 Series Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-112-generic
Network:   Card-1: Intel 82579LM Gigabit Network Connection
           driver: e1000e v: 3.2.6-k port: f080 bus-ID: 00:19.0
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
           Card-2: Intel Centrino Ultimate-N 6300
           driver: iwlwifi bus-ID: 02:00.0
           IF: wlp2s0 state: down mac: <filter>
Drives:    HDD Total Size: 1320.2GB (78.3% used)
           ID-1: /dev/sda model: TOSHIBA_MK3261GS size: 320.1GB
           ID-2: USB /dev/sdb model: My_Passport_07A8 size: 1000.2GB
Partition: ID-1: / size: 282G used: 249G (94%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 12.75GB used: 0.01GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 50.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 205 Uptime: 6:28 Memory: 3635.1/11889.2MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 

User avatar
WharfRat
Level 21
Level 21
Posts: 13079
Joined: Thu Apr 07, 2011 8:15 pm

Re: "Missing" file

Post by WharfRat » Tue Feb 20, 2018 9:29 am

If you can open it, it must be there :?

Does find ~ -name kat.pdf find it :?:
ImageImage

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Tue Feb 20, 2018 9:39 am

Hi WharfRat,

sorry that doesn't find it..

Code: Select all

tony@tony-Latitude-E6430 ~ $ sudo find ~ -name kat.pdf
tony@tony-Latitude-E6430 ~ $ sudo find ~ -name kat*.pdf
tony@tony-Latitude-E6430 ~ $ 
 
Tony

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Tue Feb 20, 2018 9:42 am

strangely, Document Viewer now no longer shows the file in recently viewed but shows files from a few weeks ago; I haven't performed a restore of log-off&on.

There is nothing in the wastebasket either.

Tony

User avatar
WharfRat
Level 21
Level 21
Posts: 13079
Joined: Thu Apr 07, 2011 8:15 pm

Re: "Missing" file

Post by WharfRat » Tue Feb 20, 2018 9:55 am

Are you sure of the file name :?:

Is it possible that you accidentally deleted it or moved it elsewhere :?:

Try all pdf files with find ~ -iname '*.pdf'
ImageImage

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Tue Feb 20, 2018 10:10 am

Searching for *.pdf doesn't find it either.

Neither does "find files created today" find any pdf files ( and the file was downloaded this morning)

I have just re-created the file ( it's a file created online) and it will not show on the desktop although it seems to allow it to be saved there. However, I can save and retrieve it from my uSB HDD .

I am puzzled.!

User avatar
Termy
Level 5
Level 5
Posts: 764
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: "Missing" file

Post by Termy » Tue Feb 20, 2018 11:48 am

Just to double check: find / -type f -iname "*kat.pdf*" 2> /dev/null

Yeah, the more posts I read on this thread, the more intrigued I am. :D
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
Flemur
Level 17
Level 17
Posts: 7076
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: "Missing" file

Post by Flemur » Tue Feb 20, 2018 12:01 pm

Boca wrote:
Tue Feb 20, 2018 9:24 am
If I go back into recent docs within the Document Viewer it shows the properties of the file as file:///home/tony/Desktop/kat.pdf and can open the file.
Just like "Document Viewer" isn't the real name of the program, "kat.pdf" might not be the real name of the file - perhaps capital letters or special characters.
So try

Code: Select all

ls -al /home/tony/Desktop/kat.pdf
ls -al /home/tony/Desktop/
find $HOME -iname "*kat*" 
find $HOME -iname "*pdf*"
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
Flemur
Level 17
Level 17
Posts: 7076
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: "Missing" file

Post by Flemur » Tue Feb 20, 2018 12:02 pm

Boca wrote:
Tue Feb 20, 2018 9:42 am
strangely, Document Viewer now no longer shows the file in recently viewed but shows files from a few weeks ago; I haven't performed a restore of log-off&on.
Can you still open the file?
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Tue Feb 20, 2018 12:55 pm

Hi Flemur,

thanks for your help.

Code: Select all

tony@tony-Latitude-E6430 ~ $ ls -al /home/tony/Desktop/kat*.pdf
ls: cannot access '/home/tony/Desktop/kat*.pdf': No such file or directory
tony@tony-Latitude-E6430 ~ $ ls -al /home/tony/Desktop/
total 12
drwxr-xr-x  3 tony tony 4096 Feb 20 16:00 .
drwxr-xr-x 33 tony tony 4096 Feb 20 15:54 ..
drwxrwxr-x 23 tony tony 4096 Feb  4 21:21 Backup_of_Dropbox_Important
-rw-rw-r--  1 tony tony    0 Feb 20 16:00 Crontab_last_ran_at-16:00:01
The

Code: Select all

find $HOME -iname "*kat*" 
find $HOME -iname "*pdf*"
finds multiple files beginning kat and/or pdf extensions but none match the missing file.

I can no longer open the file as it now doesn't appear in either the Document Viewer File-Open or Recent-File lists.

I have just opened a new file with Document Viewer and then saved it to Desktop where it is visible, can be searched and can be re-opened

Tony

FreedomTruth
Level 4
Level 4
Posts: 431
Joined: Fri Sep 23, 2016 10:19 am

Re: "Missing" file

Post by FreedomTruth » Tue Feb 20, 2018 1:35 pm

Your description sounds strangely like viewtopic.php?f=90&t=263532
Are you using firejail? It may be some (intentional?) behavior relating to firejail trying to block the browser from accessing the desktop.
If you abide in My word, you are My disciples indeed. And you shall know the truth, and the truth shall make you free... Most assuredly, I say to you, whoever commits sin is a slave of sin... Therefore if the Son makes you free, you shall be free indeed.

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Wed Feb 21, 2018 4:53 am

FreedomTruth wrote:
Tue Feb 20, 2018 1:35 pm
Your description sounds strangely like viewtopic.php?f=90&t=263532
Are you using firejail? It may be some (intentional?) behavior relating to firejail trying to block the browser from accessing the desktop.
That sounds very similar indeed; I am indeed using Firejail for Firefox.

From the Firejail site:- "Firejail ... reduces the risk of security breaches ... allows processes ... to have their own private view"

Does this mean that the files may still be there ? but can only be seen "through" FireJail? That would explain why Document Viewer could still see the files ( which I had just downloaded) but no other process could.

For info, I have managed to re-create the original file so I have no urgent need to access the original "missing" file but my interest is piqued just in case this happens again.

Tony

User avatar
Termy
Level 5
Level 5
Posts: 764
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: "Missing" file

Post by Termy » Wed Feb 21, 2018 10:52 am

Oh you're using firejail. I'm not yet personally familiar with firejail, but that does sound about right.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Wed Feb 21, 2018 1:19 pm

Termy wrote:
Tue Feb 20, 2018 11:48 am
Just to double check: find / -type f -iname "*kat.pdf*" 2> /dev/null

Yeah, the more posts I read on this thread, the more intrigued I am. :D
Sorry Termy, I missed this post till now.. as below, this found various files but not the one in question.

Code: Select all

tony@tony-Latitude-E6430 ~ $ find / -type f -iname "*kat*.pdf*" 2> /dev/null
/media/tony/My Passport/*******
/media/tony/My Passport/test/*******
/media/tony/My Passport/*******
/media/tony/My Passport/*******
/media/tony/My Passport/*******
Thanks, Tony

User avatar
BG405
Level 7
Level 7
Posts: 1856
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: "Missing" file

Post by BG405 » Wed Feb 21, 2018 4:06 pm

Firejail should indeed block write-access to locations not specified in the "allow-list" - I also have not used Firejail yet - so I presume the file is held in RAM as it can not be written to disk. That would explain why it disappears after a while; it has been overwritten.

Can Document Viewer save the newly-opened file where you want? ("Save a Copy ..") and does it show if you select "Open Containing Folder"?
Dell Inspiron 1525 - LM17.3 CE 64-------------------Lenovo T440 4GB - Manjaro KDE, LM17.3 KDE 32
Toshiba NB250 - Manjaro KDE------------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

User avatar
Boca
Level 4
Level 4
Posts: 474
Joined: Sun Feb 15, 2015 5:02 am

Re: "Missing" file

Post by Boca » Thu Feb 22, 2018 3:43 am

Hi all and thanks for your help,

It's beginning to look as if FireJail is causing this behaviour and it is what Firejail should be doing. Special thanks to Freedom truth for spotting the connection.

Summary :- If I disable FireJail and reboot, I can successfully open the file , save it to Desktop and It can be seen by CLI and File Manager

As a trial:-
  • Open https://www.rspo.org/key-documents/cert ... d-criteria
    Downloaded file :- RSPO Generic Checklist for audits against RSPO P&C 2013 and selected "Open with Doc Viewer", saved to Desktop, file NOT visible using CLI or File Manager
    open another doc from site.. when doc viewer opens, select above doc from recently viewed list and able to re-open it.
    close doc viewer and re-open it from prog manager; the files are NOT on recently viewed list
    repeat above steps but save to my usb hdd instead and the file CAN be seen by CLI and file manager.
diasble FireJail and reboot, I can successfully open the file , save it to Desktop and It can be seen by CLI and File Manager

Looking at FireJail help file. "The installed profile tries to replicate some advanced security features.... Allow access to files only in the following standard directories: /bin, /dev, /etc, /home, /lib*, /media," I do not understand why I can save to /media but not /home.

Tony

Post Reply

Return to “Newbie Questions”