Mycroft Community Forum

Mycroft fails to start on manjaro linux

Hi,

I’ve been struggling with installing mycroft this afternoon, at first it wouldn’t install the python dependencies into the virtual environment so i had to mnually enter the env and use pip. But now it complains that it is unable to load the configuration, also when running kept throwing errors about not being able to connect to the websocket.

Output of command here

[tasty@tasty-pc mycroft-core]$ ./start-mycroft.sh debug
Already up to date.
Updating dependencies...
Installing packages...
 Installing packages for Arch...
warning: git-2.26.2-1 is up to date -- skipping
warning: python-3.8.2-2 is up to date -- skipping
warning: python-pip-20.0.2-1 is up to date -- skipping
warning: python-setuptools-1:46.1.3-1 is up to date -- skipping
warning: python-gobject-3.36.1-1 is up to date -- skipping
warning: libffi-3.3-3 is up to date -- skipping
warning: swig-4.0.1-2 is up to date -- skipping
warning: portaudio-1:19.6.0-6 is up to date -- skipping
warning: mpg123-1.25.13-1 is up to date -- skipping
warning: screen-4.8.0-1 is up to date -- skipping
warning: flac-1.3.3-1 is up to date -- skipping
warning: curl-7.70.0-1 is up to date -- skipping
warning: icu-67.1-1 is up to date -- skipping
warning: libjpeg-turbo-2.0.4-1 is up to date -- skipping
warning: autoconf-2.69-7 is up to date -- skipping
warning: automake-1.16.2-1 is up to date -- skipping
warning: binutils-2.34-2.1 is up to date -- skipping
warning: bison-3.5.4-1 is up to date -- skipping
warning: fakeroot-1.24-2 is up to date -- skipping
warning: file-5.38-3 is up to date -- skipping
warning: findutils-4.7.0-2 is up to date -- skipping
warning: flex-2.6.4-3 is up to date -- skipping
warning: gawk-5.1.0-1 is up to date -- skipping
warning: gcc-9.3.0-1 is up to date -- skipping
warning: gettext-0.20.2-1 is up to date -- skipping
warning: grep-3.4-1 is up to date -- skipping
warning: groff-1.22.4-3 is up to date -- skipping
warning: gzip-1.10-3 is up to date -- skipping
warning: libtool-2.4.6+42+gb88cebd5-12 is up to date -- skipping
warning: m4-1.4.18-3 is up to date -- skipping
warning: make-4.3-3 is up to date -- skipping
warning: pacman-5.2.1-4 is up to date -- skipping
warning: patch-2.7.6-8 is up to date -- skipping
warning: pkgconf-1.6.3-4 is up to date -- skipping
warning: sed-4.8-1 is up to date -- skipping
warning: sudo-1.8.31.p1-1 is up to date -- skipping
warning: texinfo-6.7-3 is up to date -- skipping
warning: which-2.21-5 is up to date -- skipping
warning: jq-1.6-2 is up to date -- skipping
warning: pulseaudio-13.0-3 is up to date -- skipping
warning: pulseaudio-alsa-2-5 is up to date -- skipping
resolving dependencies...
looking for conflicting packages...

Packages (2) python-filelock-3.0.12-3  python-virtualenv-20.0.18-1

Total Installed Size:  4.89 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                                                                   [####################################################################] 100%
(2/2) checking package integrity                                                                                 [####################################################################] 100%
(2/2) loading package files                                                                                      [####################################################################] 100%
(2/2) checking for file conflicts                                                                                [####################################################################] 100%
error: failed to commit transaction (conflicting files)
python-virtualenv: /usr/bin/virtualenv exists in filesystem
Errors occurred, no packages were upgraded.
Starting all mycroft-core services
Initializing...
Starting background service bus
CAUTION: The Mycroft bus is an open websocket with no built-in security
         measures.  You are responsible for protecting the local port
         8181 with a firewall as appropriate.
./start-mycroft.sh: line 141: /var/log/mycroft/bus.log: Permission denied
Starting background service skills
./start-mycroft.sh: line 141: /var/log/mycroft/skills.log: Permission denied
Starting background service audio
./start-mycroft.sh: line 141: /var/log/mycroft/audio.log: Permission denied
Starting background service voice
./start-mycroft.sh: line 141: /var/log/mycroft/voice.log: Permission denied
Starting background service enclosure
./start-mycroft.sh: line 141: /var/log/mycroft/enclosure.log: Permission denied
Starting cli
2020-05-28 18:58:43.191 | ERROR    | 22165 | mycroft.configuration.config:load_local:112 | Error loading configuration '/var/tmp/mycroft_web_cache.json'
2020-05-28 18:58:43.239 | ERROR    | 22165 | mycroft.configuration.config:load_local:113 | JSONDecodeError('Expecting value: line 1 column 1 (char 0)')
2020-05-28 18:58:43.336 | WARNING  | 22165 | mycroft.util.file_utils:ensure_directory_exists:252 | Failed to create: /tmp/mycroft/ipc
2020-05-28 18:58:43.337 | INFO     | 22165 | mycroft.messagebus.load_config:load_message_bus_config:33 | Loading message bus configs
ere:

Thanks in advance

I’m on manjaro too and I’ve been fighting with this for two days now . I can get it to run if I sudo it, but that caused other issues around audio devices. I was able to get my usb razor mic working but audio out is not. So I’m just going to start over … again. For those logs I chmod the permissions on those log file.

BTW I had to run that setup 3 times before I was successful, Some components would install and others would fail; each time more would install until I had all of them.

I just used the Developer branch instead of stable and everything worked out of the box. Give that a go @Tasty213

Tried installing of the dev branch had some trouble getting it to work but eventually found out i had to chmod the log directories and then turn of and on my laptop

1 Like

I had the very same problem, so I opened up the dev_setup.sh script and copied the the arch installer section into a blank script and ran that first and then ran the setup script again. Mycroft is running now.