Skip to content
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

queue no longer works #79

Closed
dchmelik opened this issue Apr 1, 2022 · 25 comments
Closed

queue no longer works #79

dchmelik opened this issue Apr 1, 2022 · 25 comments

Comments

@dchmelik
Copy link

dchmelik commented Apr 1, 2022

On Slackware64 15.1-current w/sbopkg 0.38.2 and even upgraded to 20220318-8bf4e6a, the queue menu no longer works.
        I synchronize repository, select check for updates, get over a page of results, go to queue, select any command (like process, remove, sort, view, etc.) and nothing happens: simply immediately returns to queue menu in split-second so the only thing appearing to happen is terminal flashes (as redrawn.)

@willysr
Copy link
Member

willysr commented Apr 1, 2022

image
I get the queue updates here

@dchmelik
Copy link
Author

dchmelik commented Apr 2, 2022

Don't you want me to check a log (error log, obviously not build log) or must I just erase all my configuration, reinstall sbopkg, slowly remake configuration starting from default/nothing?

@dchmelik dchmelik closed this as completed Apr 2, 2022
@dchmelik dchmelik reopened this Apr 2, 2022
@willysr
Copy link
Member

willysr commented Apr 2, 2022

i'm more curious about how you setup sbopkg in your machine

@dchmelik
Copy link
Author

dchmelik commented Apr 2, 2022

I had updated the following.

#/etc/sbopkg/sbopkg.conf
REPO_BRANCH=${REPO_BRANCH:-current}
REPO_NAME=${REPO_NAME:-SBo-git}

@willysr
Copy link
Member

willysr commented Apr 2, 2022

try this

REPO_BRANCH=${REPO_BRANCH:-master}
REPO_NAME=${REPO_NAME:-SBo}

@dchmelik
Copy link
Author

dchmelik commented Apr 2, 2022

