UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    FluffyChat Encryption via Pantalaimon

    已排程 已置頂 已鎖定 已移動 App Development
    99 貼文 14 Posters 46.2k 瀏覽 4 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • joniusJ 離線
        jonius @spacenerdmo
        最後由 編輯

        @thrrgilag nice!

        May I ask what keeps you from uploading the app to the OpenStore? I think it is useful the way it is right now.

        spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
        • spacenerdmoS 離線
          spacenerdmo @jonius
          最後由 編輯

          @jonius said in FluffyChat Encryption via Pantalaimon:

          @thrrgilag nice!

          May I ask what keeps you from uploading the app to the OpenStore? I think it is useful the way it is right now.

          At this point I think it's mostly a matter of me not having the time to chase it down. I'll see if I can dig up that information and figure out what that process is to get it approved and submitted in the next week or so.

          H 1 條回覆 最後回覆 回覆 引用 0
          • S 離線
            slowcyclist
            最後由 編輯

            I have downloaded the latest click package, but struggled a bit finding how one is supposed to manually install such a click package. I did

            pkcon install-local --allow-untrusted pantalaimon.thrrgilag_0.5.0_arm64.click
            

            Then I could open launch the app, configure it, start the service. All seemed fine. However, Fluffychat does not connect through pantalaimon (":confused_face: no connection "). And Fluffychat can connect directly to my homeserver.

            Looking in the logs, it seems pantalaimon has a problem

            Traceback (most recent call last):
              File "peewee.py", line 3035, in connect
              File "peewee.py", line 3371, in _connect
            sqlite3.OperationalError: unable to open database file
            
            During handling of the above exception, another exception occurred:
            
            Traceback (most recent call last):
              File "pantalaimon", line 10, in <module>
              File "click/core.py", line 829, in __call__
             [...]
              File "peewee.py", line 3371, in _connect
            peewee.OperationalError: unable to open database file
            [11864] Failed to execute script pantalaimon
            
            

            I suspect the way I installed the app might not give it the proper rights to operate correctly. If so can anyone tell me how one is supposed to properly install a click package manually? Otherwise, any idea how I can debug the issue?

            KenedaK 1 條回覆 最後回覆 回覆 引用 0
            • KenedaK 離線
              Keneda @slowcyclist
              最後由 編輯

              @slowcyclist
              Ubuntu Touch Tweak Tool have a built in feature to install click packages. 🙂

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5
              🇲🇫🇬🇧

              S 1 條回覆 最後回覆 回覆 引用 0
              • S 離線
                slowcyclist @Keneda
                最後由 slowcyclist 編輯

                Hey thanks @keneda, problem solved! I wish that piece of information were more obvious...

                1 條回覆 最後回覆 回覆 引用 0
                • joniusJ 離線
                  jonius
                  最後由 編輯

                  @thrrgilag would it be easy to include panctl into the click so that people could verify the device on command line at least? I see that it gets built with pantalaimon already, but not packaged.

                  spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
                  • spacenerdmoS 離線
                    spacenerdmo @jonius
                    最後由 編輯

                    @jonius as I recall it builds but doesn't necessarily run. But it's been a while so I don't recall exactly what the issue was. I'll take a look again when I get a moment and see what I can get working.

                    1 條回覆 最後回覆 回覆 引用 0
                    • H 離線
                      Hugehead @spacenerdmo
                      最後由 編輯

                      @thrrgilag hello, i am using fluffychat with pantalaimon. I have the issue with pictures are not shown in the preview (or aactually at all) on my device . could you please let me know what to do?

                      spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
                      • spacenerdmoS 離線
                        spacenerdmo @Hugehead
                        最後由 編輯

                        @hugehead The image loading issue should have been resolved with the last update to FluffyChat. Can you share some specifics about your setup?

                        1. Device
                        2. Ubuntu Touch version
                        3. FluffyChat version
                        4. Pantalaimon-UT version
                        1 條回覆 最後回覆 回覆 引用 0
                        • ? 離線
                          舊使用者
                          最後由 編輯

                          Hey,
                          after successfully using this nice application for a longer time without any big problems I switched my home server and now I have problems to login correctly.

                          I was able to login two times after resetting everything. But after a reboot I am always back to the Fluffy login screen. When I then login, Fluffy says sth. like "no connection" and there is an empty account opened with no chats or data. This always creates a new Fluffy Chat login session on my Matrix account but there is just a single Pantalaimon session visible.

                          When I was loged in successfully futhermore I wasn't able to activate encryption. Messeges send from the Phone were always taged to be unencrypted.

                          Do you have any Idea what could cause this problems? Maybe its also related to my homeserver configuration as it was working perfectly before.

                          Thanks for your help,
                          JimmyPesto

                          spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
                          • spacenerdmoS 離線
                            spacenerdmo @訪客
                            最後由 編輯

                            @jimmypesto could be something left over from the old connection confusing things. Try doing the following.

                            1. stop and disable pantalaimon
                            2. delete or rename /home/phablet/.local/share/pantalaimon
                            3. enable and start pantalaimon
                            4. login through fluffychat

                            And if that's all good try another reboot to ensure it comes remains logged in.

                            ? 1 條回覆 最後回覆 回覆 引用 0
                            • ? 離線
                              舊使用者 @spacenerdmo
                              最後由 編輯

                              @thrrgilag thanks for that super quick answer!

                              Steps i followed:

                              1. disabled pantalaimon
                              2. Opened adb shell to
                              3. sudo rm -r /home/phablet/.local/share/pantalaimon
                              4. added my homeserver again to pantalaimon
                              5. enable and start pantalaimon
                              6. login with fluffy (successful login, but still no encrypted messages send to other element clients)
                              7. reboot
                              8. open Fluffy which is still online, nice, I hope it will last now

                              But still all encrypted conversations receive unencrypted messages from my phone. At least Element says so.
                              I set the pantalaimon session to be trusted from Element and I enabled all other devices in Fluffys encrypton settings of different rooms.
                              Even though I can read messeges inside encrypted rooms, I can not find a way to get rid of that "not encrypted" warning sign. I am confused.

                              spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
                              • spacenerdmoS 離線
                                spacenerdmo @訪客
                                最後由 編輯

                                @jimmypesto okay I'll see if I can reproduce and report back if I have an answer of any sort. If you could see if there is anything useful in the logs, I'm guessing not but worth a shot.

                                ? 1 條回覆 最後回覆 回覆 引用 0
                                • ? 離線
                                  舊使用者 @spacenerdmo
                                  最後由 編輯

                                  @thrrgilag what log files should I check exactly? What log level should I select inside Pantalaimon?

                                  I have another issue of chats with peoples devices that are verified but still I get a grey icon and I can restart the verification over and over again. Seems like a big mess going on. I dont know if thats because of Pantalaimon or sth is messed up on my homeserver side.

                                  Greetings

                                  spacenerdmoS 2 條回覆 最後回覆 回覆 引用 0
                                  • spacenerdmoS 離線
                                    spacenerdmo @訪客
                                    最後由 編輯

                                    @jimmypesto there are two log files, one is labeled as pantalaimon-ut which is just the configuration UI, and the other one is called pantalaimon which is the deamon that does all the work so that's the one to look at. You can use the Logviewer app from the openstore to access them easily.

                                    Unfortunatly I haven't done any testing on it since my main ubuntu touch device stopped booting. I'll have to get that sorted or another device up and running before I can work on it further.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • spacenerdmoS 離線
                                      spacenerdmo @訪客
                                      最後由 編輯

                                      @jimmypesto I've been able to get my ubuntu touch devices back up and running and I can reproduce the problems. Unforunatly I don't have a fix yet but I'll work on that and see what I can come up with. Likley will be a new version of the package if I can get a newer build functional.

                                      There are moments when I wonder if it'll just be easier to add encryption support directly into FluffyChat QML but time is a luxury I don't have.

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • spacenerdmoS 離線
                                        spacenerdmo
                                        最後由 編輯

                                        Pantalaimon UT 0.6.0 released

                                        This is an important bug fix release which resolves an issue with messages sent as unencrypted in encrypted rooms. Please update and restart the pantalaimon service.

                                        mailing list:
                                        https://lists.sr.ht/~thrrgilag/pantalaimon-ut/<YTjWk0eSP36PVn8W%40hexx>

                                        blog:
                                        https://thrrgilag.net/post/pantalaimon-ut-0-6-0/

                                        As an aside, although I'm not a regular user of Ubuntu Touch these days I do intened to keep supporting this for a while so do let me know if things go sideways again and I'll do my best to stay on top of it. In addition to this thread feel free to contact me directly, hit me up in public chat, or the mailing list.

                                        ? 1 條回覆 最後回覆 回覆 引用 0
                                        • ? 離線
                                          舊使用者 @spacenerdmo
                                          最後由 舊使用者 編輯

                                          @thrrgilag hey thanks for all your feedback, your support and the bugfix. I wasn't able to answer until today and will test v 0.6.0 now.

                                          Integration into FluffyChat would be super awesome. I would love to contribute to this but idk. if I can adept to this kind of app development. At least I would love to donate for that.

                                          [EDIT]
                                          So I updated to v 0.6.0 and still have the following problem which kept me from testing the encryption thing thang:
                                          When I have bad internet connection, sometimes I get loged out inside Fluffy. (happend already with v 0.4.x if I remember correctly)
                                          Inside an other Element session, the settings still show a Pantalaimon and Fluffy session. I delete these sessions.
                                          Regardless of restarting Pantalaimon or not, when I now login inside Fluffy, I get to an empty start screen with no chats, no name, no pic, nothing. (Typing wrong login data gives me correct feedback msg about it.)
                                          When I look into the active sessions from Element, I can see a Fluffy but no Pantalaimon session.

                                          Pantalaimon log [lvl warning] ends with:

                                          socket.py 752 getaddrinfo
                                          
                                          LookupError: unknown encoding: idna
                                          
                                          Unclosed client session
                                          
                                          client_session:
                                          <some object and Address>
                                          

                                          A minore usage difficutly that I encountered:
                                          When you add a homeserver, type in the HS URL and directly hit [save], without leaving the text-box before, the HS URL just typed in is forgotten. This could be more fool prove, but Its not really a big thing.

                                          Greetings.

                                          spacenerdmoS 1 條回覆 最後回覆 回覆 引用 0
                                          • spacenerdmoS 離線
                                            spacenerdmo @訪客
                                            最後由 編輯

                                            @jimmypesto I'll do some testing on the connection thing, I pretty much have only done testing on WiFi so I didn't catch any issues around lost connections yet. Sounds like it might also be helpful to include a reset button of sorts, to clear the db when the session gets lost to it can be redone. I'll also take a closer look at that UI bug, seems odd that would happen.

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • T teoneo referenced this topic on
                                            • T teoneo referenced this topic on
                                            • T teoneo referenced this topic on
                                            • T teoneo referenced this topic on
                                            • 第一個貼文
                                              最後的貼文