notes icon indicating copy to clipboard operation
notes copied to clipboard

Nextcloud Notes not working at all

Open enoch85 opened this issue 1 month ago • 11 comments

Please make a clear and concise description of what the bug is.

Steps to reproduce

  1. Install from app store
  2. Go to notes
  3. Or use mobile

Expected behaviour

Notes should display

Actual behaviour

Notes site "could not be found". Android app cannot log in

Screenshots

If applicable, add screenshots to help explain your problem.

Image

Image

Server

Please complete the following information.

  • Notes app version:
  • Nextcloud version: 32.0.1
  • OS: Ubuntu Server 24.04
  • Web server: Apache
  • PHP version: 8.3
  • Database: PostgreSQL

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ```

Client

Please complete the following information.

  • Browser (incl. version):
  • OS:

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

App Version: 4.5.2
App Version Code: 40050290
App Flavor: fdroid

Files App Version Code: 30340190 (PROD)

---

OS Version: 6.1.118-android14-11-o-g818f2506c9e7(U.R4T3.cfc6a2_1337040_1337041)
OS API Level: 35
Device: OP595DL1
Manufacturer: OnePlus
Model (and Product): CPH2581 (CPH2581EEA)

---

com.nextcloud.android.sso.exceptions.NextcloudHttpRequestFailedException: HTTP-förfrågan misslyckades med HTTP-statuskod: 404
	at com.nextcloud.android.sso.api.AidlNetworkRequest.performNetworkRequestV2(AidlNetworkRequest.java:179)
	at com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequestV2(NextcloudAPI.java:159)
	at com.nextcloud.android.sso.api.NextcloudAPI.lambda$performRequestObservableV2$0(NextcloudAPI.java:97)
	at com.nextcloud.android.sso.api.NextcloudAPI.$r8$lambda$af7W9mq2B0ZrhVJwZd-ibFp8T3Y(Unknown Source:0)
	at com.nextcloud.android.sso.api.NextcloudAPI$$ExternalSyntheticLambda1.subscribe(D8$$SyntheticClass:0)
	at io.reactivex.internal.operators.observable.ObservableFromPublisher.subscribeActual(ObservableFromPublisher.java:31)
	at io.reactivex.Observable.subscribe(Observable.java:12284)
	at io.reactivex.internal.operators.observable.ObservableMap.subscribeActual(ObservableMap.java:32)
	at io.reactivex.Observable.subscribe(Observable.java:12284)
	at io.reactivex.internal.operators.observable.ObservableSingleMaybe.subscribeActual(ObservableSingleMaybe.java:31)
	at io.reactivex.Maybe.subscribe(Maybe.java:4290)
	at io.reactivex.Maybe.blockingGet(Maybe.java:2320)
	at io.reactivex.Observable.blockingSingle(Observable.java:5381)
	at it.niedermann.owncloud.notes.persistence.NotesImportTask.lambda$importNotes$1(NotesImportTask.java:62)
	at it.niedermann.owncloud.notes.persistence.NotesImportTask.$r8$lambda$ktGqygXHhsMfgtLKNj-H6dy2ZiE(Unknown Source:0)
	at it.niedermann.owncloud.notes.persistence.NotesImportTask$$ExternalSyntheticLambda1.run(D8$$SyntheticClass:0)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:524)
	at java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
	at java.lang.Thread.run(Thread.java:1119)
Caused by: java.lang.IllegalStateException: <!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="sv" data-locale="sv_SE" translate="no" >
	<head
 data-requesttoken="">
		<meta charset="utf-8">
		<title>
			Hansson Cloud		</title>
		<meta name="csp-nonce" nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
				<meta name="apple-itunes-app" content="app-id=1125420102">
				<meta name="theme-color" content="#00679e">
		<link rel="icon" href="/core/img/favicon.ico">
		<link rel="apple-touch-icon" href="/core/img/favicon-touch.png">
		<link rel="mask-icon" sizes="any" href="/core/img/favicon-mask.svg" color="#00679e">
		<link rel="manifest" href="/core/img/manifest.json" crossorigin="use-credentials">
		<link rel="stylesheet" href="/core/css/server.css?v=764b687b-8">
<link rel="stylesheet" href="/apps/firstrunwizard/css/firstrunwizard-style.css?v=d05a0840-8">
<link rel="stylesheet" href="/apps/notes/css/global.css?v=ff4019e8-8">
<link rel="stylesheet" href="/apps/theming/css/default.css?v=07850bb7-8">
<link rel="stylesheet" href="/core/css/guest.css?v=764b687b-8">
		<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/dist/core-common.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/dist/core-main.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/updatenotification/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/dist/updatenotification-init.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/core/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/core/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/calendar/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/calendar/js/calendar-contacts-menu.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/firstrunwizard/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/firstrunwizard/js/firstrunwizard-about.mjs?v=764b687b-8" type="module"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/theming/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/theming/js/theming.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/apps/files_sharing/l10n/sv.js?v=764b687b-8"></script>
<script nonce="OEAo10KAQg1keMBkueLKWwi5jsTUrDsZ4P3G8/XuxoQ=" defer src="/dist/files_sharing-main.js?v=764b687b-8"></script>
		<link rel="stylesheet" media="" href="/apps/theming/theme/default.css?plain=1&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: light)" href="/apps/theming/theme/light.css?plain=1&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: dark)" href="/apps/theming/theme/dark.css?plain=1&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="(prefers-contrast: more)" href="/apps/theming/theme/light-highcontrast.css?plain=1&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="(prefers-color-scheme: dark) and (prefers-contrast: more)" href="/apps/theming/theme/dark-highcontrast.css?plain=1&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="" href="/apps/theming/theme/light.css?plain=0&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="" href="/apps/theming/theme/dark.css?plain=0&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="" href="/apps/theming/theme/light-highcontrast.css?plain=0&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="" href="/apps/theming/theme/dark-highcontrast.css?plain=0&amp;v=25e29903" class="theme"/><link rel="stylesheet" media="" href="/apps/theming/theme/opendyslexic.css?plain=0&amp;v=25e29903" class="theme"/><meta name="color-scheme" content="light dark"/>	</head>
	<body id="body-login" data-theme-dark  data-themes="dark">
		<noscript>
	<div id="nojavascript">
		<div>
			Denna applikationen kräver JavaScript för att fungera korrekt. <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer noopener">aktivera JavaScript</a> och uppdatera sidan.		</div>
	</div>
</noscript>
		<div id="initial-state-container" style="display: none;">
			<input type="hidden" id="initial-state-firstrunwizard-changelogOnly" value="dHJ1ZQ==">
			<input type="hidden" id="initial-state-firstrunwizard-desktop" value="Imh0dHBzOlwvXC9uZXh0Y2xvdWQuY29tXC9pbnN0YWxsXC8jaW5zdGFsbC1jbGllbnRzIg==">
			<input type="hidden" id="initial-state-firstrunwizard-android" value="Imh0dHBzOlwvXC9wbGF5Lmdvb2dsZS5jb21cL3N0b3JlXC9hcHBzXC9kZXRhaWxzP2lkPWNvbS5uZXh0Y2xvdWQuY2xpZW50Ig==">
			<input type="hidden" id="initial-state-firstrunwizard-ios" value="Imh0dHBzOlwvXC9nZW8uaXR1bmVzLmFwcGxlLmNvbVwvdXNcL2FwcFwvbmV4dGNsb3VkXC9pZDExMjU0MjAxMDI/bXQ9OCI=">
			<input type="hidden" id="initial-state-richdocuments-startPresentation" value="ZmFsc2U=">
			<input type="hidden" id="initial-state-core-versionHash" value="Ijc2NGI2ODdiIg==">
			<input type="hidden" id="initial-state-theming-data" value="eyJuYW1lIjoiSGFuc3NvbiBDbG91ZCIsInNsb2dhbiI6ImxvY2FsbHkgc3RvcmVkIC0gb25saW5lIiwidXJsIjoiaHR0cHM6XC9cL25leHRjbG91ZC5jb20iLCJpbXByaW50VXJsIjoiIiwicHJpdmFjeVVybCI6IiIsInByaW1hcnlDb2xvciI6IiMwMDY3OWUiLCJiYWNrZ3JvdW5kQ29sb3IiOiIjMDA2NzllIiwiZGVmYXVsdFByaW1hcnlDb2xvciI6IiMwMDY3OWUiLCJkZWZhdWx0QmFja2dyb3VuZENvbG9yIjoiIzAwNjc5ZSIsImludmVydGVkIjpmYWxzZSwiY2FjaGVCdXN0ZXIiOiIyNWUyOTkwMyIsImVuYWJsZWRUaGVtZXMiOlsiZGFyayJdLCJjb2xvciI6IiMwMDY3OWUiLCIiOiJjb2xvciBpcyBkZXByZWNhdGVkIHNpbmNlIE5leHRjbG91ZCAyOSwgdXNlIHByaW1hcnlDb2xvciBpbnN0ZWFkIn0=">
			<input type="hidden" id="initial-state-comments-maxAutoCompleteResults" value="MTA=">
	</div>
		<div class="wrapper">
			<div class="v-align">
									<header>
						<div id="header" class="header-guest">
							<div class="logo"></div>
						</div>
					</header>
								<div>
					<h1 class="hidden-visually">
						Hansson Cloud					</h1>
						<div class="body-login-container update">
		<div class="icon-big icon-search"></div>
		<h2>Sidan hittades inte</h2>
		<p class="infogroup">Sidan kunde inte hittas på servern eller så kanske du inte har behörighet att se den.</p>
		<p><a class="button primary" href="/">
			Tillbaka till Hansson Cloud		</a></p>
	</div>
				</div>
			</div>
		</div>
				<footer class="guest-box ">
			<p class="info">
				<a href="https://nextcloud.com" target="_blank" rel="noreferrer noopener" class="entity-name">Hansson Cloud</a> – locally stored - online			</p>
		</footer>
	</body>
</html>

	at com.nextcloud.android.sso.InputStreamBinder.processRequestV2(InputStreamBinder.java:440)
	at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestAndBodyStreamV2(InputStreamBinder.java:113)
	at com.nextcloud.android.sso.InputStreamBinder.performNextcloudRequestV2(InputStreamBinder.java:96)
	at com.nextcloud.android.sso.aidl.IInputStreamService$Stub.onTransact(IInputStreamService.java:108)
	at android.os.Binder.execTransactInternal(Binder.java:1518)
	at android.os.Binder.execTransact(Binder.java:1457)

enoch85 avatar Nov 18 '25 05:11 enoch85

This issue occurred when I upgrade my nexcloud server from 30.0.1 to 32.0.1

orchingly avatar Nov 19 '25 09:11 orchingly

@small1 @szaimen do you know how to ping here?

enoch85 avatar Nov 21 '25 05:11 enoch85

@small1 @szaimen do you know how to ping here?

Cc @nextcloud/office

szaimen avatar Nov 21 '25 07:11 szaimen

Can you provide the nextcloud.log?

blizzz avatar Nov 21 '25 11:11 blizzz

Can you provide the nextcloud.log?

Hmm, works now. 🤷 Closing this one.

enoch85 avatar Nov 22 '25 15:11 enoch85

Nope it's back, will post logs later tonight.

enoch85 avatar Nov 23 '25 15:11 enoch85

OK, so no relevant logs when it happens, but it seems like my apps are disabled automatically from time to time. I need to investigate this.

The JavaScript error on mobile persists, even with the Notes app enabled and working in Web UI.

enoch85 avatar Nov 23 '25 19:11 enoch85

The log files pasted in the issue description look like an unexpected 404 response. Those will probably not show in the logs.

max-nextcloud avatar Nov 24 '25 09:11 max-nextcloud

I see a javascript error while it tries to load a note:

Uncaught (in promise) TypeError: can't access property "createEditor", window.OCA.Text is undefined
    loadTextEditor NoteRich.vue:96
    fetchData NoteRich.vue:86
    mounted NoteRich.vue:63
    VueJS 18
    init vue-router.esm.js:3005
    init vue-router.esm.js:3004
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2402
    i vue-router.esm.js:2084
    i vue-router.esm.js:2091
    Ss vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2397
    i vue-router.esm.js:2084
    i vue-router.esm.js:2088
    m vue-router.esm.js:2384
    Ds vue-router.esm.js:2162
    m vue-router.esm.js:2362
    i vue-router.esm.js:2087
    i vue-router.esm.js:2091
    i vue-router.esm.js:2091
    Ss vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2392
    transitionTo vue-router.esm.js:2260
    push vue-router.esm.js:2606
    push vue-router.esm.js:3036
    push vue-router.esm.js:3035
    routeToNote App.vue:218
    routeDefault App.vue:197
    loadNotes App.vue:140
    promise callback*loadNotes App.vue:133
    created App.vue:122
    VueJS 17
    <anonymous> main.js:20
    <anonymous> main.js:24
    <anonymous> main.js:24
NoteRich.vue:96:1
    fetchData NoteRich.vue:86
    AsyncFunctionThrow self-hosted:804
    (Async: async)
    mounted NoteRich.vue:63
    VueJS 18
    init vue-router.esm.js:3005
    forEach self-hosted:157
    init vue-router.esm.js:3004
    updateRoute vue-router.esm.js:2414
    transitionTo vue-router.esm.js:2263
    confirmTransition vue-router.esm.js:2402
    i vue-router.esm.js:2084
    i vue-router.esm.js:2091
    Ss vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2397
    i vue-router.esm.js:2084
    i vue-router.esm.js:2088
    m vue-router.esm.js:2384
    Ds vue-router.esm.js:2162
    m vue-router.esm.js:2362
    i vue-router.esm.js:2087
    i vue-router.esm.js:2091
    i vue-router.esm.js:2091
    Ss vue-router.esm.js:2095
    confirmTransition vue-router.esm.js:2392
    transitionTo vue-router.esm.js:2260
    push vue-router.esm.js:2606
    push vue-router.esm.js:3036
    push vue-router.esm.js:3035
    routeToNote App.vue:218
    routeDefault App.vue:197
    loadNotes App.vue:140
    (Async: promise callback)
    loadNotes App.vue:133
    created App.vue:122
    VueJS 17
    <anonym> main.js:20
    <anonym> main.js:24
    <anonym> main.js:24

The networktab shows only 200 status code, so all files are loaded correctly from the server. I have the problem with: Nextcloud: 32.0.2 Notes: 4.12.4

mfechner avatar Nov 28 '25 03:11 mfechner

Had a similar issue yesterday. Both a laptop and my phone got the "page not found" after clicking on the Notes menu entry.

I disabled and enabled the app, no changes.

I ran the usual upgrade script:

        $COMPOSE $COMPOSE_OPTIONS php occ maintenance:repair
        $COMPOSE $COMPOSE_OPTIONS php occ maintenance:update:htaccess
        $COMPOSE $COMPOSE_OPTIONS php occ files:scan --all
        $COMPOSE $COMPOSE_OPTIONS php occ files:scan-app-data
        $COMPOSE $COMPOSE_OPTIONS php occ files:cleanup
        $COMPOSE $COMPOSE_OPTIONS php occ preview:repair -b
        $COMPOSE $COMPOSE_OPTIONS php occ db:add-missing-indices
        $COMPOSE $COMPOSE_OPTIONS php occ maintenance:repair --include-expensive

But I still could not access the App.

And this morning, I wanted to check if I had same symptom as @mfechner, I tested on another laptop, it worked !?!

The strangest is that it is now back to "normal" on all devices I tested earlier (same user account).

I could not find any issue in the logs. Sad that Nextcloud does not have a mechanism to send the javascript exception to the back-end logs. Maybe there's an app for that ;-)

callmemagnus avatar Nov 28 '25 12:11 callmemagnus

Sounds like a load order issue when initializing the different apps. In particular seems like text app is initialized after createEditor is called.

max-nextcloud avatar Dec 01 '25 09:12 max-nextcloud