Skip to content

Linux/AppImage: Snapmaker cloud login does not persist across restart #226

Open

Description

@i-am-ez76

Is there an existing issue for this problem?

  • I have searched the existing issues

Snapmaker_Orca Version

2.4.3

Operating System (OS)

Linux

OS Version

OS: Ubuntu 25.04

Additional system information

No response

Printer

Snapmaker U1

How to reproduce

Start the AppImage on Linux.

Log in to Snapmaker cloud successfully.

Use the app normally.

Close the app normally.

Reopen the app.

Observe that the cloud login is gone

Relevant log evidence

On startup after restart, the logs show:

_getDeviceInfo: loginUser: {nickname: , email: , account: , status: offline, icon: , avatar: , token: , token_type: Bearer, userid: , uid: , id: , cellphone: }

eventId:logoutDeleLocalClouldDevice

The embedded web/cloud layer also reports:

FormatException SyntaxError JSON Parse error

Error running JavaScript: Unsupported result type

Persistence/storage investigation
I checked the app’s config and local storage behavior:

~/.config/Snapmaker_Orca/Snapmaker_Orca.conf is rewritten during app use, but it does not contain obvious auth/session fields; grep only found:

sync_user_preset

user_mode

The Snapmaker-specific web storage exists here:

~/.local/share/snapmaker-orca/localstorage/https_id.snapmaker.com_0.localstorage

with matching -shm and -wal files.

However, the SQLite localstorage DB contains only:

redirect|

redirectURL|h

username|e

from|o

There is no obvious token/session/auth payload stored there.

What I suspect
It looks like the visible login flow completes, but the actual authenticated session is not persisted, or the persisted data is not restored correctly on startup. The JS/JSON errors in the embedded web layer may be related.

Additional notes

I also saw one run with:

Not primary owner of DBus name - probably another SnapmakerOrca instance is running

But the blank-token startup behavior and web errors also occur in runs without relying on that specific DBus warning as the primary explanation.

Attachments

Debug logs from affected runs

Output showing localstorage contents

File/path investigation results per Linux config/local-share storage layout

Small edits before posting
Replace these placeholders before you submit:

Exact app version from Help -> About

Your distro/version

Whether you launched via AppImage directly or through a desktop entry

Actual results

After restart, the app behaves as logged out. In the debug logs, loginUser is restored with empty values including an empty token, and logout-related device update events are emitted.

Expected results

After a successful cloud login, the session should persist across normal app restarts.

Project file & Debug log uploads

debug_Fri_Apr_03_17_0.zip

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

Activity

  1. added
    bug
    on Apr 3, 2026
  2. popy2k14 commented on Apr 4, 2026

    @popy2k14

    @i-am-ez76 i have the same issue in lan mode in arch linux! With 2.2.4 it worked in lan mode but not in cloud mode.

    Can you please change the title to: Linux/AppImage: Snapmaker cloud & lan login does not persist across restart

    thx

  3. i-am-ez76 commented on Apr 5, 2026

    @i-am-ez76
    Author
  4. parkervcp commented on Apr 5, 2026

    @parkervcp

    This was reported on #116 . I have this issues as well.

  5. PGMacDesign commented on Jun 14, 2026

    @PGMacDesign

    Comment from Claude Code — I'm a bot. I'm responding for the author.


    Fix submitted in #479. Root cause was two-fold: the session wasn't persisted at all, and even once restored, a startup race could drop the login-state push to the web UI (leaving it showing "logged out" despite a valid token). The PR persists the bearer token via the OS secret store (libsecret/Keychain/Credential Manager, never plaintext), revalidates it on startup, and closes the race so the UI reflects the restored session immediately.

    Tested on Linux (Pop!_OS AppImage) and macOS — persists across restart. Would appreciate others confirming on their setups.

  6. github-actions commented on Sep 13, 2026

    @github-actions

    Orca bot: this issue is stale because it has been open for 90 days with no activity.

  7. i-am-ez76 commented on Sep 14, 2026

    @i-am-ez76
    Author

    Hey Guys.
    Using Claude i have recompilled the latest version with the login check.
    now it actually SAVES MY LOGIN!!!!

    download it from here...
    https://drive.google.com/file/d/1yz6n9JptRqmEkiR7eVV1wMFGFgYb6UUo/view?usp=drive_link

    everytime a few version will be released, i will recompile it and post it

  8. popy2k14 commented on Sep 14, 2026

    @popy2k14

    @i-am-ez76 thx for fixing this issue.

    Please commit the code with an PR here in this repo and ping snapmaker staff, so it will be hopefully commited.

  9. i-am-ez76 commented on Sep 14, 2026

    @i-am-ez76
    Author
  10. popy2k14 commented on Sep 18, 2026

    @popy2k14

    @i-am-ez76 sorry i am back to windows and cant help anymore 😢

  11. i-am-ez76 commented on Oct 8, 2026

    @i-am-ez76
    Author
  12. zhangzhend0ng commented on Nov 3, 2026

    @zhangzhend0ng
    Collaborator

    Fixed in v2.4.1 — see "Fixed an issue where Linux users' login status could not be saved" in the v2.4.1 release notes. Please test on v2.4.1 and comment/reopen if it still reproduces on your setup.

  13. creat3dworld commented on Nov 14, 2026

    @creat3dworld

    Same root cause as #984 — WebKitGTK uses an in-memory cookie store unless persistent storage is explicitly configured. Fixed by the #984 patch: persistent SQLite cookie storage at data_dir()/cache/cookies.db. See PR #1205 (closes #984), which covers this issue too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions