WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Apps does not allow download maybe because of /tmp files?  (Read 1219 times)

aus9

  • Guest
Apps does not allow download maybe because of /tmp files?
« on: April 19, 2020, 07:41:33 PM »
Hi

I can click on a package in Apps but it fails to download. I decided to look at reasons for this but up to now
I have simply used
Code: [Select]
tce-load -i appname
I rarely add it to boot list as I use several.
If interested read on

Code: [Select]
ls -al /tmp
total 16
drwxrwxrwt    6 root     staff          240 Apr 20 02:10 ./
drwxr-xr-x   17 root     root           400 Apr 20 02:10 ../
drwxrwxrwt    2 root     root            40 Apr 20 02:10 .ICE-unix/
-r--r--r--    1 root     staff           11 Apr 20 02:10 .X0-lock
drwxrwxrwt    2 root     root            60 Apr 20 02:10 .X11-unix/
-rw-rw-rw-    1 root     staff            0 Mar 30 10:38 aberr
-rw-r--r--    1 tc       staff            2 Apr 20 02:10 appserr
-rw-r--r--    1 root     root             0 Apr 20 02:10 k5_skip
-rw-r--r--    1 tc       staff           90 Apr 20 02:10 menu.tmp
drwxrwxr-x    3 root     staff           60 Apr 20 02:10 tce/
drwxrwxr-x  134 root     staff         2680 Apr 20 02:10 tcloop/
-rw-r--r--    1 tc       staff          414 Apr 20 02:10 wm_errors

Code: [Select]
ls -al /tmp/tce/optional
total 0
drwxrwxr-x    2 tc       staff           40 Apr 20 02:10 ./
drwxrwxr-x    3 root     staff           60 Apr 20 02:10 ../

Inference ....a false tcedir is being created at boot up due to same timestamps.

Code: [Select]
ls -al  /etc/sysconfig | grep tce
lrwxrwxrwx    1 root     root            13 Apr 20 02:10 tcedir -> /mnt/sda3/tce/
ls -al /mnt/sda3/tce | grep opt
drwxrwxr-x    2 tc       staff        69632 Apr 20 02:23 optional/

Inference tcedir on mnt/sda3 has correct perms, otherwise tce-load -w would fail?

Code: [Select]
mount
rootfs on / type rootfs (rw,size=5505384k,nr_inodes=2020456)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda3 on /mnt/sda3 type ext4 (rw,relatime)
/dev/sda3 on /home type ext4 (rw,relatime)
/dev/sda3 on /opt type ext4 (rw,relatime)
/dev/loop0 on /tmp/tcloop/openssl-1.1.1 type squashfs (ro,relatime)
SNIP all other loops

I use a bootloader from another distro to boot TC and my line reads

Quote
menuentry openbox {
        set root=hd0,3
        linux /grub/vmlinuz tce=sda3 opt=sda3 home=sda3 waitusb=10 lst=openbox.lst
        initrd /grub/core.gz
}

I am on 64 bit...but rename the kernel and core as sometimes I use command mode to boot up and want simple names to remember.

Incidently looking at etc I find a gremlin with
Code: [Select]
cat /etc/sysconfig/Xserver
Xfbdev
cat .xsession | grep org
/usr/local/bin/Xorg -nolisten tcp &

I was expected Xserver to show Xorg as thats what I want

any clues?

the image is of 2 screenshots of apps combined into one image to show
the alleged correct tcedir and the failure msg
https://imgur.com/uAjbCx0



« Last Edit: April 19, 2020, 07:46:14 PM by aus9 »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Apps does not allow download maybe because of /tmp files?
« Reply #1 on: April 20, 2020, 02:42:47 AM »
What's your real path to tce directory ?
Code: [Select]
realpath /etc/sysconfig/tcedir
If you failed to set it properly, it should resume to /tmp/tce
When it's unset, weird thing happens.

BTW, have you checked the available disk space ?

There are 3 X servers: Xvesa, Xfbdev, Xorg (actually, there's 4: Xwayland)
In your case, the default is set to Xfbdev (defined in /etc/sysconfig/Xserver),
you probably load Xfbdev unknowingly.
« Last Edit: April 20, 2020, 02:52:59 AM by polikuo »

aus9

  • Guest
Re: Apps does not allow download maybe because of /tmp files?
« Reply #2 on: April 20, 2020, 08:25:42 PM »
Hi

trivial Xserver solved...thanks to your tip...I looked at /usr/local/tce.installed and found last boot the offending TCE
then modded Rich's command to look what depends on it
Code: [Select]
grep -l Xfbdev.tcz /etc/sysconfig/tcedir/optional/*.dep | cut -d/ -f6
tc@box:~$

sure enough I left in in my boot list  :-[

2) on reboot tcedir still an issue

Code: [Select]
realpath /etc/sysconfig/tcedir
/mnt/sda3/tce

tmp dir re-appears

but today I was able to use GUI Apps to update abiword.

Code: [Select]
df
SNIP......................size .....used  available %
/dev/sda3               211.4G     19.1G    181.5G  10% /mnt/sda3
/dev/sda3               211.4G     19.1G    181.5G  10% /home
/dev/sda3               211.4G     19.1G    181.5G

still a puzzlement. How do I force a reset?

« Last Edit: April 20, 2020, 08:30:52 PM by aus9 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: Apps does not allow download maybe because of /tmp files?
« Reply #3 on: April 20, 2020, 08:59:25 PM »
Hi aus9
/etc/init.d/tc-config  creates  /tmp/tce/optional  by default..