-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with gnome-terminal not starting #2568
Comments
Hello there 👋 Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response. |
While in my tests, In commit 209622c, I have changed the command slightly to avoid the warning. Please try again and let us know if this change fixed your issue. |
I uninstalled and re-installed pi-apps today. As reported in #2569, I found the problem appears to be related to gnome-terminal in Raspberry PI OS 64. Pi-apps ran flawlessly after I uninstalled the gnome-terminal with synaptic. Alternatively the etc/terminal-wrap code could test for the 64-bit OS and use lxterminal instead of gnome-terminal |
Sorry, I meant terminal-run not terminal-wrap |
It works from my end. Please install gnome-terminal, then run this in a terminal: |
```
$ bash -x ~/pi-apps/etc/terminal-run 'sudo apt update'
+ commands='sudo apt update'
+ title=
+ '[' -z '' ']'
+ DEBUG=0
+ export GTK_THEME=
+ GTK_THEME=
++ mktemp -u
+ temp_pid_file=/tmp/tmp.YX7KLRXLC3
+ commands='echo $$ > /tmp/tmp.YX7KLRXLC3
sudo apt update'
+ commands='echo -ne '\''\e]0;\a'\''
echo $$ > /tmp/tmp.YX7KLRXLC3
sudo apt update'
+ terminals='lxterminal
xfce4-terminal
mate-terminal
lxterm
uxterm
xterm
urxvt
konsole
terminator
gnome-terminal
gnome-terminal.wrapper
qterminal'
++++ command -v x-terminal-emulator
+++ readlink -f /usr/bin/x-terminal-emulator
++ basename /usr/bin/lxterminal
+ terminal=lxterminal
+ '[' 0 == 1 ']'
+ choice=
+ '[' '!' -z lxterminal ']'
+ echo 'lxterminal
xfce4-terminal
mate-terminal
lxterm
uxterm
xterm
urxvt
konsole
terminator
gnome-terminal
gnome-terminal.wrapper
qterminal'
+ grep -qFx lxterminal
+ choice=lxterminal
+ '[' 0 == 1 ']'
+ '[' -z lxterminal ']'
+ '[' lxterminal == lxterminal ']'
+ '[' '!' -z /tmp/tmp.YX7KLRXLC3 ']'
+ attempts=0
+ lxterminal -e bash -c 'echo -ne '\''\e]0;\a'\''
echo $$ > /tmp/tmp.YX7KLRXLC3
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
sudo apt update'
+ '[' 0 -gt 10 ']'
+ sleep 1
+ attempts=1
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 1 -gt 10 ']'
+ sleep 1
+ attempts=2
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 2 -gt 10 ']'
+ sleep 1
+ attempts=3
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 3 -gt 10 ']'
+ sleep 1
+ attempts=4
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 4 -gt 10 ']'
+ sleep 1
+ attempts=5
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 5 -gt 10 ']'
+ sleep 1
+ attempts=6
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 6 -gt 10 ']'
+ sleep 1
+ attempts=7
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 7 -gt 10 ']'
+ sleep 1
+ attempts=8
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 8 -gt 10 ']'
+ sleep 1
+ attempts=9
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 9 -gt 10 ']'
+ sleep 1
+ attempts=10
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 10 -gt 10 ']'
+ sleep 1
+ attempts=11
+ '[' '!' -f /tmp/tmp.YX7KLRXLC3 ']'
+ '[' 11 -gt 10 ']'
+ error 'terminal-run: No terminal detected as it never created the pid
file within 5 seconds.'
+ echo -e '\e[91mterminal-run: No terminal detected as it never created the
pid file within 5 seconds.\e[39m'
terminal-run: No terminal detected as it never created the pid file within
5 seconds.
+ exit 1
```
The "sudo apt update" window closed with no messages and no updates made.
Robert E. Novak
***@***.***
Philippines Cell +63 968 896 8851
USA Cell: +1 (408) 333-5488
Skype: sailnfool.ren
WhatsApp +639688968851
Linkedin: https://www.linkedin.com/in/sailnfool
Github: https://www.github.com/sailnfool
…On Tue, Apr 2, 2024 at 12:20 PM Botspot ***@***.***> wrote:
Please run this in a terminal: bash -x ~/pi-apps/etc/terminal-run 'sudo
apt update'
And send all output here.
—
Reply to this email directly, view it on GitHub
<#2568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVDTKMBB4QAH2GXFSFZIEDY3IWXPAVCNFSM6AAAAABFQ2XYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGA2DGMZUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
How can you be certain that this issue is caused by gnome-terminal when from your command output, it looked like |
Please clarify. Did it open and then immediately close thereafter? |
I have made a couple of changes to the No need to reinstall pi-apps. To get the latest updates with a non-working terminal-run script, use this command: |
I uninstalled gnome-terminal to get a successful run. Just running
terminal run stand-alone, it would fail.
"etc/terminal-run" would fail with gnome-terminal installed.
./terminal-run ls "ls"
Would fail. I added:
Terminal=""
Right after:
#Try to honor the preference of update-alternatives x-terminal-emulator
terminal="$(basename "$(readlink -f "$(command -v x-terminal-emulator)")")"
terminal=""
In order to get terminal-run to even work, then I uninstalled
gnome-terminal and "pi-apps" ran fine for me.
I just re-installed gnome-terminal with "sudo synaptic" and then ran:
$ ./terminal-run ls "ls"
terminal-run: No terminal detected as it never created the pid file within
5 seconds.
[1]+ Done sudo synaptic
***@***.***<19:20:52>:[~/mygithub/pi-apps/etc* master]
$ # Error constructing proxy for
org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling
StartServiceByName for org.gnome.Terminal: Timeout was reached
And saw the failing behavior above. If I uninstall gnome-terminal,
everything works fine.
…On Tue, Apr 2, 2024, 2:24 PM Botspot ***@***.***> wrote:
How can you be certain that this issue is caused by gnome-terminal when
from your command output, it looked like terminal-run chose to go with
lxterminal?
—
Reply to this email directly, view it on GitHub
<#2568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVDTKN63HWKD55FNXVB6FLY3JFJ5AVCNFSM6AAAAABFQ2XYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGE3DONJXGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@sailnfool this error is outside of pi-apps control. gnome-terminal seems unable to start. it is worth running |
With profound apologies, I discovered that the problem was indeed a system configuration error during further testing. I had configured the locale incorrectly.
Thanks for your time and thanks for a great tool!
2024-04-01T07:48:21.195769+08:00 RP04-01 dbus-daemon[1687]: [session uid=1000 pid=1687] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.1654' (uid=1000 pid=164704 comm="gnome-terminal --wait")
2024-04-01T07:48:21.216664+08:00 RP04-01 systemd[1663]: Starting gnome-terminal-server.service - GNOME Terminal Server...
2024-04-01T07:48:21.259615+08:00 RP04-01 gnome-terminal-server[164713]: Non UTF-8 locale (ISO-8859-1) is not supported!
2024-04-01T07:48:21.262262+08:00 RP04-01 systemd[1663]: gnome-terminal-server.service: Main process exited, code=exited, status=8/n/a
2024-04-01T07:48:21.262597+08:00 RP04-01 systemd[1663]: gnome-terminal-server.service: Failed with result 'exit-code'.
2024-04-01T07:48:21.262714+08:00 RP04-01 systemd[1663]: Failed to start gnome-terminal-server.service - GNOME Terminal Server.
|
I can't tell what you are intended to test there at all |
But in one of your earlier comments, it seemed that terminal-run chose to use lxterminal, and it still failed. Any ideas for why that happened? I thought you were saying that only gnome-terminal was affected by your non-standard locale setting. |
@sailnfool in the future please don't fully change the contents of a post like that with an edit. it makes the conversation impossible to read without viewing the previous edits in context |
I think its likely that lxterminal also requires UTF-8 locale, causing the same failure. I hope that this bug hasn't been re-introduced in the latest piOS image raspberrypi/bookworm-feedback#123 |
Can this issue but closed? I don't think there is anything we can do about users default terminal being non-functional due to poor user locale choices. |
lxterminal did work correctly even with the incorrect locale setting. Now
that I have fixed the locale and reinstalled gnome-terminal. Everything
works just fine. Sorry for the wild-goose chase, but it is good to know
that if anyone else encounters a similar issue, that you can look at their
locale issues and that there are no inherent issues in pi-apps.
On a separate note, I had used cloudbuddy as a way to access my dropbox. I
was running some large scripts to move files around in dropbox to eliminate
many of the duplications that were found by fdupes. The only reason that I
mention this is that in the meantime I had gotten my NFS mount of Dropbox
on an x86 machine running. The scripts that were moving the files around
ran significantly FASTER on the NFS mount than on the cloudbuddy. This is
NOT a critique. I am very impressed with Cloudbuddy. It is significantly
less user work to install a Dropbox with cloudbuddy than in setting up the
NFS mounting. I just noted that due to the implementation (probably due to
the Dropbox APIs) that moving files around was significantly slower. That
said, I was VERY impressed that being able to mount Dropbox without
consuming local storage on the Raspberry PI was terrific for casual use and
a simple installation step.
For over 6 years I have been writing to Dropbox customer support that it
would be nice if their proprietary application was ported to the ARM
architecture, not just to x86 architectures, but they have seen no value in
this, despite the VERY large number of Raspberry PIs that have been
installed worldwide.
On a second note, I have been running Ubuntu on the Raspberry PI 4 with 8GB
of RAM for about 5 years. The way that I got this to work was by
installing ZRAM to increase the amount of virtual memory on my Raspberry PI
by compressing the physical memory as swap space. This allowed Ubuntu to
actually run on a 64-bit architecture ARM with Reasonable performance
(albeit about 4-5X slower than on my Dell laptop). For most tasks of
writing and building software, this has been more than adequate. If you
are curious, there is an implementation (I only made minor changes to
someone else's script) that you can find at:
https://github.com/sailnfool/systemd-zram
I have abandoned Ubuntu to go to Linux Mint on my x86 boxes and Raspberry
PI OS now that there is native 64-bit support. I found that the use of
SNAP significantly slowed all of my machines. In addition, their new
memory management configuration caused Ubuntu to aggressively kill running
tasks while there was still plenty of memory available in Swap. I have not
encountered those problems with Linux Mint or Raspberry PI OS.
Apologies for the long note. I REALLY appreciate your work with PI-Apps.
Robert E. Novak
***@***.***
Philippines Cell +63 968 896 8851
USA Cell: +1 (408) 333-5488
Skype: sailnfool.ren
WhatsApp +639688968851
Linkedin: https://www.linkedin.com/in/sailnfool
Github: https://www.github.com/sailnfool
…On Wed, Apr 3, 2024 at 9:55 AM Botspot ***@***.***> wrote:
If I uninstall gnome-terminal, everything works fine.
But in one of your earlier comments
<#2568 (comment)>,
it seemed that terminal-run chose to use lxterminal, and it still failed.
Any ideas for why that happened? I thought you were saying that only
gnome-terminal was affected by your non-standard locale setting.
—
Reply to this email directly, view it on GitHub
<#2568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVDTKMWVUKXTN4V2VNGJCDY3NOQFAVCNFSM6AAAAABFQ2XYSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTGM4TMOJSHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Well it sure looks like lxterminal was the chosen terminal from your post here: #2568 (comment)
CloudBuddy uses the
No worries. I hope my response here is helpful.
Yeah, definitely credits to those involved. I can say that if it were just me working on the project without help from devs like @theofficialgman and the support from people like you, I would have lost interest years ago. |
Confirmations
What happened?
Wine (x64) shows "Error occured when calling Terminal-run"
Description
Popup window with error message in title bar: "Error occured when calling Terminal-run"
What are your system specs (run the following command in your terminal)?
(Recommended) Error log? Terminal output? Debug messages?
The text was updated successfully, but these errors were encountered: