dbet1
November 24, 2025, 5:36pm
1
I can create, open, and write to SDoc files in my library.
However, when I try to add a page to a newly created wiki, I only get an “Internal Server Error.” I’m testing with HTTP because this is a test environment.
POST
http://documents.domain.tld/api/v2.1/wiki2/5753f32d-c74b-402d-8d9a-c1bb2d3f0416/pages/
dbet1:
“Internal Server Error.”
What error log do you have in seahub.log?
dbet1
November 25, 2025, 11:22am
3
Clicking the + to add a wiki page gives this in seahub.log:
[2025-11-25 12:20:51] [ERROR] seahub.api2.endpoints.wiki2:618 post
[2025-11-25 12:20:51] [ERROR] django.request:241 log_response Internal Server Error: /api/v2.1/wiki2/5753f32d-c74b-402d-8d9a-c1bb2d3f0416/pages/
Do you have a detailed traceback for this error?
You can also try to add DEBUG=true in seahub_settings.py . Then the detailed traceback will return to the web browser.
dbet1
November 28, 2025, 2:14pm
5
Here are the traceback with DEBUG = True:
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /.env.remote
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /.env.local
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /.env.production
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /vendor/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /cron/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /lab/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /lib/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /core/Datavase/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /cronlab/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /core/.env
[2025-11-28 03:05:18] [WARNING] django.request:241 log_response Not Found: /database/.env
[2025-11-28 03:05:21] [WARNING] django.request:241 log_response Not Found: /config/.env
[2025-11-28 03:05:21] [WARNING] django.request:241 log_response Not Found: /assets/.env
[2025-11-28 03:05:21] [WARNING] django.request:241 log_response Not Found: /app/.env
[2025-11-28 03:05:21] [WARNING] django.request:241 log_response Not Found: /core/app/.env
[2025-11-28 03:05:22] [WARNING] django.request:241 log_response Not Found: /.git/config
[2025-11-28 03:05:23] [WARNING] django.request:241 log_response Not Found: /uploads/.env
[2025-11-28 03:05:23] [WARNING] django.request:241 log_response Not Found: /sitemaps/.env
[2025-11-28 03:05:24] [WARNING] django.request:241 log_response Not Found: /saas/.env
[2025-11-28 03:05:25] [WARNING] django.request:241 log_response Not Found: /public/.env
[2025-11-28 03:05:26] [WARNING] django.request:241 log_response Not Found: /web/.env
[2025-11-28 03:05:26] [WARNING] django.request:241 log_response Not Found: /en/.env
[2025-11-28 03:05:26] [WARNING] django.request:241 log_response Not Found: /v1/.env
[2025-11-28 03:05:27] [WARNING] django.request:241 log_response Not Found: /administrator/.env
[2025-11-28 03:05:27] [WARNING] django.request:241 log_response Not Found: /laravel/.env
[2025-11-28 03:05:28] [WARNING] django.request:241 log_response Not Found: /_profiler/phpinfo
[2025-11-28 03:05:28] [WARNING] django.request:241 log_response Not Found: /php_info.php
[2025-11-28 03:05:29] [WARNING] django.request:241 log_response Not Found: /test.php
[2025-11-28 03:05:30] [WARNING] django.request:241 log_response Not Found: /tools/.env
[2025-11-28 03:05:30] [WARNING] django.request:241 log_response Not Found: /phpinfo.php
[2025-11-28 03:05:31] [WARNING] django.request:241 log_response Not Found: /info.php
[2025-11-28 03:05:31] [WARNING] django.request:241 log_response Not Found: /phpinfo
[2025-11-28 03:05:32] [WARNING] django.request:241 log_response Not Found: /v2/.env
[2025-11-28 03:05:35] [WARNING] django.request:241 log_response Not Found: /js
[2025-11-28 15:10:47] [ERROR] seahub.api2.endpoints.wiki2:618 post
[2025-11-28 15:10:47] [ERROR] django.request:241 log_response Internal Server Error: /api/v2.1/wiki2/f04be854-c53c-4ae3-b515-8fae9bc688d3/pages/
Not much useful information in my eyes.
Can you try open the browser’s development console, then find the red color error request? Then click the request, you can find the detailed error message.
dbet1
December 1, 2025, 7:20pm
7
I’m sorry, but I’m not seeing any errors under Network, only the Console shows error 500. Perhaps I’m using it incorrectly; I’m definitely not a web developer.
dbet1
December 15, 2025, 2:39pm
8
After a long search, I’ve finally found the error. It lies in the customer’s database. The GCID and LastGCID tables are missing. This database is twelve years old. I didn’t delete these tables. I bet they weren’t created during any upgrade. I’ve now rectified this, and lo and behold, the internal server error has disappeared.