lomorage / homepage

home page source
215 stars 12 forks source link

Photo transfer issue from iphone to unraid server running lomorage #31

Closed southernclipper closed 1 year ago

southernclipper commented 1 year ago

Unraid 6.10.3 with IOS 16. Lomorage app uploaded about 8K of photos pretty quicking but now everytime I bring the app up on the IOS to finish the last 2K photos and it runs, I have been having a hard time getting the rest of the photos to sync to Unraid server. It starts to sync then slowing transfers a few photos over a 20min period and than appears to hang or is busy doing some else. Not sure if there are any settings I can change to make this work as designed. I just updated the docker this morning for Lomorage on Unraid this morning hoping this would get it to start working. Any tips on what maybe the issue

fuji246 commented 1 year ago

Could you send feedback email to support@lomorage.com with logs in iOS APP? It's in the settings tab, and will attach client and server logs automatically and send to support@lomorage.com and related developers.

southernclipper commented 1 year ago

Could you send feedback email to support@lomorage.com with logs in iOS APP? It's in the settings tab, and will attach client and server logs automatically and send to support@lomorage.com and related developers. Logs are on there way, let me know if you need anything else

southernclipper commented 1 year ago

I am also see these messages on the Unraid server side. not sure if that has something to do with it not transfering photos. 811eed?createtime=2013-07-06T02:23:20Z&ext=jpg HTTP/1.1" DB [55:35]: insert into asset(user_id, hash, year, month, day, ext_id, device_id, latitude, longitude, size, status, create_time, upload_time) values(2, '5eadced113bf247'/+25 bytes/, 2013, 7, 6, 1, 2, 888.0, 888.0, 2478905, 0, '2013-07-06 02:2'/+10 bytes/, '2022-10-10 20:5'/+20 bytes/) HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:35 -0400] "POST /asset/5eadced113bf247ebd57e3ab600addfc02811eed?createtime=2013-07-06T02:23:20Z&ext=jpg HTTP/1.1" 2022/10/10 16:55:35 http: panic serving 192.168.20.177:58950: runtime error: invalid memory address or nil pointer dereference goroutine 156469 [running]: net/http.(conn).serve.func1() /usr/local/go/src/net/http/server.go:1801 +0xb9 panic({0xd30920, 0x1db2e60}) /usr/local/go/src/runtime/panic.go:1047 +0x266 bitbucket.org/lomoware/lomo-backend/handler.(Handler).saveAsset.func3({0x1878e80, 0xc005553020}, 0xc00003a048) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:193 +0x1a1 bitbucket.org/lomoware/lomo-backend/common/dbx.runQuery({0x1878e80, 0xc005553020}, 0x0, 0xc000af9678) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/dbx/db.go:209 +0xd7 bitbucket.org/lomoware/lomo-backend/common/dbx.InQuery(0xc0003c7400, 0x40) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/dbx/db.go:188 +0x9c bitbucket.org/lomoware/lomo-backend/handler.(Handler).saveAsset(0xc0000d6dc0, {0x18718e0, 0xc005531e30}, 0xc000715f00, 0xc0008357a0) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:183 +0xc7b bitbucket.org/lomoware/lomo-backend/handler.(Handler).createAsset(0x322f74634f2f3031, {0x18718e0, 0xc005531e30}, 0x0) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:43 +0xa8 net/http.HandlerFunc.ServeHTTP(0xc00007e695, {0x18718e0, 0xc005531e30}, 0x3c32bf9df3) /usr/local/go/src/net/http/server.go:2046 +0x2f bitbucket.org/lomoware/lomo-backend/common/logger.(AccessLogger).Middleware.func1({0x18724e0, 0xc000ff89a0}, 0xc000715f00) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/logger/access.go:215 +0x4d9 net/http.HandlerFunc.ServeHTTP(0xc000715e00, {0x18724e0, 0xc000ff89a0}, 0xdf3f80) /usr/local/go/src/net/http/server.go:2046 +0x2f github.com/gorilla/mux.(Router).ServeHTTP(0xc000364000, {0x18724e0, 0xc000ff89a0}, 0xc000715d00) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/vendor/github.com/gorilla/mux/mux.go:212 +0x202 net/http.serverHandler.ServeHTTP({0x18709e8}, {0x18724e0, 0xc000ff89a0}, 0xc000715d00) /usr/local/go/src/net/http/server.go:2878 +0x43b net/http.(conn).serve(0xc00036f860, {0x1878eb8, 0xc0010142a0}) /usr/local/go/src/net/http/server.go:1929 +0xb08 created by net/http.(Server).Serve /usr/local/go/src/net/http/server.go:3033 +0x4e8 HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:35 -0400] "GET /asset/metadata/bd7217757a8e137d947a10c4bedebe9ac966dedb HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:35 -0400] "GET /asset/metadata/bd7217757a8e137d947a10c4bedebe9ac966dedb HTTP/1.1" 200 974 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:36 -0400] "GET /asset/metadata/50e839afac47be40535fce02ebd10464246f8058 HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:36 -0400] "GET /asset/metadata/50e839afac47be40535fce02ebd10464246f8058 HTTP/1.1" 200 974 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:37 -0400] "GET /asset/metadata/c458f01346821adb86b701173a3d6673a883d784 HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:37 -0400] "GET /asset/metadata/c458f01346821adb86b701173a3d6673a883d784 HTTP/1.1" 200 1203 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:38 -0400] "GET /asset/metadata/34fa9dfef9c0e6acef9fa6de958e9a5a8c6646ee HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:38 -0400] "GET /asset/metadata/34fa9dfef9c0e6acef9fa6de958e9a5a8c6646ee HTTP/1.1" 200 1202 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:40 -0400] "GET /asset/metadata/d12caa88bc7bf840beb17e9aaeaad6e767ddf755 HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:40 -0400] "GET /asset/metadata/d12caa88bc7bf840beb17e9aaeaad6e767ddf755 HTTP/1.1" 200 974 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:41 -0400] "GET /asset/metadata/cba519af420a46eeec32e6f1b747558aabd38a7b HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:41 -0400] "GET /asset/metadata/cba519af420a46eeec32e6f1b747558aabd38a7b HTTP/1.1" 200 974 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:42 -0400] "GET /asset/metadata/5c0e988ffc97a08cd2b541b83e6f35103a28fc75 HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:42 -0400] "GET /asset/metadata/5c0e988ffc97a08cd2b541b83e6f35103a28fc75 HTTP/1.1" 200 1206 0s HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:43 -0400] "POST /asset/5eadced113bf247ebd57e3ab600addfc02811eed?createtime=2013-07-06T02:23:20Z&ext=jpg HTTP/1.1" HTTP begin: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:43 -0400] "GET /asset/metadata/ef22fbf4f5978d29ba623548909e593cb081eb39 HTTP/1.1" HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:43 -0400] "GET /asset/metadata/ef22fbf4f5978d29ba623548909e593cb081eb39 HTTP/1.1" 200 1202 0s DB [55:44]: insert into asset(user_id, hash, year, month, day, ext_id, device_id, latitude, longitude, size, status, create_time, upload_time) values(2, '5eadced113bf247'/+25 bytes/, 2013, 7, 6, 1, 2, 888.0, 888.0, 2478905, 0, '2013-07-06 02:2'/+10 bytes/, '2022-10-10 20:5'/+20 bytes/) HTTP end: 192.168.20.177 0B4D6BC3-38EF-49D8-98AD-4AB1CC8085D2 steve [10/Oct/2022:16:55:44 -0400] "POST /asset/5eadced113bf247ebd57e3ab600addfc02811eed?createtime=2013-07-06T02:23:20Z&ext=jpg HTTP/1.1" 2022/10/10 16:55:44 http: panic serving 192.168.20.177:58951: runtime error: invalid memory address or nil pointer dereference goroutine 156582 [running]: net/http.(conn).serve.func1() /usr/local/go/src/net/http/server.go:1801 +0xb9 panic({0xd30920, 0x1db2e60}) /usr/local/go/src/runtime/panic.go:1047 +0x266 bitbucket.org/lomoware/lomo-backend/handler.(Handler).saveAsset.func3({0x1878e80, 0xc003a76120}, 0xc00003a048) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:193 +0x1a1 bitbucket.org/lomoware/lomo-backend/common/dbx.runQuery({0x1878e80, 0xc003a76120}, 0x0, 0xc000af5678) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/dbx/db.go:209 +0xd7 bitbucket.org/lomoware/lomo-backend/common/dbx.InQuery(0xc00551ec40, 0x40) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/dbx/db.go:188 +0x9c bitbucket.org/lomoware/lomo-backend/handler.(Handler).saveAsset(0xc0000d6dc0, {0x18718e0, 0xc0004602a0}, 0xc000a9dd00, 0xc0003fe030) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:183 +0xc7b bitbucket.org/lomoware/lomo-backend/handler.(Handler).createAsset(0x322f74634f2f3031, {0x18718e0, 0xc0004602a0}, 0x0) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/handler/asset.go:43 +0xa8 net/http.HandlerFunc.ServeHTTP(0xc0047d23f5, {0x18718e0, 0xc0004602a0}, 0x3e44021404) /usr/local/go/src/net/http/server.go:2046 +0x2f bitbucket.org/lomoware/lomo-backend/common/logger.(AccessLogger).Middleware.func1({0x18724e0, 0xc0047d47e0}, 0xc000a9dd00) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/common/logger/access.go:215 +0x4d9 net/http.HandlerFunc.ServeHTTP(0xc000a9dc00, {0x18724e0, 0xc0047d47e0}, 0xdf3f80) /usr/local/go/src/net/http/server.go:2046 +0x2f github.com/gorilla/mux.(Router).ServeHTTP(0xc000364000, {0x18724e0, 0xc0047d47e0}, 0xc000a9db00) /media/KingFast_e672fee1-90d2-4b78-966c-7cda33684599/Jenkins/workspace/build-lomod-docker-amd64/vendor/github.com/gorilla/mux/mux.go:212 +0x202 net/http.serverHandler.ServeHTTP({0x18709e8}, {0x18724e0, 0xc0047d47e0}, 0xc000a9db00) /usr/local/go/src/net/http/server.go:2878 +0x43b net/http.(conn).serve(0xc0054b92c0, {0x1878eb8, 0xc0010142a0}) /usr/local/go/src/net/http/server.go:1929 +0xb08 created by net/http.(Server).Serve /usr/local/go/src/net/http/server.go:3033 +0x4e8

dwebfan commented 1 year ago

Thanks for reporting. This crash issue is fixed, and will be included in next release.

fuji246 commented 1 year ago

@southernclipper you can update and try again.

fuji246 commented 1 year ago

@southernclipper , does that fixed the problem in your env?

southernclipper commented 1 year ago

I havent seen an update in the IOS app or Unraid docker app. The app still hangs after a few photos transfered and still hasnt tranfered all my photo to Lomorage since I reported it. Pleaes advise if you need additional info

southernclipper commented 1 year ago

I issue an update command in unraid console and says I am at the latest version, so still not fixed.

fuji246 commented 1 year ago

@southernclipper, sorry, just pushed the new docker image now, https://hub.docker.com/repository/docker/lomorage/amd64-lomorage , the latest server version is aa72b47,

southernclipper commented 1 year ago

@southernclipper, sorry, just pushed the new docker image now, https://hub.docker.com/repository/docker/lomorage/amd64-lomorage , the latest server version is aa72b47,

thanks all assets transfered as expected and seems to be working. thanks for the support

fuji246 commented 1 year ago

close it now, feel free to reopen if it still happens.