The same thing happened. Actually some commands work: I can sort, maybe load, and save, but not view, remove, process (didn't try rename or delete because don't have any saved, and didn't try add all because not Slackware 15.1 stable yet.)

@willysr
Copy link
Member

willysr commented Apr 2, 2022

do you have any other changes in locale or environment variables?
can you try to load sbopkg in a clean environment like VM?

@dchmelik
Copy link
Author

dchmelik commented Apr 2, 2022

I have default locale and the following environment variables.

export ANT_HOME=/usr/lib64/ant
export ARCH=x86_64
export CLASSPATH=/usr/lib64/jdk11-11.0.14/lib
export EDITOR=nano
export HOSTNAME='`cat /etc/HOSTNAME`'
export JAVA_BASE=/usr/lib64/jdk11-11.0.14
export JAVAC=/usr/lib64/jdk11-11.0.14/bin/javac
export JAVADOC=/usr/lib64/jdk11-11.0.14/bin/javadoc
export JAVAH=/usr/lib64/jdk11-11.0.14/bin/javah
export JAVA_HOME=/usr/lib64/jdk11-11.0.14
export LESS="-M -R"
export LESSOPEN="|lesspipe.sh %s"
export MAKEFLAGS="-j31"
export MANPATH="/usr/local/man:/usr/man"
export MINICOM="-c on"
export PKGTYPE=txz
PATH=/usr/local/sbin:/usr/sbin:/sbin:/etc:/etc/rc.d:/etc/init.d:/var/log/setup:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/games:{JAVA_HOME}:/usr/lib64/ant/bin:/opt/notepadqq/bin:/usr/share/ant/bin:/opt/ex-vi/bin:/usr/lib64/go1.17.7/go/bin:/opt/idea/bin:/usr/lib64/libexec/kf5:/opt/plan9/bin:/usr/lib64/qt5/bin:/opt/scilab/bin:/usr/lib64/zulu-openjdk7/bin:/usr/lib64/zulu-openjdk7/jre/bin:/usr/lib64/zulu-openjdk8/bin:/usr/lib64/zulu-openjdk8/jre/bin:.
TERM=linux
PS1='\u@\l${STY#[0-9]*.}.\h:\w\$ '
PS2='> '

No point using virtual environment because I'm not installing Slackware-current packages elsewhere. If my installation is supposedly 'dirty' I want to find out how and fix.
        'sbopkg -i "program1 program2"' etc. works but in contrast to GUI (and sbotools) is longer, drawn-out process I wouldn't normally do.

@willysr
Copy link
Member

willysr commented Apr 2, 2022

i also run slackware-current at home and it works fine here
can you try to add set -e on top of sbopkg script and see where it throws error at?

@dchmelik dchmelik changed the title [Slackware-current] queue no longer works queue no longer works Apr 3, 2022
@dchmelik
Copy link
Author

dchmelik commented Apr 3, 2022

I made a line 'set -e' near top of /usr/sbin/sbopkg if that's what you mean, but currently don't have updates to do. Same started happening on Slackware 15 up-to-date stable x86(-64) and arm (haven't tested x86-32.)

@Geremia
Copy link
Contributor

Geremia commented May 5, 2022

I get this issue, too. I never had it before.

@willysr
set -e makes sbopkg quit when I choose update.

bash -x /usr/sbin/sbopkg outputs this when I choose "View     View the current queue", after running update:

+ CHOICE=255
+ [[ 255 -eq 2 ]]
+ selection_state preserve /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue /tmp/sbopkg.VJoY4a/sbopkg-ans-queue
+ local ACTION=preserve
+ local MENU_FILE=/tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ local SELECTION_FILE=/tmp/sbopkg.VJoY4a/sbopkg-ans-queue
+ local LINE
+ sed -i 's/ON$/OFF/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ sed -i '/^"*"* /s/OFF$/ON/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ sed -i '/^"*3 arguments attendus, 2 trouvés en trop."* /s/OFF$/ON/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ sed -i '/^"*Use --help to list options."* /s/OFF$/ON/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ sed -i '/^"*"* /s/OFF$/ON/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ sed -i '/^"*"* /s/OFF$/ON/' /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ read LINE
+ [[ preserve == reverse ]]
+ case $CHOICE in
+ mv /tmp/sbopkg.VJoY4a/sbopkg-original-queue /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue
+ rm -f /tmp/sbopkg.VJoY4a/sbopkg-ans-queue
+ return 1
+ :
++ eval echo Browsing the '$REPO_DESC.' ARCH: '$ARCH'
+++ echo Browsing the SBo repository for Slackware 15.0. ARCH: x86_64
+ dialog --visit-items --title 'Queue Menu' --backtitle 'Browsing the SBo repository for Slackware 15.0. ARCH: x86_64' --cancel-label Back --default-item View --menu 'Choose one of the following or press <Back> to go back.\n' 16 60 9 View 'View the current queue' Sort 'Sort items in the queue' Remove 'Remove items in the queue' Load 'Load a saved queue' Save 'Save the current queue' Rename 'Rename a saved queue' Delete 'Delete a saved queue' Add 'Add all installed packages to the queue' Process 'Process the current queue'
+ DEFAULTITEM=View
+ case "$DEFAULTITEM" in
+ view_queue
+ local ANSQUEUE=/tmp/sbopkg.VJoY4a/sbopkg-ans-queue
+ local ORIGINALQUEUE=/tmp/sbopkg.VJoY4a/sbopkg-original-queue
+ local CHOICE
+ empty_queue
+ [[ ! -e /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue ]]
+ return 1
+ cp /tmp/sbopkg.VJoY4a/sbopkg-tmp-queue /tmp/sbopkg.VJoY4a/sbopkg-original-queue
+ :
++ crunch 'The             following packages are currently             in the queue.  Please note that when the queue             is processed, the packages selected below will be processed             in the order listed from top to             bottom.\n\nPlease select or unselect those packages you wish             to keep in the queue and then press <OK> to continue             or press <Back> to go back.'
++ echo -e 'The             following packages are currently             in the queue.  Please note that when the queue             is processed, the packages selected below will be processed             in the order listed from top to             bottom.\n\nPlease select or unselect those packages you wish             to keep in the queue and then press <OK> to continue             or press <Back> to go back.'
++ tr -s ' '
+ dialog --visit-items --title 'Viewing Queue' --separate-output --extra-button --extra-label 'View READMEs' --help-button --help-label 'Clear inst'\''d' --help-status --cancel-label Back --checklist 'The following packages are currently in the queue. Please note that when the queue is processed, the packages selected below will be processed in the order listed from top to bottom.

It thinks the queue is empty.

@willysr
Copy link
Member

willysr commented May 5, 2022

here's what i have now (i just ran sbopkg in GUI mode and check updates and view the queue)
image

@Geremia
Copy link
Contributor

Geremia commented May 5, 2022

@willysr If I say no to "would you like to add flagged updates to the queue" after checking for updates, nothing is added. If I say yes, still nothing is added. I have many "POTENTIAL UPDATE" and "INSTALLED PACKAGE IS NEWER THAN REPO".
It says packages have been added to the queue, but the queue is empty when I try viewing it.

Is there a way to put the output of sbopkg -c into a queue?

@willysr
Copy link
Member

willysr commented May 6, 2022

we don't have that option for now (sbopkg -c -> queue)

but if you say no to the question about adding flagged potential updates, then it's normal for queue to be empty since you said no.

can you make a short video on how you do things so i can reproduce it here?

@Geremia
Copy link
Contributor

Geremia commented May 6, 2022

@willysr Here's a screencast:

sbopkg_update_queue_issue_cut-version.mp4

(I cut out 1 min. of the updating time, to keep the video ≤10MB.)

@Geremia
Copy link
Contributor

Geremia commented May 8, 2022

A workaround: Run update in the GUI, save the queue as "updates", and process it with sbopkg -i updates -e continue.

After doing this, I no longer get this queue issue in the GUI. I wonder if my queue was too big before?

@willysr
Copy link
Member

willysr commented Aug 24, 2022

@Geremia after i looked over your video, it seems you are using an older version of sbopkg (probably pre-released version) since it has 2021 as the copyright (see 0:04), while the latest sbopkg has 2022 in the copyright year. Can you check using the latest version of sbopkg downloaded from official website? thanks

@dchmelik
Copy link
Author

I've had all above and now more problems with post-release 0.38.2 and subsequent/y upgraded/configured git version(s) which now also instead of doing any/all command-line arguments/flags/switches just start sbopkg GUI.

@willysr
Copy link
Member

willysr commented Aug 25, 2022

so this issue can also be closed?

@dchmelik
Copy link
Author

dchmelik commented Aug 25, 2022

I still have the problem on 0.38.2 & 8bf4e6a; didn't change anything after tried workaround and using much smaller queue than huge ones that used to work.

@willysr
Copy link
Member

willysr commented Aug 25, 2022

so what command did you use now?

@dchmelik
Copy link
Author

so what command did you use now?

root@cosmos:~# sbopkg

@willysr
Copy link
Member

willysr commented Aug 25, 2022

i mean, to create the queue

@willysr willysr closed this as completed Aug 28, 2022
@dchmelik
Copy link
Author

I created the queue in the GUI same way as shown in the video; this isn't solved!

@willysr
Copy link
Member

willysr commented Aug 28, 2022

it's working fine in many other machines, so unless you try it in a clean environment, i am not convinced with how you test it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants