Bootstrap Framework 3.3.6

Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more...

If you need help, post your question here.
To relieve the developers a bit, other user can help here too.
By Juggybash
Posts
#8346
Hi guys,

ive upgraded from Ubuntu 14.04 to Ubuntu 16.04 yesterday. Everything is running fine except TS3musicbot.

When im starting it i get the following error:
Gtk-WARNING **: cannot open display:
I already installed x11 and xserver-xorg i already tried
Code: Select all
export DISPLAY=:0.0 
but nothing from this is working. Do someone have an idea ? Im not the absolute Linux/Ubuntu guru but it was running bevore the upgrade so i think maybe something is missing.
By Shadow86
#8347
Hello,

with the upgrade.

Did maybe the Kernel version change, for example from 3.x to 4.x ?

If so go to the Webinterface -> Update -> and click by Dependency files version: 4.5.7.3 on (remove)

then stop and start the TS3MusicBot one time

regards

Shadow86
By Juggybash
Posts
#8348
How should i got to the Webinterface when the server isnt starting ? ;)

Ive setup a new Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-36-generic x86_64) server at Amazon free tier and when i try to start the Bot i get this error:
Code: Select all
Autoupdater: Found a newer TS3MusicBot version.
Updating now ...
[Progress] 100.00%
Failed to load : null
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at ts3musicbotlauncher.TS3MusicBotLauncher.main(TS3MusicBotLauncher.java:324)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at JavaPreloader.run(JavaPreloader.java:244)
        at JavaPreloader.runPreloader(JavaPreloader.java:509)
        at JavaPreloader.main(JavaPreloader.java:494)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
        at java.awt.Window.(Window.java:536)
        at java.awt.Frame.(Frame.java:420)
        at java.awt.Frame.(Frame.java:385)
        at javax.swing.SwingUtilities$SharedOwnerFrame.(SwingUtilities.java:1758)
        at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1833)
        at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:666)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:637)
        at JavaPreloader.error(JavaPreloader.java:1282)
        at JavaPreloader.runPreloader(JavaPreloader.java:513)
        at JavaPreloader.main(JavaPreloader.java:494)
        ... 12 more
When i do
Code: Select all
echo $DISPLAY
i get a blank output so ive set it by doing this
Code: Select all
export DISPLAY=ip-172-31-25-215:0.0 
Still get an error
Code: Select all
]Failed to load : null
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at ts3musicbotlauncher.TS3MusicBotLauncher.main(TS3MusicBotLauncher.java:324)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at JavaPreloader.run(JavaPreloader.java:244)
        at JavaPreloader.runPreloader(JavaPreloader.java:509)
        at JavaPreloader.main(JavaPreloader.java:494)
Caused by: java.awt.AWTError: Can't connect to X11 window server using 'ip-172-31-25-215:0.0' as the value of the DI             SPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.(XToolkit.java:126)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2020)
        at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1158)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:431)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
        at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
        at javax.swing.UIManager.initialize(UIManager.java:1459)
        at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
        at javax.swing.UIManager.getUI(UIManager.java:1006)
        at javax.swing.JOptionPane.updateUI(JOptionPane.java:1882)
        at javax.swing.JOptionPane.(JOptionPane.java:1845)
        at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:857)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:666)
        at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:637)
        at JavaPreloader.error(JavaPreloader.java:1282)
        at JavaPreloader.run(JavaPreloader.java:248)
        at JavaPreloader.runPreloader(JavaPreloader.java:509)
        at JavaPreloader.main(JavaPreloader.java:494)
        ... 12 more
ubuntu@ip-172-31-25-215:/home/ts3musicbot/TS3MusicBot$
By Shadow86
#8349
Hello,

oh thats right(sorry), then do a fresh install of the TS3MusicBot.

if you are use it on a user - login direct on it over putty, not switch over or with su to it.

regards

Shadow86
By Juggybash
Posts
#8350
Hi,

see the log above... Ive done a fresh install on a complete new system and still got errors as you can see in my post before.

Im logged in as root and trying to run it via "sudo ./TS3MusicBot_runscript.sh"

That was working at Ubuntu 14.04 but now on a fresh 16.04 not running you can see the error above.
By Shadow86
#8351
Juggybash wrote:Hi,
.... "sudo ./TS3MusicBot_runscript.sh"...
well then im not wondering why it isnt working.

As in many how to installs, the right way to start a TS3MusicBot is:

(noquery) -> ./TS3MusicBot_runscript.sh -account EMAIL -port 2000 -webif-pw ADMIN_PASSWORD -webif-pw-user USER_PASSWORD -noquery

(querymode) -> ./TS3MusicBot_runscript.sh -account EMAIL -port 2000 -webif-pw ADMIN_PASSWORD -webif-pw-user USER_PASSWORD

regards

Shadow86
By Shadow86
#8354
Maybe this behavior comes up because the TS3MusicBot got started in the wrong way or the package got wrong loaded/installed.

Or the Linux installation was corrupted.

I take an eye on it.

Thanks for your patience.

have a great day

Shadow86
Frage zu einem 2ten Bot

Es wird ein 2. Discord Token dafür benöt[…]

Cover

Hallo, Wird es noch eine Möglichkeit geben d[…]

Getestet auf Ubuntu 24.04 / Tested on Ubuntu 24.[…]

update stopped

ich kann machen was ich will, das tmp verzeichniss[…]

Swap-in out addons, use only what you really need!