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

UBsync 'start: job failed to start' error from the UT Log viewer app #1

Closed
clendee opened this issue Mar 3, 2021 · 9 comments
Closed

Comments

@clendee
Copy link

clendee commented Mar 3, 2021

Hi,

Firstly, thank you for attempting to port the UBsync app to the arm64 version of UT.

Im having an issue when I click on 'Start' to start the service.

start: Job failed to start
qml: PopupStatusBox.qml - hide
qml: PopupStatusBox.qml - hide
QObject::startTimer: Timers cannot be started from another thread.

Im using an existing connected Nextcloud account that I use for the calendar app and Jotit cloud notes.
When I select that account for UBsync, I get the above errors in the Log Viewer.

Thanks.

belohoub added a commit that referenced this issue Mar 4, 2021
@belohoub
Copy link
Owner

belohoub commented Mar 4, 2021

Hello,
Unfortunately, I'm not very familiar with QML and additionaly I do did not observe this error.

I was able to find out, that the problem is that the timer object resides in the main thread, however it is called from outside.

Using this post, I was able to modify the code and hopefully, the error should disappear, but I observed no error before and I observe no error now :-D

So, you are free to test this package: ubsync.zip or build ...

@clendee
Copy link
Author

clendee commented Mar 4, 2021

Hi, thanks for looking into this so promptly.

I installed the new version from the zip file above. Im afraid Im getting the same or similar error when I try to attach my existing nextcloud account on the phone to UBsync. This error appears when I go to 'Sync Service' and press 'Start'

Here is the output of the ubsync log file
https://paste.ubuntu.com/p/QSy7jYNZQb/

Is this app working ok for you on arm64? and are you managing to sync folders with Nextcloud?

Hope this helps,
Thanks for your time in looking into this.

@belohoub
Copy link
Owner

belohoub commented Mar 4, 2021

Well, well :-)

As I said, I'm not familiar with QML and I currently don't have capacity to invest too much time to it.

Unfortunately, I have no idea how to solve it correctly in QML. Additionaly, I cannot reproduce the error on my device - it might be QML version-dependent (?)

Causes the error application crashes? If it does. I can disable hiding at all - it seems to be acceptable, at it occupies only a small area in the bottom part of the display...

@clendee
Copy link
Author

clendee commented Mar 4, 2021

Thats ok. I appreciate being able to at least know its operational for someone.

The issue for me is I cannot start the Sync Service at all, so I feel hiding the output wont probably solve anything Im afraid.
Thanks again for your efforts.

@belohoub
Copy link
Owner

belohoub commented Mar 4, 2021

My idea was different - not only supress the message,, but supress the function, which provides hiding (remove the function call causing the error) - this is something I can do. This removes the source of this error completely, while the message in the bottom will not disappear. If this causes your UBSync crashing, this should resolve it for you.
You can try this package: ubsync.zip

FYI, my UT version is 2021-W09

@clendee
Copy link
Author

clendee commented Mar 4, 2021

My version of UT is Software: OS ubuntu 16.04 (2021-03-02) - From the About page.

The sync and exclamation mark now stays active at the bottom of the screen, see image. Whereas before it would just flash on and off. The service will not start at all.

screenshot20210304_155333600

Here is a link to the output from the Log Viewer.

http://paste.ubuntu.com/p/fm7PwX6pDX/

@belohoub
Copy link
Owner

belohoub commented Mar 4, 2021

And what about your config file .config/upstart/OwncloudSyncd.conf?

Should look like this:

start on started unity8
pre-start script
   initctl set-env LD_LIBRARY_PATH=/opt/click.ubuntu.com/ubsync/current/lib/aarch64-linux-gnu/
end script
exec /opt/click.ubuntu.com/ubsync/current/lib/aarch64-linux-gnu/bin/OwncloudSyncd

@clendee
Copy link
Author

clendee commented Mar 4, 2021

Well done, you sorted it out.

When I replaced my .config/upstart/OwncloudSyncd.conf with the contents you provided above, UBsync started syncing my photos.

Thank you so much.

@belohoub
Copy link
Owner

belohoub commented Mar 4, 2021

well - this was probably old config from your attempts ... :-)

@belohoub belohoub closed this as completed Mar 4, 2021
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

2 participants