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

[Bug] certain extensions do not install #315

Closed
gitrosers opened this issue Mar 18, 2022 · 8 comments
Closed

[Bug] certain extensions do not install #315

gitrosers opened this issue Mar 18, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@gitrosers
Copy link

gitrosers commented Mar 18, 2022

Device information

  • Tachidesk version: (latest stable docker build)
    Server version
    v0.6.2
    Build time
    Fri, 04 Mar 2022 15:50:55 GMT

Steps to reproduce

  1. try installing newtoki jmana and toonkor extensions.
  2. these extensions appear as "installing" but then nothing happens.
  3. the relevant jar files are downloaded but they appear as not installed on the webui.
  4. try installing apk downloaded off tachiyomi within the webui menu also does not work.

Expected behavior

extensions to work as other extensions (e.g., naver webtoon).

Actual behavior

the said extensions do not install and when the user interface is refreshed, showing as not installed (.jar files are still saved in the extensions directory).

@gitrosers gitrosers added the bug Something isn't working label Mar 18, 2022
@Syer10
Copy link
Collaborator

Syer10 commented Mar 18, 2022

Duplicate of #237

@Syer10 Syer10 marked this as a duplicate of #237 Mar 18, 2022
@Syer10 Syer10 closed this as completed Mar 18, 2022
@gitrosers
Copy link
Author

I do not think this is the same issue. I can install other extensions fine but just those three. They do not show up on the sources either upon installing, however. Also, the issue comes from the docker build so I do not see how this is caused by having a bad java build.

@Syer10
Copy link
Collaborator

Syer10 commented Mar 18, 2022

Weird, does it output any logs in the log textfile?

@Syer10 Syer10 reopened this Mar 18, 2022
@Robonau
Copy link
Contributor

Robonau commented Mar 18, 2022

ye, i told him in discord already (im also using docker)
(i got no logs when the issue happened)

@Robonau
Copy link
Contributor

Robonau commented Mar 18, 2022

imma try a fresh setup

@gitrosers
Copy link
Author

I don't think this helps much but here is the log when I click on the install button.

"15:14:35.498 [DefaultDispatcher-worker-1] �[39mDEBUG�[0;39m suwayomi.tachidesk.manga.impl.extension.Extension - Installing eu.kanade.tachiyomi.extension.ko.newtoki
Mar 18, 2022 3:14:35 PM okhttp3.internal.platform.Platform log
INFO: --> GET https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo//apk/tachiyomi-ko.newtoki-v1.2.22.apk
Mar 18, 2022 3:14:35 PM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/apk/tachiyomi-ko.newtoki-v1.2.22.apk (18ms, 104317-byte body)
15:14:35.559 [DefaultDispatcher-worker-1] �[39mDEBUG�[0;39m suwayomi.tachidesk.manga.impl.extension.Extension - Main class for extension is eu.kanade.tachiyomi.extension.ko.newtoki.NewTokiFactory
15:14:35.636 [DefaultDispatcher-worker-1] �[39mDEBUG�[0;39m suwayomi.tachidesk.manga.impl.util.PackageTools - loading jar with path: /home/suwayomi/.local/share/Tachidesk/extensions/tachiyomi-ko.newtoki-v1.2.22.jar
15:14:35.655 [DefaultDispatcher-worker-1] �[39mDEBUG�[0;39m suwayomi.tachidesk.manga.impl.extension.ExtensionsList - Getting extensions list from the internet
Mar 18, 2022 3:14:35 PM okhttp3.internal.platform.Platform log
INFO: --> GET https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo//index.min.json
Mar 18, 2022 3:14:35 PM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/index.min.json (22ms, unknown-length body)"

@AriaMoradi AriaMoradi marked this as not a duplicate of #237 Mar 18, 2022
@AriaMoradi
Copy link
Member

Normal install logs look like

INFO: --> GET https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/icon/tachiyomi-ru.newbie-v1.2.8.png
Mar 19, 2022 1:19:18 AM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/icon/tachiyomi-ru.newbie-v1.2.8.png (302ms, 5032-byte body)
01:19:21.811 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.extension.Extension - Installing eu.kanade.tachiyomi.extension.ru.newbie
Mar 19, 2022 1:19:21 AM okhttp3.internal.platform.Platform log
INFO: --> GET https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo//apk/tachiyomi-ru.newbie-v1.2.8.apk
Mar 19, 2022 1:19:22 AM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/apk/tachiyomi-ru.newbie-v1.2.8.apk (753ms, 74954-byte body)
01:19:22.635 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.extension.Extension - Main class for extension is eu.kanade.tachiyomi.extension.ru.newbie.Newbie
01:19:22.825 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.util.PackageTools - loading jar with path: /home/armor/.local/share/Tachidesk/extensions/tachiyomi-ru.newbie-v1.2.8.jar
01:19:22.844 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.extension.Extension - Installed source NewManga(Newbie) (ru) with id:8033757373676218584

NewToki logs are

01:21:40.851 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.extension.Extension - Installing eu.kanade.tachiyomi.extension.ko.newtoki
Mar 19, 2022 1:21:40 AM okhttp3.internal.platform.Platform log
INFO: --> GET https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo//apk/tachiyomi-ko.newtoki-v1.2.22.apk
Mar 19, 2022 1:21:41 AM okhttp3.internal.platform.Platform log
INFO: <-- 200 https://raw.githubusercontent.com/tachiyomiorg/tachiyomi-extensions/repo/apk/tachiyomi-ko.newtoki-v1.2.22.apk (372ms, 104317-byte body)
01:21:41.365 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.extension.Extension - Main class for extension is eu.kanade.tachiyomi.extension.ko.newtoki.NewTokiFactory
01:21:41.508 [DefaultDispatcher-worker-5] DEBUG suwayomi.tachidesk.manga.impl.util.PackageTools - loading jar with path: /home/armor/.local/share/Tachidesk/extensions/tachiyomi-ko.newtoki-v1.2.22.jar

@AriaMoradi
Copy link
Member

java.lang.NoClassDefFoundError: eu/kanade/tachiyomi/BuildConfig
    at eu.kanade.tachiyomi.extension.ko.newtoki.NewToki.<clinit>(Unknown Source)
    at eu.kanade.tachiyomi.extension.ko.newtoki.NewTokiFactory.createSources(Unknown Source)
    at suwayomi.tachidesk.manga.impl.extension.Extension.installAPK(Extension.kt:148)
    at suwayomi.tachidesk.manga.impl.extension.Extension$installAPK$1.invokeSuspend(Extension.kt)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
    at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.ClassNotFoundException: eu.kanade.tachiyomi.BuildConfig
    at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    ... 12 more

and NoClassDefFoundError is an Error not an Exception so it doesn't get caught

AriaMoradi added a commit that referenced this issue Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants